Package d3.plots
Class D3PlotInfo
java.lang.Object
dataPlots.data.TDDataInfo
d3.plots.D3PlotInfo
-
Field Summary
Fields inherited from class dataPlots.data.TDDataInfo
UNITS_ANGLE, UNITS_TEMPERATURE
-
Constructor Summary
ConstructorDescriptionD3PlotInfo
(D3Control d3Control, D3DataPlotProvider tdDataProvider, TDGraph tdGraph, D3DataBlock d3DataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear any residual drawing objects that get held between calls, e.g.drawDataUnit
(PamDataUnit pamDataUnit, Graphics g, Rectangle windowRect, int orientation, PamAxis timeAxis, long scrollStart, PamAxis yAxis, int type) Draw a data unit.getDataValue
(PamDataUnit pamDataUnit) Gets a value for a specific data unit which should be in the same units as the scale information.void
notifyModelChanged
(int changeType) Get notifications from the main controller.Methods inherited from class dataPlots.data.TDDataInfo
addDataUnits, drawData, drawHighLightData, editOptions, getCurrentDataLine, getCurrentDataLineIndex, getDataBlock, getDataDimensions, getDataLineInfos, getDataName, getDataProvider, getFixedScaleInformation, getHidingDialogComponent, getScaleInformation, getShortName, getStoredSettings, getTdGraph, getToolTipText, hasAxisName, hasOptions, isShowing, removeData, selectDataLine, setCurrentAxisName, setFixedScaleInformation, setShowing, setStoredSettings, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
D3PlotInfo
public D3PlotInfo(D3Control d3Control, D3DataPlotProvider tdDataProvider, TDGraph tdGraph, D3DataBlock d3DataBlock)
-
-
Method Details
-
getDataValue
Description copied from class:TDDataInfo
Gets a value for a specific data unit which should be in the same units as the scale information. This will then be converted into a plot position by the TDGraph.- Specified by:
getDataValue
in classTDDataInfo
- Returns:
- data value or null if this data poit should not be plotted.
-
drawDataUnit
public Polygon drawDataUnit(PamDataUnit pamDataUnit, Graphics g, Rectangle windowRect, int orientation, PamAxis timeAxis, long scrollStart, PamAxis yAxis, int type) Description copied from class:TDDataInfo
Draw a data unit.- Overrides:
drawDataUnit
in classTDDataInfo
- Parameters:
pamDataUnit
- data unit to drawg
- graphics handle to draw onorientation
- orientation of the displaytimeAxis
- start time of the displayyAxis
- yAxis (used for scale information for the data point)type
- flag for which type of symbol to draw. e.g normal or highlighted.- Returns:
- polygon of area drawn on.
-
getSymbolChooser
- Specified by:
getSymbolChooser
in classTDDataInfo
- Returns:
- a class containing functions to chose a symbol to plot.
-
notifyModelChanged
public void notifyModelChanged(int changeType) Description copied from class:TDDataInfo
Get notifications from the main controller.- Overrides:
notifyModelChanged
in classTDDataInfo
-
clearDraw
public void clearDraw()Description copied from class:TDDataInfo
Clear any residual drawing objects that get held between calls, e.g. the point of the previous unit plotted which may have been held so that lines can be drawn between points.- Overrides:
clearDraw
in classTDDataInfo
-