jhplot
Class HPlotRT
- java.lang.Object
-
- jhplot.HPlotRT
-
public class HPlotRT extends java.lang.ObjectPlot canvas for real-time charts. The "RT" in the name means "real-time". It is designed for displaying multiple traces consisting of trace points. Traces can be changed at real-time. Only one canvas area is possible.
-
-
Constructor Summary
Constructors Constructor and Description HPlotRT()Construct a real-time canvas with a plot with the default parameters 600 by 400, and 10% space for the global title "Default"HPlotRT(java.lang.String title)Construct a real-tyme plot with the default parameters 600 by 400, and 10% space for the global titleHPlotRT(java.lang.String title, int xsize, int ysize)Create the real-tyme dynamic canvas.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(ITrace2D trace)Add dynamic trace with data for showing in the canvas.voidclose()voiddoc()Show online documentation.IAxis<?>getAxisX()Return X-axisIAxis<?>getAxisY()Return Y-axisChart2DgetChart()Returns the current chart.voidquit()Quit the canvas (and dispose all components) Note: a memory leak is found - no time to study it.
-
-
-
Constructor Detail
-
HPlotRT
public HPlotRT(java.lang.String title, int xsize, int ysize)Create the real-tyme dynamic canvas.- Parameters:
title- Titlexsize- size in x directionysize- size in y direction
-
HPlotRT
public HPlotRT(java.lang.String title)
Construct a real-tyme plot with the default parameters 600 by 400, and 10% space for the global title- Parameters:
title- Title
-
HPlotRT
public HPlotRT()
Construct a real-time canvas with a plot with the default parameters 600 by 400, and 10% space for the global title "Default"
-
-
Method Detail
-
getAxisX
public IAxis<?> getAxisX()
Return X-axis- Returns:
- X-axis
-
getAxisY
public IAxis<?> getAxisY()
Return Y-axis- Returns:
- Y-axis
-
add
public void add(ITrace2D trace)
Add dynamic trace with data for showing in the canvas.- Parameters:
trace- data to be added
-
getChart
public Chart2D getChart()
Returns the current chart.- Returns:
- returns the current chart.
-
doc
public void doc()
Show online documentation.
-
close
public void close()
-
quit
public void quit()
Quit the canvas (and dispose all components) Note: a memory leak is found - no time to study it. set to null all the stuff
-
-
DMelt 3.0 © DataMelt by jWork.ORG