|
||||||||
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.CanvasPanel.Painter
protected static class CanvasPanel.Painter
Panel that paints the internal buffered image that maintains the persistent graphics state of the buffered panel.
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 CanvasPanel |
panel
Reference to the CanvasPanel that created this
Painter . |
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 |
CanvasPanel.Painter(CanvasPanel panel)
Contructor that should only be called by a CanvasPanel . |
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 |
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 CanvasPanel panel
CanvasPanel
that created this
Painter
.
Constructor Detail |
---|
protected CanvasPanel.Painter(CanvasPanel panel)
CanvasPanel
.
panel
- the CanvasPanel
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 JComponent
public 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 JComponent
g
- the standard graphics state for this panelprotected void paintComponent(Graphics g)
Paints the image buffer of the buffered panel in this panel
As of 2.6.0c, is synchronized on the enclosing buffered panel.
paintComponent
in class JComponent
g
- the standard graphics state for this panel
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |