com.threerings.opengl.gui.layout
Class AnchorLayout.Anchor

java.lang.Object
  extended by com.threerings.opengl.gui.layout.AnchorLayout.Anchor
Enclosing class:
AnchorLayout

public static class AnchorLayout.Anchor
extends Object

Represents the location of an anchor binding a point of the child component to a point on the parent.


Field Summary
 float cx
          The proportional location of the anchor on the child component.
 float cy
          The proportional location of the anchor on the child component.
 float px
          The proportional location of the anchor on the parent component.
 float py
          The proportional location of the anchor on the parent component.
 
Constructor Summary
AnchorLayout.Anchor(float cx, float cy, float px, float py)
          Creates a new anchor.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cx

public float cx
The proportional location of the anchor on the child component.


cy

public float cy
The proportional location of the anchor on the child component.


px

public float px
The proportional location of the anchor on the parent component.


py

public float py
The proportional location of the anchor on the parent component.

Constructor Detail

AnchorLayout.Anchor

public AnchorLayout.Anchor(float cx,
                           float cy,
                           float px,
                           float py)
Creates a new anchor.

Parameters:
cx - the proportional x location of the anchor on the child component.
cy - the proportional y location of the anchor on the child component.
px - the proportional x location of the anchor on the parent component.
py - the proportional y location of the anchor on the parent component.


Copyright © 2011. All Rights Reserved.