Anchor

public class Anchor
Hierarchy:
Object ⯈ Anchor

Summary

Constants
static final Anchor bottom
static final Anchor left
static final Anchor middle
static final Anchor right
static final Anchor top
static final Anchor zero
Instance Fields
protected final int align
final double offs
Constructors
protected Anchor (int align, double offs)
Instance Methods
boolean aligned (Anchor a)
double calc (double min, double max)
double calc (double min, double mid, double max)
String innerAlign ()
Anchor offset (double offs)
Anchor opposite ()
String outerAlign ()
double startOffs (double size, boolean inside)
Show all inherited methods (11 more)
protected native Object clone ()
Inherited from Object.
boolean equals (Object)
Inherited from Object.
protected void finalize ()
Inherited from Object.
final native Class<?> getClass ()
Inherited from Object.
native int hashCode ()
Inherited from Object.
final native void notify ()
Inherited from Object.
final native void notifyAll ()
Inherited from Object.
String toString ()
Inherited from Object.
final void wait ()
Inherited from Object.
final native void wait (long)
Inherited from Object.
final void wait (long, int)
Inherited from Object.
Static Methods
protected static String innerAlign (int a)

offs

public final double offs;

align

protected final int align;

left

public static final Anchor left;

bottom

public static final Anchor bottom;

middle

public static final Anchor middle;

zero

public static final Anchor zero;

right

public static final Anchor right;

top

public static final Anchor top;

Anchor

protected Anchor (
	int align,
	double offs
);

offset

public Anchor offset (
	double offs
);

opposite

public Anchor opposite ();

aligned

public boolean aligned (
	Anchor a
);

calc

public double calc (
	double min,
	double max
);

calc

public double calc (
	double min,
	double mid,
	double max
);

startOffs

public double startOffs (
	double size,
	boolean inside
);

innerAlign

public String innerAlign ();

outerAlign

public String outerAlign ();

innerAlign

protected static String innerAlign (
	int a
);