|
|||||||||
| Home >> All >> org >> jext >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jext.gui
Class VoidComponent

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.jext.gui.VoidComponent
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
- public class VoidComponent
- extends javax.swing.JComponent
VoidComponent is a component of both
height and width set to zero which cannot contain
anything.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
private java.awt.Dimension |
zero
|
| 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.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 | |
VoidComponent()
|
|
| Method Summary | |
int |
getHeight()
Returns the height of this component. |
java.awt.Dimension |
getMaximumSize()
Get the component's maximum size. |
java.awt.Dimension |
getMinimumSize()
Get the component's minimum size. |
java.awt.Dimension |
getPreferredSize()
Get the component's preferred size. |
java.awt.Dimension |
getSize()
Returns the size of this object. |
int |
getWidth()
Returns the width of this component. |
void |
paint(java.awt.Graphics g)
Paint the component. |
void |
setSize(java.awt.Dimension d)
Sets the size of this component to the specified value. |
void |
setSize(int w,
int h)
Sets the size of this component to the specified width and height. |
void |
update(java.awt.Graphics g)
Call paint(java.awt.Graphics) 55 . |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
zero
private java.awt.Dimension zero
| Constructor Detail |
VoidComponent
public VoidComponent()
| Method Detail |
getHeight
public int getHeight()
- Description copied from class:
javax.swing.JComponent - Returns the height of this component. Prefer this method over
JComponent.getBounds(java.awt.Rectangle)>
JComponent.getBounds(java.awt.Rectangle)55 or JComponent.getSize(java.awt.Dimension)>JComponent.getSize(java.awt.Dimension)55 because it does not cause any heap allocation.
getMaximumSize
public java.awt.Dimension getMaximumSize()
- Description copied from class:
javax.swing.JComponent - Get the component's maximum size. If the JComponent.maximumSize>
JComponent.maximumSize55 property has been explicitly set, it is returned. If the JComponent.maximumSize>JComponent.maximumSize55 property has not been set but the JComponent.ui>JComponent.ui55 property has been, the result of ComponentUI.getMaximumSize(javax.swing.JComponent)>ComponentUI.getMaximumSize(javax.swing.JComponent)55 is returned. If neither property has been set, the result of Container.getMaximumSize()>Container.getMaximumSize()55 is returned.
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Description copied from class:
javax.swing.JComponent - Get the component's minimum size. If the JComponent.minimumSize>
JComponent.minimumSize55 property has been explicitly set, it is returned. If the JComponent.minimumSize>JComponent.minimumSize55 property has not been set but the JComponent.ui>JComponent.ui55 property has been, the result of ComponentUI.getMinimumSize(javax.swing.JComponent)>ComponentUI.getMinimumSize(javax.swing.JComponent)55 is returned. If neither property has been set, the result of Container.getMinimumSize()>Container.getMinimumSize()55 is returned.
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Description copied from class:
javax.swing.JComponent - Get the component's preferred size. If the JComponent.preferredSize>
JComponent.preferredSize55 property has been explicitly set, it is returned. If the JComponent.preferredSize>JComponent.preferredSize55 property has not been set but the JComponent.ui>JComponent.ui55 property has been, the result of ComponentUI.getPreferredSize(javax.swing.JComponent)>ComponentUI.getPreferredSize(javax.swing.JComponent)55 is returned. If neither property has been set, the result of Container.getPreferredSize()>Container.getPreferredSize()55 is returned.
getSize
public java.awt.Dimension getSize()
- Description copied from class:
java.awt.Component - Returns the size of this object.
getWidth
public int getWidth()
- Description copied from class:
javax.swing.JComponent - Returns the width of this component. Prefer this method over
JComponent.getBounds(java.awt.Rectangle)>
JComponent.getBounds(java.awt.Rectangle)55 or JComponent.getSize(java.awt.Dimension)>JComponent.getSize(java.awt.Dimension)55 because it does not cause any heap allocation.
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
javax.swing.JComponent Paint the component. This is a delicate process, and should only be called from the repaint thread, under control of the javax.swing.RepaintManager. Client code should usually call Component.repaint()>
Component.repaint()55 to trigger painting.The body of the
paintcall involves calling JComponent.paintComponent(java.awt.Graphics)>JComponent.paintComponent(java.awt.Graphics)55 , JComponent.paintBorder(java.awt.Graphics)>JComponent.paintBorder(java.awt.Graphics)55 , and JComponent.paintChildren(java.awt.Graphics)>JComponent.paintChildren(java.awt.Graphics)55 in order. If you want to customize painting behavior, you should override one of these methods rather thanpaint.For more details on the painting sequence, see this article.
setSize
public void setSize(java.awt.Dimension d)
- Description copied from class:
java.awt.Component - Sets the size of this component to the specified value.
setSize
public void setSize(int w,
int h)
- Description copied from class:
java.awt.Component - Sets the size of this component to the specified width and height.
update
public void update(java.awt.Graphics g)
- Description copied from class:
javax.swing.JComponent - Call JComponent.paint(java.awt.Graphics)>
JComponent.paint(java.awt.Graphics)55 .
|
|||||||||
| Home >> All >> org >> jext >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC