Chart

public abstract class Chart
Hierarchy:
Object ⯈ Chart
Known direct subclasses:
HSetChart, ScatterChart

Common superclass for all diagrams.

Summary

Constructors
Chart ()
Default constructor.
Instance Methods
protected double calcLeft (Anchor a, double width, boolean inside)
protected double calcTop (Anchor a, double height, boolean inside)
protected double calcx (Anchor a)
protected double calcx (Anchor a, double mid)
protected double calcy (Anchor a)
protected double calcy (Anchor a, double mid)
int getHeight ()
int getWidth ()
protected void printAxes (PrintStream out)
void printChart (PrintStream out)
protected void printData (PrintStream out)
protected void printDefs (PrintStream out)
protected void printGrid (PrintStream out)
void printPage (PrintStream out)
protected void printStyles (PrintStream out)
Chart setMargins (int left, int right, int top, int bottom)
Chart setSize (int w, int h)
Chart setTitle (String title)
Chart setTitle (String title, Anchor anchorX, Anchor anchorY)
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.

chartWidth

public int chartWidth;

chartHeight

public int chartHeight;

clipChart

public boolean clipChart;

marginLeft

public int marginLeft;

marginRight

public int marginRight;

marginTop

public int marginTop;

marginBottom

public int marginBottom;

chartAreaStyle

public String chartAreaStyle;

gridLineStyle

public String gridLineStyle;

axisLineStyle

public String axisLineStyle;

frameStyle

public String frameStyle;

title

public String title;

titleStyle

public String titleStyle;

titleAnchorX

public Anchor titleAnchorX;

titleAnchorY

public Anchor titleAnchorY;

legend

public Legend legend;

id

public String id;

setTitle

public Chart setTitle (
	String title
);

setTitle

public Chart setTitle (
	String title,
	Anchor anchorX,
	Anchor anchorY
);

setSize

public Chart setSize (
	int w,
	int h
);

setMargins

public Chart setMargins (
	int left,
	int right,
	int top,
	int bottom
);

calcx

protected double calcx (
	Anchor a
);

calcy

protected double calcy (
	Anchor a
);

calcx

protected double calcx (
	Anchor a,
	double mid
);

calcy

protected double calcy (
	Anchor a,
	double mid
);

calcLeft

protected double calcLeft (
	Anchor a,
	double width,
	boolean inside
);

calcTop

protected double calcTop (
	Anchor a,
	double height,
	boolean inside
);

getWidth

public int getWidth ();

getHeight

public int getHeight ();

printGrid

protected void printGrid (
	PrintStream out
);

printData

protected void printData (
	PrintStream out
);

printAxes

protected void printAxes (
	PrintStream out
);

printChart

public void printChart (
	PrintStream out
);

printStyles

protected void printStyles (
	PrintStream out
);

printDefs

protected void printDefs (
	PrintStream out
);

printPage

public void printPage (
	PrintStream out
);