|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kirk.gui.layout.GridSpanConstraints
This class represents a constraints object for GridSpanLayout
.
Various methods are available to set the correct settings for each associated
Component
. For more information, see GridSpanLayout
.
GridSpanLayout
,
GridBagConstraints
Field Summary | |
protected int |
height
The height of the associated Component , in cells. |
protected double |
horizontalanchor
The relative position of the associated Component on the x-axis
of the space it is in. |
protected double |
horizontalfill
Whether the associated Component should be as high as the space
it is in. |
protected double |
verticalanchor
The relative position of the associated Component on the y-axis
of the space it is in. |
protected double |
verticalfill
Whether the associated Component should be as wide as the space
it is in. |
protected int |
width
The width of the associated Component , in cells. |
protected int |
x
The X coordinate of the associated Component , in cells. |
protected int |
y
The Y coordinate of the associated Component , in cells. |
Constructor Summary | |
GridSpanConstraints()
Constructs a new GridSpanConstraints with the default settings.
|
|
GridSpanConstraints(int x,
int y,
int width,
int height)
Constructs a new GridSpanConstraints with the given settings, and
the default values for the rest. |
|
GridSpanConstraints(int x,
int y,
int width,
int height,
double horizontalfill,
double verticalfill,
double horizontalanchor,
double verticalanchor)
Constructs a new GridSpanConstraints with the passed settings. |
Method Summary | |
Object |
clone()
Returns a copy of this object. |
int |
getHeight()
Returns the height of the associated Component . |
double |
getHorizontalAnchor()
Returns the horizontal anchor of the associated Component . |
double |
getHorizontalFill()
Returns the horizontal fill of the associated Component . |
double |
getVerticalAnchor()
Returns the vertical anchor of the associated Component . |
double |
getVerticalFill()
Returns the vertical fill of the associated Component . |
int |
getWidth()
Returns the width of the associated Component . |
int |
getX()
Returns the x coordinate of the associated Component . |
int |
getY()
Returns the y coordinate of the associated Component . |
void |
setHeight(int height)
Sets the height of the associated Component . |
void |
setHorizontalAnchor(double horizontalanchor)
Sets the horizontal anchor of the associated Component . |
void |
setHorizontalFill(double horizontalfill)
Sets the horizontal fill of the associated Component . |
void |
setVerticalAnchor(double verticalanchor)
Sets the vertical anchor of the associated Component . |
void |
setVerticalFill(double verticalfill)
Sets the vertical fill of the associated Component . |
void |
setWidth(int width)
Sets the width of the associated Component . |
void |
setX(int x)
Sets the x coordinate of the associated Component . |
void |
setY(int y)
Sets the y coordinate of the associated Component . |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int x
Component
, in cells.
protected int y
Component
, in cells.
protected int width
Component
, in cells.
protected int height
Component
, in cells.
protected double horizontalfill
Component
should be as high as the space
it is in.
protected double verticalfill
Component
should be as wide as the space
it is in.
protected double horizontalanchor
Component
on the x-axis
of the space it is in.
protected double verticalanchor
Component
on the y-axis
of the space it is in.
Constructor Detail |
public GridSpanConstraints(int x, int y, int width, int height, double horizontalfill, double verticalfill, double horizontalanchor, double verticalanchor)
GridSpanConstraints
with the passed settings.
x
- The x coordinate.y
- The y coordinate.width
- The width coordinate.height
- The height coordinate.public GridSpanConstraints(int x, int y, int width, int height)
GridSpanConstraints
with the given settings, and
the default values for the rest. See the no parameter constructor for the
default values.
x
- The x coordinate.y
- The y coordinate.width
- The width coordinate.height
- The height coordinate.public GridSpanConstraints()
GridSpanConstraints
with the default settings.
These are:LayoutManager
use
the Component
's preferred width.
LayoutManager
use
the Component
's preferred height.
LayoutManager
use
the Component
's value.
LayoutManager
use
the Component
's value.
Method Detail |
public void setX(int x)
Component
.
x
- The x coordinate.public int getX()
Component
.
public void setY(int y)
Component
.
y
- The y coordinate.public int getY()
Component
.
public void setWidth(int width)
Component
.
width
- The width.public int getWidth()
Component
.
public void setHeight(int height)
Component
.
height
- The height.public int getHeight()
Component
.
public void setHorizontalFill(double horizontalfill)
Component
.
horizontalfill
- The horizontal fill.public double getHorizontalFill()
Component
.
public void setVerticalFill(double verticalfill)
Component
.
verticalfill
- The vertical fill.public double getVerticalFill()
Component
.
public void setHorizontalAnchor(double horizontalanchor)
Component
.
horizontalanchor
- The horizontal anchor.public double getHorizontalAnchor()
Component
.
public void setVerticalAnchor(double verticalanchor)
Component
.
verticalanchor
- The vertical anchor.public double getVerticalAnchor()
Component
.
public Object clone()
clone
in class Object
Object.clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |