All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.hdf.awt.plots.XYPlotPane

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ncsa.hdf.awt.plots.XYPlotPane

public class XYPlotPane
extends Canvas
implements MouseListener

Variable Index

 o arrowLen
 o borderLen
 o extraLen
 o HISTOGRAM
 o LINE
 o longScaleSize
 o POINT
 o shortScaleSize

Constructor Index

 o XYPlotPane()
 o XYPlotPane(XYPlot, double[][])

Method Index

 o appendPlots()
 o appendPlots(double[][])
Append draw point for the whole dataset
 o checkSize()
 o drawPlotPoints(Graphics)
 o getDataPointx(int)
Get data point from the graphic device
 o getDataPointy(int)
Get data point from the graphic device
 o getDevicePoint(double, double)
Get point refer to the graphic device
 o getMinimumSize()
 o getPreferredSize()
 o getZoomFactor()
 o makeAnnotation(Graphics)
 o makeAxis(Graphics)
 o mouseClicked(MouseEvent)
java.awt.event.MouseListener stuff
 o mouseEntered(MouseEvent)
java.awt.event.MouseListener stuff
 o mouseExited(MouseEvent)
java.awt.event.MouseListener stuff
 o mousePressed(MouseEvent)
java.awt.event.MouseListener stuff
 o mouseReleased(MouseEvent)
java.awt.event.MouseListener stuff
 o paint(Graphics)
Paints the component.
 o setAnnotation(String[])
Set annotation
 o setData(double[][])
set new plot data
 o setFont(Font)
Sets the font of the component.
 o setPlotMode(int)
 o setXAxisRange(double, double)
 o setXAxisRange(double[])
 o setXAxisTag(String)
 o setYAxisRange(double, double)
 o setYAxisRange(double[])
 o setYAxisTag(String)
 o update(Graphics)

Variables

 o borderLen
 public static final int borderLen
 o extraLen
 public static final int extraLen
 o arrowLen
 public static final int arrowLen
 o longScaleSize
 public static final int longScaleSize
 o shortScaleSize
 public static final int shortScaleSize
 o LINE
 public static final int LINE
 o POINT
 public static final int POINT
 o HISTOGRAM
 public static final int HISTOGRAM

Constructors

 o XYPlotPane
 public XYPlotPane()
 o XYPlotPane
 public XYPlotPane(XYPlot xyPlot,
                   double dat[][])

Methods

 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Component
 o setFont
 public synchronized void setFont(Font f)
Sets the font of the component.

Parameters:
f - the font
Overrides:
setFont in class Component
 o setXAxisRange
 public void setXAxisRange(double data[])
 o setXAxisRange
 public void setXAxisRange(double xmin,
                           double xmax)
 o setYAxisRange
 public void setYAxisRange(double data[])
 o setYAxisRange
 public void setYAxisRange(double ymin,
                           double ymax)
 o setAnnotation
 public void setAnnotation(String strs[])
Set annotation

Parameters:
strs - the annotation for each xy-plot
 o setXAxisTag
 public void setXAxisTag(String xTag)
 o setYAxisTag
 public void setYAxisTag(String yTag)
 o setData
 public void setData(double data[][])
set new plot data

Parameters:
data - the plot data
 o getDevicePoint
 public Point getDevicePoint(double xVal,
                             double yVal)
Get point refer to the graphic device

Parameters:
xVal - the x value(physical)
yVal - the y value(physical)
Returns:
the point refer to the current graphic device
 o getDataPointx
 public double getDataPointx(int x)
Get data point from the graphic device

Parameters:
x - the x value(device)
Returns:
the double value from the current graphic device
 o getDataPointy
 public double getDataPointy(int y)
Get data point from the graphic device

Parameters:
y - the y value(device)
Returns:
the double value from the current graphic device
 o appendPlots
 public void appendPlots()
 o appendPlots
 public void appendPlots(double data[][])
Append draw point for the whole dataset

Parameters:
data - the whole ploted dataset
 o makeAnnotation
 public void makeAnnotation(Graphics gc)
 o drawPlotPoints
 public void drawPlotPoints(Graphics gc)
 o makeAxis
 public void makeAxis(Graphics gc)
 o paint
 public void paint(Graphics g)
Paints the component.

Parameters:
g - the specified Graphics window
Overrides:
paint in class Canvas
See Also:
paint
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o getZoomFactor
 public int getZoomFactor()
 o setPlotMode
 public void setPlotMode(int mode)
 o checkSize
 public synchronized void checkSize()
 o mouseClicked
 public void mouseClicked(MouseEvent e)
java.awt.event.MouseListener stuff

 o mousePressed
 public void mousePressed(MouseEvent evt)
java.awt.event.MouseListener stuff

 o mouseReleased
 public void mouseReleased(MouseEvent evt)
java.awt.event.MouseListener stuff

 o mouseEntered
 public void mouseEntered(MouseEvent evt)
java.awt.event.MouseListener stuff

 o mouseExited
 public void mouseExited(MouseEvent evt)
java.awt.event.MouseListener stuff


All Packages  Class Hierarchy  This Package  Previous  Next  Index