org.freehep.swing.layout
Class PercentLayout.Constraint
java.lang.Object
org.freehep.swing.layout.PercentLayout.Constraint
- Enclosing class:
- PercentLayout
public static class PercentLayout.Constraint
- extends Object
Constructor Summary |
PercentLayout.Constraint(double x,
double y,
double width,
double height)
Creates a Constraint Object. |
Method Summary |
void |
setConstraints(double x,
double y,
double width,
double height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PercentLayout.Constraint
public PercentLayout.Constraint(double x,
double y,
double width,
double height)
- Creates a Constraint Object.
- Parameters:
x
- The X position of the top left corner of the component (0-100)y
- The Y position of the top left corner of the component (0-100)width
- The percentage width of the component (0-100)height
- The percentage height of the component (0-100)
setConstraints
public void setConstraints(double x,
double y,
double width,
double height)
Copyright © 2000-2007 FreeHEP. All Rights Reserved.