|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object li.netcat.chart.util.GraphLook
This class defines the look of a graph. It includes a series of pens that is used for area graphs (bar chart, area chart, radar chart etc.), and a series of pens and a series of symbols used for line graphs (line chart, radar line chart etc.).
This class also holds a static default instance that is used during the construction of all charts.
Constructor Summary | |
GraphLook()
Creates a new instance of GraphLook and initializes it to its defaults. |
Method Summary | |
static java.awt.Shape[] |
createSymbols(float size)
Creates a series of default reference symbols using the given size. |
Pen |
getAreaChartPen(int columnIndex)
Returns the Pen that is used to paint the given column in an area chart. |
Pen |
getAreaChartPen(int rowIndex,
int columnIndex)
Returns the Pen that is used to paint the given cell in an area chart (e.g. bar chart or radar chart). |
static GraphLook |
getDefault()
Returns the default instance that is used by all graph parts. |
Pen |
getLineChartPen(int columnIndex)
Returns the Pen that is used to paint the data of a specific column in a line chart.
|
java.awt.Shape |
getSymbol(int columnIndex)
Returns the reference symbol that is used to paint the data of a specific column in a line chart. |
void |
setAreaChartPenBox(PenBox penBox)
Sets the pen box that is used to paint the areas. |
void |
setAreaChartPens(Pen[] pens)
Sets the series of pens that is used to paint the areas. |
static void |
setDefault(GraphLook defaultLook)
Sets the default graph look that will be used by all graph parts at construction time. |
void |
setLineChartPenBox(PenBox penBox)
Sets the pen box that is used to paint the line charts. |
void |
setLineChartPens(Pen[] pens)
Sets the series of pens that is used to paint line charts. |
void |
setSymbols(java.awt.Shape[] symbols)
Sets the series of symbols to be used for painting line charts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphLook()
GraphLook
and initializes it to its defaults.
Method Detail |
public static GraphLook getDefault()
public static void setDefault(GraphLook defaultLook)
public Pen getAreaChartPen(int columnIndex)
Pen
that is used to paint the given column in an area chart.
columnIndex
- The index of the column.public Pen getAreaChartPen(int rowIndex, int columnIndex)
Pen
that is used to paint the given cell in an area chart (e.g. bar chart or radar chart). This implementation
ignores the row index.
rowIndex
- The index of the row.columnIndex
- The index of the column.public Pen getLineChartPen(int columnIndex)
Pen
that is used to paint the data of a specific column in a line chart.
The outline paint of this pen is also used to fill the symbols of a line chart.
columnIndex
- The index of the column.public java.awt.Shape getSymbol(int columnIndex)
columnIndex
- The index of the column.
public void setAreaChartPens(Pen[] pens)
public void setAreaChartPenBox(PenBox penBox)
penBox
- The pen box that is used to paint the areas, not null
.public void setLineChartPens(Pen[] pens)
pens
- An array of paints to be used for painting the lines. Not null
.public void setLineChartPenBox(PenBox penBox)
penBox
- The pen box that is used to paint the line charts, not null
.public void setSymbols(java.awt.Shape[] symbols)
symbols
- An array of symbols to be used for painting the lines. Not null
and no null
entries.public static java.awt.Shape[] createSymbols(float size)
size
- The size of the symbols, odd values are preferred.
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |