|
||||||||||
| 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.text.ComponentView.Invalidator
This class feeds the invalidate back to the hosting View. This is needed to get the View hierarchy to consider giving the component a different size (i.e. layout may have been cached between the associated view and the container hosting this component).
| Nested Class Summary |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
(package private) Dimension |
max
|
(package private) Dimension |
min
|
(package private) Dimension |
pref
|
(package private) float |
xalign
|
(package private) float |
yalign
|
| Fields inherited from class java.awt.Container |
|
| 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 | |
(package private) |
ComponentView.Invalidator(Component child)
|
| Method Summary | |
private void |
cacheChildSizes()
|
void |
doLayout()
Causes this container to lay out its components. |
float |
getAlignmentX()
Returns the alignment along the x axis. |
float |
getAlignmentY()
Returns the alignment along the y axis. |
Set |
getFocusTraversalKeys(int id)
Returns the Set of focus traversal keys for a given traversal operation for this Container. |
Dimension |
getMaximumSize()
Returns the maximum size of this container. |
Dimension |
getMinimumSize()
Returns the minimum size of this container. |
Dimension |
getPreferredSize()
Returns the preferred size of this container. |
void |
invalidate()
The components invalid layout needs to be propagated through the view hierarchy so the views (which position the component) can have their layout recomputed. |
void |
setBounds(int x,
int y,
int w,
int h)
Moves and resizes this component. |
void |
setVisible(boolean b)
Shows or hides this component depending on the value of parameter b. |
void |
validateIfNecessary()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
Dimension min
Dimension pref
Dimension max
float yalign
float xalign
| Constructor Detail |
ComponentView.Invalidator(Component child)
| Method Detail |
public void invalidate()
invalidate in class ContainerContainer.validate(),
Container.layout(),
LayoutManagerpublic void doLayout()
Containervalidate method instead.
doLayout in class ContainerLayoutManager.layoutContainer(java.awt.Container),
Container.setLayout(java.awt.LayoutManager),
Container.validate()
public void setBounds(int x,
int y,
int w,
int h)
Componentx and y, and the
new size is specified by width and height.
setBounds in class Componentx - the new x-coordinate of this componenty - the new y-coordinate of this componentw - the new width of this componenth - the new height of this
componentComponent.getBounds(),
Component.setLocation(int, int),
Component.setLocation(Point),
Component.setSize(int, int),
Component.setSize(Dimension)public void validateIfNecessary()
private void cacheChildSizes()
public void setVisible(boolean b)
b.
setVisible in class Componentb - if true, shows this component;
otherwise, hides this componentComponent.isVisible()public Dimension getMinimumSize()
Container
getMinimumSize in class ContainerDimension that represents
the minimum size of this container.Container.getPreferredSize(),
Container.getLayout(),
LayoutManager.minimumLayoutSize(Container),
Component.getMinimumSize()public Dimension getPreferredSize()
Container
getPreferredSize in class ContainerDimension that represents
the preferred size of this container.Container.getMinimumSize(),
Container.getLayout(),
LayoutManager.preferredLayoutSize(Container),
Component.getPreferredSize()public Dimension getMaximumSize()
Container
getMaximumSize in class ContainerContainer.getPreferredSize()public float getAlignmentX()
Container
getAlignmentX in class Containerpublic float getAlignmentY()
Container
getAlignmentY in class Containerpublic Set getFocusTraversalKeys(int id)
ContainersetFocusTraversalKeys for a full description of each key.)
If a Set of traversal keys has not been explicitly defined for this Container, then this Container's parent's Set is returned. If no Set has been explicitly defined for any of this Container's ancestors, then the current KeyboardFocusManager's default Set is returned.
getFocusTraversalKeys in class Containerid - one of KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS, or
KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS
Container.setFocusTraversalKeys(int, java.util.Set),
KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS,
KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS,
KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||