|
RADi Runtime Library v1.2.1 | ||||||||
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.JComponent
de.muntjak.radiloader.Spacer
public class Spacer
A Spacer
is a RADi-special component you place
inside a tool bar to create space between tool bar components.
A Spacer
has a size but no view.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
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 |
---|
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.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 | |
---|---|
Spacer()
Creates a new Spacer with the default size of 8 pixels. |
Method Summary | |
---|---|
Dimension |
getMaximumSize()
Returns this spacer's preferred size which depends on the parent container's (the tool bar's) orientation. |
Dimension |
getMinimumSize()
Returns this spacer's preferred size which depends on the parent container's (the tool bar's) orientation. |
Dimension |
getPreferredSize()
Returns this spacer's preferred size which depends on the parent container's (the tool bar's) orientation. |
int |
getSpacerSize()
Gets the current spacer size. |
void |
paint(Graphics g)
Overrides JComponent.paint to do nothing. |
void |
setSpacerSize(int size)
Sets the new spacer size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Spacer()
Spacer
with the default size of 8 pixels.
Method Detail |
---|
public Dimension getMaximumSize()
getMaximumSize
in class JComponent
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public int getSpacerSize()
public void paint(Graphics g)
JComponent.paint
to do nothing.
paint
in class JComponent
public void setSpacerSize(int size)
size
- the new spacer size
|
RADi Runtime Library v1.2.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |