|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.SmartConstraints
public class SmartConstraints
Smarter version of CellConstraints
that holds the current locataion.
Field Summary | |
---|---|
private com.jgoodies.forms.layout.CellConstraints |
cellConstraints
The actual cell constraints object used. |
private int |
initialX
The initial x coordinate to reset to. |
private int |
x
The current x coordinate. |
private int |
y
The current y coordinate. |
Constructor Summary | |
---|---|
SmartConstraints()
Returns a new smart constraints object starting at (1, 1). |
|
SmartConstraints(int x,
int y)
Creates a new smart constraints object with the specified initial coordinates. |
Method Summary | |
---|---|
void |
reset(int startX,
int startY)
Resets the smart constraints to the specified coordinates. |
com.jgoodies.forms.layout.CellConstraints |
x(int offsetX)
Returns a cell constraints with the current location and a width and height of one. |
com.jgoodies.forms.layout.CellConstraints |
xw(int offsetX,
int width)
Returns a cell constraints with the current location, the specified width and height of one. |
com.jgoodies.forms.layout.CellConstraints |
y(int offsetY)
Returns a cell constraints with the current location and a width and height of one. |
com.jgoodies.forms.layout.CellConstraints |
yw(int offsetY,
int width)
Returns a cell constraints with the current location and a width and height of one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final com.jgoodies.forms.layout.CellConstraints cellConstraints
private int initialX
private int x
private int y
Constructor Detail |
---|
public SmartConstraints()
The initial x coordinate is also set to 1.
public SmartConstraints(int x, int y)
x
- the x coordinate, also serves as initial x coordinate.y
- the y coordinate.Method Detail |
---|
public void reset(int startX, int startY)
The x coordinate also server as initial x coordinate.
startX
- the x coordinate, also serves as initial x coordinate.startY
- the y coordinate.public com.jgoodies.forms.layout.CellConstraints x(int offsetX)
The x coordinate is incremented by the specified offset once the constraints are determined, the y coordinate is left untouched.
offsetX
- the x coordinate offset.
public com.jgoodies.forms.layout.CellConstraints xw(int offsetX, int width)
The x coordinate is incremented by the specified offset once the constraints are determined, the y coordinate is left untouched.
offsetX
- the x coordinate offset.width
- the width of the cell constraint returned.
public com.jgoodies.forms.layout.CellConstraints y(int offsetY)
The x coordinate is reset to the initial value and the y coordinate is incremented by the specified offset once the constraints are determined.
offsetY
- the y coordinate offset.
public com.jgoodies.forms.layout.CellConstraints yw(int offsetY, int width)
The x coordinate is reset to the initial value and the y coordinate is incremented by the specified offset once the constraints are determined.
offsetY
- the y coordinate offset.width
- the width of the cell constraint returned.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG