edu.hawaii.ics.yucheng
Class AnchorLayoutManager.Anchor

java.lang.Object
  extended by edu.hawaii.ics.yucheng.AnchorLayoutManager.Anchor
Enclosing class:
AnchorLayoutManager

final class AnchorLayoutManager.Anchor
extends java.lang.Object

An anchor associated with a component.


Field Summary
private  boolean myAnchorX1
           
private  boolean myAnchorX2
           
private  boolean myAnchorY1
           
private  boolean myAnchorY2
           
private  java.awt.Component myComponent
           
private  int myCX
           
private  int myCY
           
private  int myInsetX1
           
private  int myInsetX2
           
private  int myInsetY1
           
private  int myInsetY2
           
private  float myPercentX1
           
private  float myPercentX2
           
private  float myPercentY1
           
private  float myPercentY2
           
 
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
 

Field Detail

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
Constructor Detail

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.
Method Detail

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.