| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
javalib.worldcanvas.AppletCanvas.Painter
public static class AppletCanvas.Painter
Panel that paints the internal buffered image that maintains the persistent graphics state of the buffered panel.
As of 2.4.0, paints the internal paintable sequence of the buffered panel after painting the buffered image.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel | 
|---|
| JPanel.AccessibleJPanel | 
| Nested classes/interfaces inherited from class javax.swing.JComponent | 
|---|
| JComponent.AccessibleJComponent | 
| Nested classes/interfaces inherited from class java.awt.Container | 
|---|
| Container.AccessibleAWTContainer | 
| Nested classes/interfaces inherited from class java.awt.Component | 
|---|
| Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | |
|---|---|
| protected  AppletCanvas | panelReference to the BufferedPanelthat created thisPainter. | 
| Fields inherited from class javax.swing.JComponent | 
|---|
| accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW | 
| Fields inherited from class java.awt.Component | 
|---|
| BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface java.awt.image.ImageObserver | 
|---|
| ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
|---|---|
| protected  | AppletCanvas.Painter(AppletCanvas panel)Constructor that should only be called by a BufferedPanel. | 
| Method Summary | |
|---|---|
|  Dimension | getPreferredSize()Returns the size of the buffer as the size of this panel. | 
|  void | paint(Graphics g)Paints the component and then adds the work done by the paintOver function. | 
| protected  void | paintComponent(Graphics g)Paints the image buffer of the buffered panel in this panel and then paints the buffered panel paintable sequence. | 
| Methods inherited from class javax.swing.JPanel | 
|---|
| getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected AppletCanvas panel
BufferedPanel that created this
 Painter.
| Constructor Detail | 
|---|
protected AppletCanvas.Painter(AppletCanvas panel)
BufferedPanel.
panel - the BufferedPanel used to construct
        this Painter| Method Detail | 
|---|
public Dimension getPreferredSize()
Returns the size of the buffer as the size of this panel.
Ignores any calls to setPreferredSize.
getPreferredSize in class JComponentpublic void paint(Graphics g)
Paints the component and then adds the work done by the paintOver function.
As of 2.6.0c, is synchronized on the enclosing buffered panel.
paint in class JComponentg - the standard graphics state for this panelprotected void paintComponent(Graphics g)
Paints the image buffer of the buffered panel in this panel and then paints the buffered panel paintable sequence.
As of 2.6.0c, is synchronized on the enclosing buffered panel.
paintComponent in class JComponentg - the standard graphics state for this panel| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||