All Packages Class Hierarchy This Package Previous Next Index
Class datarep.common.Spacer
java.lang.Object
|
+----java.awt.Component
|
+----datarep.common.Spacer
- public class Spacer
- extends Component
The Spacer class provides a simple component which takes up space, but does not respond
to events. This is useful as a placeholder in a layout, or to adjust the spacing between
parts in a layout, giving more precise control over
the display of a program.
- Version:
- 1.2
- Author:
- Data Representations, Inc.
-
Spacer()
-
-
Spacer(Dimension)
- Construct a new spacer with the dimension as specified.
-
Spacer(int)
- Construct a new spacer with width as specified, and height of 0.
-
Spacer(int, int)
- Construct a new spacer with width and height as specified.
-
Spacer(int, String)
- Construct a new spacer with height as specified, and width of 0.
-
getMinimumSize()
- returns the current size.
-
getPreferredSize()
- returns the current size.
-
setPreferredSize(Dimension)
- Sets the size to the specified dimension.
-
setPreferredSize(int, int)
- Sets the size to the specified width and height.
Spacer
public Spacer()
Spacer
public Spacer(int width)
- Construct a new spacer with width as specified, and height of 0.
Spacer
public Spacer(int height,
String marker)
- Construct a new spacer with height as specified, and width of 0. The string is included just
to differentiate from the width constructor.
Spacer
public Spacer(int width,
int height)
- Construct a new spacer with width and height as specified.
Spacer
public Spacer(Dimension d)
- Construct a new spacer with the dimension as specified.
setPreferredSize
public void setPreferredSize(int width,
int height)
- Sets the size to the specified width and height.
setPreferredSize
public void setPreferredSize(Dimension d)
- Sets the size to the specified dimension.
getPreferredSize
public Dimension getPreferredSize()
- returns the current size.
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- returns the current size.
- Overrides:
- getMinimumSize in class Component
All Packages Class Hierarchy This Package Previous Next Index