|
|||||||||
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.CellRendererPane
public class CellRendererPane
Paints the cells of JList, JTable and JTree. It intercepts the usual paint tree, so that we don't walk up and repaint everything.
Nested Class Summary | |
---|---|
protected class |
CellRendererPane.AccessibleCellRendererPane
Provides accessibility support for CellRendererPanes. |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected AccessibleContext |
accessibleContext
accessibleContext |
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 | |
---|---|
CellRendererPane()
Constructs a new CellRendererPane. |
Method Summary | |
---|---|
protected void |
addImpl(Component c,
Object constraints,
int index)
Overridden to check if a component is already a child of this Container. |
AccessibleContext |
getAccessibleContext()
getAccessibleContext TODO |
void |
invalidate()
Despite normal behaviour this does not cause the container to be invalidated. |
void |
paint(Graphics graphics)
Should not be called. |
void |
paintComponent(Graphics graphics,
Component c,
Container p,
int x,
int y,
int w,
int h)
Paints the specified component c on the Graphics
context graphics . |
void |
paintComponent(Graphics graphics,
Component c,
Container p,
int x,
int y,
int w,
int h,
boolean shouldValidate)
Paints the specified component c on the Graphics
context graphics . |
void |
paintComponent(Graphics graphics,
Component c,
Container p,
Rectangle r)
Paints the specified component c on the Graphics
context g . |
void |
update(Graphics graphics)
Should not be called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AccessibleContext accessibleContext
Constructor Detail |
---|
public CellRendererPane()
Method Detail |
---|
public void update(Graphics graphics)
update
in class Container
graphics
- not used hereComponent.paint(Graphics)
,
Component.repaint()
public void invalidate()
invalidate
in class Container
public void paint(Graphics graphics)
paint
in class Container
graphics
- not used hereComponent.update(Graphics)
protected void addImpl(Component c, Object constraints, int index)
super.addImpl()
.
addImpl
in class Container
c
- the component to addconstraints
- not used hereindex
- not used herepublic void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)
c
on the Graphics
context graphics
. The Graphics context is tranlated to
(x,y) and the components bounds are set to (w,h). If
shouldValidate
is set to true, then the component is validated before painting.
graphics
- the graphics context to paint onc
- the component to be paintedp
- the parent of the componentx
- the X coordinate of the upper left corner where c should
be paintedy
- the Y coordinate of the upper left corner where c should
be paintedw
- the width of the components drawing areah
- the height of the components drawing areashouldValidate
- if c
should be validated before
paintingpublic void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h)
c
on the Graphics
context graphics
. The Graphics context is tranlated to (x,y)
and the components bounds are set to (w,h). The component is not
validated before painting.
graphics
- the graphics context to paint onc
- the component to be paintedp
- the parent of the componentx
- the X coordinate of the upper left corner where c should
be paintedy
- the Y coordinate of the upper left corner where c should
be paintedw
- the width of the components drawing areah
- the height of the components drawing areapublic void paintComponent(Graphics graphics, Component c, Container p, Rectangle r)
c
on the Graphics
context g
. The Graphics context is tranlated to (r.x,r.y) and
the components bounds are set to (r.width,r.height).
The component is not
validated before painting.
graphics
- the graphics context to paint onc
- the component to be paintedp
- the component on which we paintr
- the bounding rectangle of cpublic AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
getAccessibleContext
in class Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |