javazoom.jlgui.player.amp.skin
Class AbsoluteConstraints
java.lang.Objectjavazoom.jlgui.player.amp.skin.AbsoluteConstraints
- java.io.Serializable
public class AbsoluteConstraints
extends java.lang.Object
implements java.io.Serializable
An object that encapsulates position and (optionally) size for
Absolute positioning of components.
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
|
AbsoluteConstraints(Point pos)- Creates a new AbsoluteConstraints for specified position.
|
AbsoluteConstraints(Point pos, Dimension size)- Creates a new AbsoluteConstraints for specified position and size.
|
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.
|
height
public int height
The height of the component or -1 if the component's preferred height should be used
width
public int width
The width of the component or -1 if the component's preferred width should be used
x
public int x
The X position of the component
y
public int y
The Y position of the component
AbsoluteConstraints
public AbsoluteConstraints(Point pos)
Creates a new AbsoluteConstraints for specified position.
pos - The position to be represented by this AbsoluteConstraints
AbsoluteConstraints
public AbsoluteConstraints(Point pos,
Dimension size) Creates a new AbsoluteConstraints for specified position and 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 used
AbsoluteConstraints
public AbsoluteConstraints(int x,
int y) Creates a new AbsoluteConstraints for specified position.
x - The X position to be represented by this AbsoluteConstraintsy - The Y position to be represented by this AbsoluteConstraints
AbsoluteConstraints
public AbsoluteConstraints(int x,
int y,
int width,
int height) Creates a new AbsoluteConstraints for specified position and size.
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 used
getHeight
public int getHeight()
- The height represented by this AbsoluteConstraints or -1 if the
component's preferred height should be used
getWidth
public int getWidth()
- The width represented by this AbsoluteConstraints or -1 if the
component's preferred width should be used
getX
public int getX()
- The X position represented by this AbsoluteConstraints
getY
public int getY()
- The Y position represented by this AbsoluteConstraints
toString
public String toString()
JavaZOOM 1999-2006