|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.haldean.simplegraph.GraphConfiguration
public class GraphConfiguration
A data object that contains configuration parameters for GraphComponent objects
Constructor Summary | |
---|---|
GraphConfiguration()
Create a GraphConfiguration with the default colors
and no label |
|
GraphConfiguration(GraphConfiguration gc)
Create a GraphConfiguration by doing a shallow copy on
a different GraphConfiguration |
|
GraphConfiguration(java.lang.String label)
Create a GraphConfiguration with a label |
Method Summary | |
---|---|
java.awt.Color |
getAxisColor()
Get the color of the graph's axes. |
java.awt.Color |
getBackgroundColor()
Get the background color of the graph. |
java.awt.Color |
getBorderColor()
Get the color of the graph's border. |
boolean |
getEnableInspector()
Returns true if the inspector is shown. |
boolean |
getEnableTickLabels()
Returns true if labels are shown under ticks |
java.awt.Color |
getInspectorColor()
Get the inspector color of the graph. |
java.awt.Font |
getLabelFont()
Get the font used to draw the label. |
java.lang.String |
getLabelValue()
Get the text of the label. |
java.awt.Color |
getLineColor()
Get the color of the data series's line. |
int |
getTickDistance()
Get the number of units between ticks |
int |
getTickSkip()
|
void |
setAxisColor(java.awt.Color axis)
Set the color of the graph's axes. |
void |
setBackgroundColor(java.awt.Color bg)
Set the background color of the graph. |
void |
setBorderColor(java.awt.Color border)
Set the color of the graph's border. |
void |
setEnableInspector(boolean enable)
Set to true to show the inspector. |
void |
setEnableTickLabels(boolean enable)
Set to true to show labels under ticks |
void |
setInspectorColor(java.awt.Color bg)
Set the inspector color of the graph. |
void |
setLabelFont(java.awt.Font font)
Set the font used to draw the label. |
void |
setLabelValue(java.lang.String text)
Set the text of the label. |
void |
setLineColor(java.awt.Color line)
Set the color of the data series's line. |
void |
setTickDistance(int distance)
Set the number of units between ticks. |
void |
setTickSkip(int skip)
Set the number of ticks to skip between ticks with labels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphConfiguration()
GraphConfiguration
with the default colors
and no label
public GraphConfiguration(java.lang.String label)
GraphConfiguration
with a label
label
- The label for the graphpublic GraphConfiguration(GraphConfiguration gc)
GraphConfiguration
by doing a shallow copy on
a different GraphConfiguration
gc
- The GraphConfiguration
to copy.Method Detail |
---|
public void setBackgroundColor(java.awt.Color bg)
public java.awt.Color getBackgroundColor()
public void setBorderColor(java.awt.Color border)
public java.awt.Color getBorderColor()
public void setLineColor(java.awt.Color line)
public java.awt.Color getLineColor()
public void setAxisColor(java.awt.Color axis)
public java.awt.Color getAxisColor()
public void setInspectorColor(java.awt.Color bg)
public java.awt.Color getInspectorColor()
public void setLabelFont(java.awt.Font font)
public java.awt.Font getLabelFont()
public void setLabelValue(java.lang.String text)
public java.lang.String getLabelValue()
public void setTickDistance(int distance)
public int getTickDistance()
public void setEnableTickLabels(boolean enable)
public boolean getEnableTickLabels()
public void setTickSkip(int skip)
public int getTickSkip()
public void setEnableInspector(boolean enable)
public boolean getEnableInspector()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |