public class AbsoluteConstraints
extends java.lang.Object
implements java.io.Serializable
AbsoluteLayout,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
int |
height
The height of the component or -1 if the component's preferred height should be used
|
int |
width
The width of the component or -1 if the component's preferred width should be used
|
int |
x
The X position of the component
|
int |
y
The Y position of the component
|
| Constructor and Description |
|---|
AbsoluteConstraints(int x,
int y)
Creates a new AbsoluteConstraints for specified position.
|
AbsoluteConstraints(int x,
int y,
int width,
int height)
Creates a new AbsoluteConstraints for specified position and size.
|
AbsoluteConstraints(java.awt.Point pos)
Creates a new AbsoluteConstraints for specified position.
|
AbsoluteConstraints(java.awt.Point pos,
java.awt.Dimension size)
Creates a new AbsoluteConstraints for specified position and size.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight() |
int |
getWidth() |
int |
getX() |
int |
getY() |
java.lang.String |
toString() |
public int x
public int y
public int width
public int height
public AbsoluteConstraints(java.awt.Point pos)
pos - The position to be represented by this AbsoluteConstraintspublic AbsoluteConstraints(int x,
int y)
x - The X position to be represented by this AbsoluteConstraintsy - The Y position to be represented by this AbsoluteConstraintspublic AbsoluteConstraints(java.awt.Point pos,
java.awt.Dimension size)
pos - The position to be represented by this AbsoluteConstraintssize - The size to be represented by this AbsoluteConstraints or null
if the component's preferred size should be usedpublic AbsoluteConstraints(int x,
int y,
int width,
int height)
x - The X position to be represented by this AbsoluteConstraintsy - The Y position to be represented by this AbsoluteConstraintswidth - The width to be represented by this AbsoluteConstraints or -1 if the
component's preferred width should be usedheight - The height to be represented by this AbsoluteConstraints or -1 if the
component's preferred height should be usedpublic int getX()
public int getY()
public int getWidth()
public int getHeight()
public java.lang.String toString()
toString in class java.lang.Object