Legend

public class Legend
extends GridLayout
Hierarchy:
ObjectGridLayout ⯈ Legend

Summary

Nested Classes
static interface Legend.LegendItem
Instance Fields
Anchor anchorX
Anchor anchorY
String frameStyle
Inherited from GridLayout.
int gapx
Inherited from GridLayout.
int gapy
Inherited from GridLayout.
boolean inside
int itemHeight
Inherited from GridLayout.
int itemWidth
Inherited from GridLayout.
ArrayList<Legend.LegendItem> items
int margin
Inherited from GridLayout.
int numCols
Inherited from GridLayout.
int swatchWidth
Constructors
Legend (int numCols)
Instance Methods
GridLayout autoItemSize ()
Inherited from GridLayout.
int countCols ()
Inherited from GridLayout.
int countItems ()
int countRows ()
Inherited from GridLayout.
int getHeight ()
Inherited from GridLayout.
int getWidth ()
Inherited from GridLayout.
Legend posBottom (double offs)
Legend posInside (Anchor anchorX, Anchor anchorY)
Legend posLeft (double offs)
Legend posRight (double offs)
Legend posTop (double offs)
void printItem (PrintStream out, int index, double x, double y)
void printItems (PrintStream out, double left, double top)
Inherited from GridLayout.
GridLayout setCols (int numCols)
Inherited from GridLayout.
GridLayout setFrame (int margin, String style)
Inherited from GridLayout.
GridLayout setGap (int gap)
Inherited from GridLayout.
GridLayout setGap (int gapx, int gapy)
Inherited from GridLayout.
GridLayout setItemSize (int w, int h)
Inherited from GridLayout.
Legend setSwatchWidth (int width)
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.

anchorX

public Anchor anchorX;

anchorY

public Anchor anchorY;

inside

public boolean inside;

swatchWidth

public int swatchWidth;

Legend

public Legend (
	int numCols
);

setSwatchWidth

public Legend setSwatchWidth (
	int width
);

posInside

public Legend posInside (
	Anchor anchorX,
	Anchor anchorY
);

posLeft

public Legend posLeft (
	double offs
);

posRight

public Legend posRight (
	double offs
);

posTop

public Legend posTop (
	double offs
);

posBottom

public Legend posBottom (
	double offs
);

countItems

@Override
public int countItems ();

Implements GridLayout.countItems().

printItem

@Override
public void printItem (
	PrintStream out,
	int index,
	double x,
	double y
);

Implements GridLayout.printItem(PrintStream, int, double, double).