|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orbital.awt.ChartModel
public class ChartModel
Containement class that represents a model for chart data.
Graphs in the chart data are objects like, for example:
Each graph can have associated an attribute-map that specifies attributes for displaying it. Which keys are recognized and which types of graphs are expected is specific to the View of this Model.
Nested Class Summary | |
---|---|
class |
ChartModel.Entry
The entries of a ChartModel's List of displayed graphs. |
Constructor Summary | |
---|---|
ChartModel()
|
Method Summary | |
---|---|
void |
add(java.lang.Object graph)
Add a new graph to be displayed without attributes. |
void |
add(java.lang.Object graph,
java.util.Map attributes)
Add a new graph to be displayed. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
java.util.List |
attributeList()
Get the List of solely attributes to be displayed. |
int |
getGraphCount()
Get the number of graphs displayed. |
java.util.List |
getGraphs()
Get the List of graphs to be displayed. |
Range |
getRange()
Get the visible range to be displayed. |
Vector |
getScale()
Get the scale. |
java.util.List |
graphList()
Get the List of solely graphs to be displayed. |
boolean |
isRainbow()
Whether rainbow colors are used for graphs that have no color setting. |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this chart model in proper sequence. |
void |
remove(int index)
Remove a graph. |
void |
removeAll()
Remove all graphs. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
setAutoScaling()
Sets the scale and range parameters automatically, according to the graphs displayed. |
void |
setRainbow(boolean rainbowize)
Set rainbow colors for all graphs added to display. |
void |
setRange(Range range)
Set the visible range to be displayed. |
void |
setScale(Vector scale)
Set the scale. |
void |
setScaleMarks(double marks)
Set the scale such that at least a specified number of marks is visible on each axis. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartModel()
Method Detail |
---|
public int getGraphCount()
public java.util.List getGraphs()
ChartModel.Entry
.
graphList()
,
attributeList()
public java.util.Iterator iterator()
public Vector getScale()
public void setScale(Vector scale)
public void setScaleMarks(double marks)
public Range getRange()
public void setRange(Range range)
public boolean isRainbow()
public void setRainbow(boolean rainbowize)
nextRainbowColor()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
public void add(java.lang.Object graph, java.util.Map attributes)
Map
.
graph
- the graph to be displayed in the chart.attributes
- map of attributes how graph should be displayed. Use null
if for no attributes.public void add(java.lang.Object graph)
public void remove(int index)
public void removeAll()
public java.util.List graphList()
Object
.
Unlike getGraphs(), no ChartModel.Entry
objects are returned,
but only the ChartModel.Entry.graph
part.
getGraphs()
public java.util.List attributeList()
Map
.
Unlike getGraphs(), no ChartModel.Entry
objects are returned.
but only the ChartModel.Entry.attributes
part.
getGraphs()
public void setAutoScaling()
The range is determined by the minima / maxima and the scale is set to default.
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |