|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.motionchart.MotionChart
public class MotionChart
Package: edu.ucla.stat.SOCR.motionchart User: Khashim Date: Sep 15, 2008 Time: 2:58:23 PM
Constructor Summary | |
---|---|
MotionChart(MotionDataSet dataset)
Creates a new chart based on the supplied dataset. |
|
MotionChart(java.lang.String title,
java.awt.Font titleFont,
MotionDataSet dataset,
boolean createLegend)
Creates a new chart with the given title and dataset. |
|
MotionChart(java.lang.String title,
MotionDataSet dataset)
Creates a new chart with the given title and dataset. |
Method Summary | |
---|---|
void |
addChangeListener(ChartChangeListener listener)
Registers an object for notification of changes to the chart. |
void |
chartChanged(ChartChangeEvent event)
Receives notification of a chart change event. |
java.lang.Object |
clone()
Clones the object, and takes care of listeners. |
void |
datasetChanged(DatasetChangeEvent event)
Receives notification of an dataset change event. |
boolean |
equals(java.lang.Object obj)
Tests this chart for equality with another object. |
void |
fireChartChanged()
Sends a default ChartChangeEvent to all registered listeners. |
JFreeChart |
getChart()
|
ChartPanel |
getChartPanel()
|
MotionDataSet |
getDataset()
|
XYPlot |
getPlot()
|
MotionBubbleRenderer |
getRenderer()
|
TextTitle |
getTitle()
Returns the main chart title. |
boolean |
isNotify()
Returns a flag that controls whether or not change events are sent to registered listeners. |
protected void |
notifyListeners(ChartChangeEvent event)
Sends a ChartChangeEvent to all registered listeners. |
void |
removeChangeListener(ChartChangeListener listener)
Deregisters an object for notification of changes to the chart. |
void |
setNotify(boolean notify)
Sets a flag that controls whether or not listeners receive ChartChangeEvent notifications. |
void |
setTitle(TextTitle title)
Sets the main title for the chart and sends a org.jfree.chart.event.ChartChangeEvent
to all registered listeners. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MotionChart(MotionDataSet dataset)
dataset
- the dataset (null
not permitted).public MotionChart(java.lang.String title, MotionDataSet dataset)
title
- the chart title (null
permitted).dataset
- the dataset (null
not permitted).public MotionChart(java.lang.String title, java.awt.Font titleFont, MotionDataSet dataset, boolean createLegend)
createLegend
argument specifies whether or not a legend
should be added to the chart.
title
- the chart title (null
permitted).titleFont
- the font for displaying the chart title
(null
permitted).dataset
- the dataset
(null
not permitted).createLegend
- a flag indicating whether or not a legend should
be created for the chart.Method Detail |
---|
public JFreeChart getChart()
public ChartPanel getChartPanel()
public MotionBubbleRenderer getRenderer()
public MotionDataSet getDataset()
public XYPlot getPlot()
public TextTitle getTitle()
null
).setTitle(TextTitle)
public void setTitle(TextTitle title)
org.jfree.chart.event.ChartChangeEvent
to all registered listeners. If you do not want a title for the
chart, set it to null
.
title
- the title (null
permitted).getTitle()
public void datasetChanged(DatasetChangeEvent event)
event
- information about the event.public void chartChanged(ChartChangeEvent event)
event
- the event.public boolean isNotify()
setNotify(boolean)
public void setNotify(boolean notify)
ChartChangeEvent
notifications.
notify
- a boolean.isNotify()
public void addChangeListener(ChartChangeListener listener)
listener
- the listener (null
not permitted).removeChangeListener(ChartChangeListener)
public void removeChangeListener(ChartChangeListener listener)
listener
- the listener (null
not permitted)addChangeListener(ChartChangeListener)
public void fireChartChanged()
ChartChangeEvent
to all registered listeners.
This method is for convenience only.
protected void notifyListeners(ChartChangeEvent event)
ChartChangeEvent
to all registered listeners.
event
- information about the event that triggered the
notification.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the chart is not cloneable.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |