|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.gui.IzPanelConstraints
public class IzPanelConstraints
Constraints class for the layout manager IzPanelLayout
.
Field Summary | |
---|---|
private java.awt.Rectangle |
bounds
|
(package private) java.awt.Component |
component
for private use by the layout manager |
(package private) int |
preferredHeight
for private use by the layout manager |
private int |
xCellAlignment
Current defined gaps. |
private int |
xGap
|
private int |
xPos
|
private double |
xStretch
|
private int |
xWeight
|
private int |
yCellAlignment
|
private int |
yGap
|
private int |
yPos
|
private double |
yStretch
|
private int |
yWeight
|
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
IzPanelConstraints()
Default constructor |
|
IzPanelConstraints(int xCellAlignment,
int yCellAlignment,
int xPos,
int yPos,
int xWeight,
int yWeight,
int xGap,
int yGap,
double xStretch,
double yStretch)
Constructor with all existent parameters. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.awt.Rectangle |
getBounds()
Returns the bounds which should be used by the corresponding component. |
int |
getXCellAlignment()
Returns the alignment for the x direction. |
int |
getXGap()
Returns the declared x gap value. |
int |
getXPos()
Returns the x position (column number). |
double |
getXStretch()
Returns the declared stretch value in x direction. |
int |
getXWeight()
Returns the weight for the x direction. |
int |
getYCellAlignment()
Returns the alignment for the y direction. |
int |
getYGap()
Returns the declared y gap value. |
int |
getYPos()
Returns the y position (row number). |
double |
getYStretch()
Returns the declared stretch value in y direction. |
int |
getYWeight()
Returns the weight for the y direction. |
void |
setBounds(java.awt.Rectangle bounds)
Sets the bounds which should be used for the component. |
void |
setXCellAlignment(int cellAlignment)
Sets the alignment for the x direction. |
void |
setXGap(int gap)
Sets the given value as x gap. |
void |
setXPos(int pos)
Sets the x position to be used. |
void |
setXStretch(double stretch)
Sets the given value as stretch value for x direction. |
void |
setXWeight(int weight)
Sets the weight value for the x direction. |
void |
setYCellAlignment(int cellAlignment)
Sets the alignment for the y direction. |
void |
setYGap(int gap)
Sets the given value as y gap. |
void |
setYPos(int pos)
Sets the y position to be used. |
void |
setYStretch(double stretch)
Sets the given value as stretch value for y direction. |
void |
setYWeight(int weight)
Sets the weight value for the y direction. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int xCellAlignment
private int yCellAlignment
private int xPos
private int yPos
private int xWeight
private int yWeight
private int xGap
private int yGap
private double xStretch
private double yStretch
private java.awt.Rectangle bounds
java.awt.Component component
int preferredHeight
Constructor Detail |
---|
public IzPanelConstraints(int xCellAlignment, int yCellAlignment, int xPos, int yPos, int xWeight, int yWeight, int xGap, int yGap, double xStretch, double yStretch)
xCellAlignment
- value to be used as x alignmentyCellAlignment
- value to be used as y alignmentxPos
- x position to be usedyPos
- y position to be usedxWeight
- weight at x directionyWeight
- weight at y directionxGap
- gap for x directionyGap
- gap for y directionxStretch
- stretch value for the x directionyStretch
- stretch value for the y directionpublic IzPanelConstraints()
Method Detail |
---|
public double getXStretch()
public void setXStretch(double stretch)
stretch
- value to be setpublic double getYStretch()
public void setYStretch(double stretch)
stretch
- value to be setpublic int getXGap()
public void setXGap(int gap)
gap
- value to be setpublic int getYGap()
public void setYGap(int gap)
gap
- value to be setpublic java.lang.Object clone()
clone
in class java.lang.Object
public int getXCellAlignment()
public void setXCellAlignment(int cellAlignment)
cellAlignment
- to be usedpublic int getXPos()
public void setXPos(int pos)
pos
- position to be usedpublic int getXWeight()
public void setXWeight(int weight)
weight
- to be used for the x directionpublic int getYCellAlignment()
public void setYCellAlignment(int cellAlignment)
cellAlignment
- to be usedpublic int getYPos()
public void setYPos(int pos)
pos
- position to be usedpublic int getYWeight()
public void setYWeight(int weight)
weight
- to be used for the y directionpublic java.awt.Rectangle getBounds()
public void setBounds(java.awt.Rectangle bounds)
bounds
- bounds to be used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |