public class CellRendererPane extends Container implements Accessible
Modifier and Type | Class and Description |
---|---|
protected class |
CellRendererPane.AccessibleCellRendererPane
Provides accessibility support for CellRendererPanes.
|
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected AccessibleContext |
accessibleContext
accessibleContext
|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
CellRendererPane()
Constructs a new CellRendererPane.
|
Modifier and Type | Method and Description |
---|---|
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)
|
void |
paintComponent(Graphics graphics,
Component c,
Container p,
int x,
int y,
int w,
int h,
boolean shouldValidate)
|
void |
paintComponent(Graphics graphics,
Component c,
Container p,
Rectangle r)
|
void |
update(Graphics graphics)
Should not be called.
|
add, add, add, add, add, addContainerListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected AccessibleContext accessibleContext
public CellRendererPane()
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()
.public 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