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
-
arrowLen
-
-
borderLen
-
-
extraLen
-
-
HISTOGRAM
-
-
LINE
-
-
longScaleSize
-
-
POINT
-
-
shortScaleSize
-
-
XYPlotPane()
-
-
XYPlotPane(XYPlot, double[][])
-
-
appendPlots()
-
-
appendPlots(double[][])
- Append draw point for the whole dataset
-
checkSize()
-
-
drawPlotPoints(Graphics)
-
-
getDataPointx(int)
- Get data point from the graphic device
-
getDataPointy(int)
- Get data point from the graphic device
-
getDevicePoint(double, double)
- Get point refer to the graphic device
-
getMinimumSize()
-
-
getPreferredSize()
-
-
getZoomFactor()
-
-
makeAnnotation(Graphics)
-
-
makeAxis(Graphics)
-
-
mouseClicked(MouseEvent)
- java.awt.event.MouseListener stuff
-
mouseEntered(MouseEvent)
- java.awt.event.MouseListener stuff
-
mouseExited(MouseEvent)
- java.awt.event.MouseListener stuff
-
mousePressed(MouseEvent)
- java.awt.event.MouseListener stuff
-
mouseReleased(MouseEvent)
- java.awt.event.MouseListener stuff
-
paint(Graphics)
- Paints the component.
-
setAnnotation(String[])
- Set annotation
-
setData(double[][])
- set new plot data
-
setFont(Font)
-
Sets the font of the component.
-
setPlotMode(int)
-
-
setXAxisRange(double, double)
-
-
setXAxisRange(double[])
-
-
setXAxisTag(String)
-
-
setYAxisRange(double, double)
-
-
setYAxisRange(double[])
-
-
setYAxisTag(String)
-
-
update(Graphics)
-
borderLen
public static final int borderLen
extraLen
public static final int extraLen
arrowLen
public static final int arrowLen
longScaleSize
public static final int longScaleSize
shortScaleSize
public static final int shortScaleSize
LINE
public static final int LINE
POINT
public static final int POINT
HISTOGRAM
public static final int HISTOGRAM
XYPlotPane
public XYPlotPane()
XYPlotPane
public XYPlotPane(XYPlot xyPlot,
double dat[][])
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Component
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Component
setFont
public synchronized void setFont(Font f)
- Sets the font of the component.
- Parameters:
- f - the font
- Overrides:
- setFont in class Component
setXAxisRange
public void setXAxisRange(double data[])
setXAxisRange
public void setXAxisRange(double xmin,
double xmax)
setYAxisRange
public void setYAxisRange(double data[])
setYAxisRange
public void setYAxisRange(double ymin,
double ymax)
setAnnotation
public void setAnnotation(String strs[])
- Set annotation
- Parameters:
- strs - the annotation for each xy-plot
setXAxisTag
public void setXAxisTag(String xTag)
setYAxisTag
public void setYAxisTag(String yTag)
setData
public void setData(double data[][])
- set new plot data
- Parameters:
- data - the plot data
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
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
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
appendPlots
public void appendPlots()
appendPlots
public void appendPlots(double data[][])
- Append draw point for the whole dataset
- Parameters:
- data - the whole ploted dataset
makeAnnotation
public void makeAnnotation(Graphics gc)
drawPlotPoints
public void drawPlotPoints(Graphics gc)
makeAxis
public void makeAxis(Graphics gc)
paint
public void paint(Graphics g)
- Paints the component.
- Parameters:
- g - the specified Graphics window
- Overrides:
- paint in class Canvas
- See Also:
- paint
update
public void update(Graphics g)
- Overrides:
- update in class Component
getZoomFactor
public int getZoomFactor()
setPlotMode
public void setPlotMode(int mode)
checkSize
public synchronized void checkSize()
mouseClicked
public void mouseClicked(MouseEvent e)
- java.awt.event.MouseListener stuff
mousePressed
public void mousePressed(MouseEvent evt)
- java.awt.event.MouseListener stuff
mouseReleased
public void mouseReleased(MouseEvent evt)
- java.awt.event.MouseListener stuff
mouseEntered
public void mouseEntered(MouseEvent evt)
- java.awt.event.MouseListener stuff
mouseExited
public void mouseExited(MouseEvent evt)
- java.awt.event.MouseListener stuff
All Packages Class Hierarchy This Package Previous Next Index