|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
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
com.citra.table.WrapperCellRendererPane
public class WrapperCellRendererPane
WrapperCellRendererPane is a specialized CellRendererPane that
translates and resizes its children accordingly.
A WrapperCellRendererPane is most usually returned by a
TableCellRendererWrapper
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.CellRendererPane |
---|
CellRendererPane.AccessibleCellRendererPane |
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 boolean |
opaqueFalse
flag that is true if JComponent children's opaque property is temporarily set to false before painting |
Fields inherited from class javax.swing.CellRendererPane |
---|
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 | |
---|---|
protected |
WrapperCellRendererPane()
Constructs a WrapperCellRendererPane. |
protected |
WrapperCellRendererPane(boolean opaqueFalse)
Constructs a WrapperCellRendererPane. |
Method Summary | |
---|---|
Component |
getMainComponent()
Returns the main wrapped component. |
static Component |
getMainComponent(Component c)
Returns the main component of the wrapper. |
String |
getToolTipText(MouseEvent event)
Returns the string to be used as the tooltip for event. |
void |
paint(Graphics g)
Paints its children according to their size and location. |
void |
paintComponent(Graphics g,
Component c,
Container p,
int x,
int y,
int w,
int h,
boolean shouldValidate)
Paint a cell renderer component c on graphics object g. |
Methods inherited from class javax.swing.CellRendererPane |
---|
addImpl, getAccessibleContext, invalidate, paintComponent, paintComponent, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean opaqueFalse
Constructor Detail |
---|
protected WrapperCellRendererPane()
protected WrapperCellRendererPane(boolean opaqueFalse)
opaqueFalse
- true if JComponent children's opaque property is temporarily set
to false before paintingMethod Detail |
---|
public Component getMainComponent()
public static Component getMainComponent(Component c)
c
- the possible wrapper component
public String getToolTipText(MouseEvent event)
event
- the mouse event producing the tooltip
public void paint(Graphics g)
paint
in class CellRendererPane
g
- the graphics component to useComponent.update(Graphics)
public void paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate)
paintComponent
in class CellRendererPane
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |