|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ChartFrame ij.plugin.frame.ChartFramePlugIn
public class ChartFramePlugIn
This class provides JFreeChart library plotting functionality as an ImageJ/PhysImage plugin. This plugin also introduces quite a few methods for manipulating the content and presentation of the chart data. This is one of the basic PlugIn Frames whose contents can be displayed in Layouts.
Field Summary | |
---|---|
protected ValueAxis |
domainAxis
|
protected ImageJ |
ij
|
protected double |
maxX
|
protected double |
minX
|
protected javax.swing.JScrollBar |
scrollbar
|
protected javax.swing.JPanel |
statusbar
|
protected javax.swing.JLabel |
statusLine
|
Constructor Summary | |
---|---|
ChartFramePlugIn(java.lang.String title,
JFreeChart chart)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addAnnotation(XYAnnotation annotation)
Adds any kinds of XYAnnotation to the chart |
void |
addAnnotations(XYAnnotation[] annotations)
Adds any kinds of XYAnnotations to the chart |
void |
addAnnotationsFrom(ChartFramePlugIn sourceChart)
Add XYAnnotations from another chart to the current chart. |
void |
addComment(Comment comment)
Adds a single Comment to the chart. |
void |
addComments(Comments comments)
Adds the Comments to the chart. |
void |
addMarker(WaveMarker marker)
Adds a single WaveMarker to the chart. |
void |
addMarkers(java.util.ArrayList markers)
Adds each of the WaveMarkers in the list to the current chart. |
void |
addWave(java.lang.String name)
Adds a Wave from the WaveManager to the Chart by name. |
void |
addWave(Wave wave)
Adds a Wave to the chart. |
void |
addWave(Wave wave,
java.awt.Color color)
Adds a Wave with the given Color to the chart. |
void |
addWaves(Waves waves)
Adds all the Waves to the current chart. |
void |
addWaves(Waves waves,
java.awt.Color color)
|
void |
addWaves(Waves waves,
double lowRange,
double highRange,
java.awt.Color color)
|
void |
addWaves(WaveXYZDataset data,
Waves waves,
java.awt.Color color)
|
void |
addWaves(WaveXYZDataset data,
Waves waves,
double lowRange,
double highRange,
java.awt.Color color)
|
XYPlot |
addXYZPlot(Waves waves)
|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
|
void |
axisChanged(AxisChangeEvent e)
|
void |
chartMouseClicked(ChartMouseEvent e)
|
void |
chartMouseMoved(ChartMouseEvent e)
|
ChartFramePlugIn |
clone()
|
void |
close()
Closes this window. |
void |
componentHidden(java.awt.event.ComponentEvent e)
|
void |
componentMoved(java.awt.event.ComponentEvent e)
|
void |
componentResized(java.awt.event.ComponentEvent event)
|
void |
componentShown(java.awt.event.ComponentEvent e)
|
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
XYAnnotation[] |
getAnnotations()
Returns a list of XYAnnotations on the chart. |
java.util.List |
getAxes()
Returns a list with all the axes. |
Axis |
getAxis(java.lang.String name)
Returns the Axis corresponding to the axis label. |
Range |
getAxisExtents(java.lang.String name)
Returns the drawable extents for the axis given by the name. |
Range |
getAxisRange(java.lang.String name)
Returns the axis range |
JFreeChart |
getChart()
|
java.util.ArrayList |
getDatasets()
|
void |
getDatasets(java.util.ArrayList list,
XYPlot plot)
|
java.util.List |
getDomainAxes()
Returns a list with all the domain axes. |
java.lang.String |
getInfo()
|
protected java.lang.StringBuffer |
getInfo(java.lang.StringBuffer sb,
java.lang.String indention,
XYPlot plot)
|
java.util.ArrayList |
getMarkers()
Returns a reference to the list of WaveMarkers on the chart. |
java.util.ArrayList |
getMarkers(java.lang.String type)
Returns the list of a type of markers, but should only be used for read-only. |
java.lang.String[] |
getMarkerTypes()
|
PaintScale |
getPaintScale(java.lang.String waveName,
int series)
Gets the PaintScale for a Wave rendered using the XYBlockRenderer (e.g., 3D plots) |
PaintScale |
getPaintScale(XYPlot subplot,
int series)
|
java.util.List |
getRangeAxes()
Returns a list with all the range axes. |
protected int |
getSeriesIndex(java.lang.String waveName)
|
java.util.ArrayList |
getTriggerMarkers()
Returns the list of trigger markers, but should only be used for read-only. |
Wave |
getWave(java.lang.String name)
Returns the Wave from the chart with the given name. |
Waves |
getWaves()
Returns all the Waves from the chart. |
XYDataset |
getXYDatasetForWave(java.lang.String waveName)
|
XYPlot |
getXYPlot()
|
XYPlot |
getXYPlotForWave(java.lang.String waveName)
|
void |
hideDetails()
|
void |
loadMarkers(java.lang.String filename)
Loads the WaveMarkers from the file into the chart. |
void |
measureFrom(int x,
int y)
|
void |
removeAllMarkers()
Removes all WaveMarkers from the chart. |
void |
removeMarker(WaveMarker marker)
Removes the marker passed as argument from the chart. |
void |
removeMarkerAt(int x,
int y)
Remove the WaveMarker at the specified coordinates. |
void |
run(java.lang.String arg)
This method is called when the plugin is loaded. |
void |
saveChart()
|
void |
saveMarkers(java.lang.String filename)
Saves the WaveMarkers to the file specified by the argument. |
void |
setAxisExtents(Axis axis,
double lowerBound,
double upperBound)
|
void |
setAxisRange(Axis axis,
double lowerBound,
double upperBound)
|
void |
setAxisRange(java.lang.String name,
Range range)
Sets the axis range for the wave or axis name. |
void |
setAxisTicks(java.lang.String axisName,
double majorTickSize,
int numMinTicks)
Sets the tick increment and number of ticks for the axis with the name passed as argument. |
void |
setAxisVisible(java.lang.String name,
boolean visible)
Sets if the axis is visible by the wave or axis name. |
void |
setDomainAxisExtents(XYPlot plot,
double lowerBound,
double upperBound)
|
void |
setDomainAxisRange(XYPlot plot,
double lowerBound,
double upperBound)
|
void |
setPaintScale(java.lang.String waveName,
java.awt.Color upperColor,
int series)
|
void |
setPaintScale(java.lang.String waveName,
PaintScale paintScale,
int series)
Sets the PaintScale for a Wave rendered using the XYBlockRenderer (e.g., 3D plots) |
void |
setPaintScale(XYPlot subplot,
java.awt.Color upperColor,
int series)
|
void |
setPaintScale(XYPlot subplot,
PaintScale paintScale,
int series)
|
void |
setRangeAxisExtents(XYPlot plot,
double lowerBound,
double upperBound)
|
void |
setRangeAxisRange(XYPlot plot,
double lowerBound,
double upperBound)
|
void |
setWaveColor(java.lang.String waveName,
java.awt.Color color)
|
void |
setWaveStyle(java.lang.String waveName,
java.lang.String style)
|
void |
setWaveStyle(java.lang.String waveName,
java.lang.String style,
java.lang.String additionalOptions)
Changes the renderer for the Wave to that of 'style'. |
protected void |
setXYPlotStyle(XYPlot plot,
java.lang.String style,
int seriesIndex,
java.lang.String additionalOptions)
|
void |
showDetails()
|
java.lang.String |
toString()
|
void |
waveChanged(Wave wave)
|
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ImageJ ij
protected javax.swing.JPanel statusbar
protected javax.swing.JLabel statusLine
protected javax.swing.JScrollBar scrollbar
protected ValueAxis domainAxis
protected double minX
protected double maxX
Constructor Detail |
---|
public ChartFramePlugIn(java.lang.String title, JFreeChart chart)
Method Detail |
---|
public ChartFramePlugIn clone()
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
public void componentResized(java.awt.event.ComponentEvent event)
componentResized
in interface java.awt.event.ComponentListener
public Wave getWave(java.lang.String name)
public Waves getWaves()
public void addWave(java.lang.String name)
public void addWave(Wave wave)
public void addWave(Wave wave, java.awt.Color color)
public void addWaves(Waves waves)
public java.lang.String[] getMarkerTypes()
public java.util.ArrayList getMarkers()
public java.util.ArrayList getMarkers(java.lang.String type)
public java.util.ArrayList getTriggerMarkers()
protected java.lang.StringBuffer getInfo(java.lang.StringBuffer sb, java.lang.String indention, XYPlot plot)
public java.lang.String getInfo()
public XYPlot addXYZPlot(Waves waves)
public void addWaves(WaveXYZDataset data, Waves waves, java.awt.Color color)
public void addWaves(WaveXYZDataset data, Waves waves, double lowRange, double highRange, java.awt.Color color)
public void addWaves(Waves waves, java.awt.Color color)
public void addWaves(Waves waves, double lowRange, double highRange, java.awt.Color color)
public void getDatasets(java.util.ArrayList list, XYPlot plot)
public java.util.ArrayList getDatasets()
public PaintScale getPaintScale(java.lang.String waveName, int series)
public void setPaintScale(java.lang.String waveName, java.awt.Color upperColor, int series)
public void setPaintScale(XYPlot subplot, java.awt.Color upperColor, int series)
public void setPaintScale(XYPlot subplot, PaintScale paintScale, int series)
public PaintScale getPaintScale(XYPlot subplot, int series)
public void setPaintScale(java.lang.String waveName, PaintScale paintScale, int series)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void removeAllMarkers()
public Axis getAxis(java.lang.String name)
protected void setXYPlotStyle(XYPlot plot, java.lang.String style, int seriesIndex, java.lang.String additionalOptions)
public void setWaveStyle(java.lang.String waveName, java.lang.String style)
public void setWaveStyle(java.lang.String waveName, java.lang.String style, java.lang.String additionalOptions)
protected int getSeriesIndex(java.lang.String waveName)
public void setWaveColor(java.lang.String waveName, java.awt.Color color)
public XYDataset getXYDatasetForWave(java.lang.String waveName)
public XYPlot getXYPlotForWave(java.lang.String waveName)
public void setAxisTicks(java.lang.String axisName, double majorTickSize, int numMinTicks)
public java.util.List getDomainAxes()
public java.util.List getRangeAxes()
public java.util.List getAxes()
public void setRangeAxisExtents(XYPlot plot, double lowerBound, double upperBound)
public void setDomainAxisExtents(XYPlot plot, double lowerBound, double upperBound)
public void setAxisExtents(Axis axis, double lowerBound, double upperBound)
public void setRangeAxisRange(XYPlot plot, double lowerBound, double upperBound)
public void setDomainAxisRange(XYPlot plot, double lowerBound, double upperBound)
public void setAxisRange(Axis axis, double lowerBound, double upperBound)
public Range getAxisExtents(java.lang.String name)
public Range getAxisRange(java.lang.String name)
public void setAxisRange(java.lang.String name, Range range)
public void setAxisVisible(java.lang.String name, boolean visible)
public void addComments(Comments comments)
public void addComment(Comment comment)
public void addAnnotation(XYAnnotation annotation)
public void addAnnotations(XYAnnotation[] annotations)
public XYAnnotation[] getAnnotations()
public void addAnnotationsFrom(ChartFramePlugIn sourceChart)
public void addMarkers(java.util.ArrayList markers)
public void addMarker(WaveMarker marker)
public void loadMarkers(java.lang.String filename)
public void measureFrom(int x, int y)
public void removeMarkerAt(int x, int y)
public void removeMarker(WaveMarker marker)
public void saveMarkers(java.lang.String filename)
public void axisChanged(AxisChangeEvent e)
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
public void chartMouseClicked(ChartMouseEvent e)
public void chartMouseMoved(ChartMouseEvent e)
public void run(java.lang.String arg)
PlugIn
run
in interface PlugIn
public JFreeChart getChart()
public XYPlot getXYPlot()
public void saveChart()
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void close()
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void waveChanged(Wave wave)
waveChanged
in interface WaveListener
public void hideDetails()
public void showDetails()
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |