edu.hawaii.ics.yucheng
Class AnchorLayoutManager.Anchor
java.lang.Object
edu.hawaii.ics.yucheng.AnchorLayoutManager.Anchor
- Enclosing class:
- AnchorLayoutManager
final class AnchorLayoutManager.Anchor
- extends java.lang.Object
An anchor associated with a component.
Constructor Summary |
AnchorLayoutManager.Anchor(java.lang.String flags,
java.awt.Component component)
Initializes a new instance of the class. |
Method Summary |
void |
setBounds(int containerCX,
int containerCY)
Sets the bounds on the assigned component based on the size of the
container. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myAnchorX1
private final boolean myAnchorX1
myAnchorX2
private final boolean myAnchorX2
myAnchorY1
private final boolean myAnchorY1
myAnchorY2
private final boolean myAnchorY2
myComponent
private final java.awt.Component myComponent
myCX
private final int myCX
myCY
private final int myCY
myInsetX1
private final int myInsetX1
myInsetX2
private final int myInsetX2
myInsetY1
private final int myInsetY1
myInsetY2
private final int myInsetY2
myPercentX1
private final float myPercentX1
myPercentX2
private final float myPercentX2
myPercentY1
private final float myPercentY1
myPercentY2
private final float myPercentY2
AnchorLayoutManager.Anchor
public AnchorLayoutManager.Anchor(java.lang.String flags,
java.awt.Component component)
- Initializes a new instance of the class.
- Parameters:
flags
- The anchor flags.component
- The component.
setBounds
public void setBounds(int containerCX,
int containerCY)
- Sets the bounds on the assigned component based on the size of the
container.
- Parameters:
containerCX
- The width of the container.containerCY
- The height of the container.