public class TDControl extends java.lang.Object implements UserDisplayComponent, PamSettings
Constructor and Description |
---|
TDControl() |
TDControl(TDParameters tdParameters) |
TDControl(TDParameters tdParameters,
boolean registerSettings) |
TDControl(TDParameters tdParameters,
boolean registerSettings,
boolean showControlPanel)
Create a new time display.
|
Modifier and Type | Method and Description |
---|---|
void |
addGraph() |
void |
closeComponent()
Called when the component is removed from the display.
|
PamScroller |
createScroller() |
java.awt.Component |
getComponent() |
PamObserver |
getDataObserver() |
java.util.ArrayList<TDGraph> |
getGraphs() |
int |
getGraphTimePixels()
Get the number of pixels in a time graph.
|
javax.swing.JCheckBox |
getPauseButton()
Get the pause button.
|
int |
getRunMode() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
TDAxes |
getTdAxes() |
TDParameters |
getTdParameters() |
RangeSpinner |
getTimeRangeSpinner() |
PamScroller |
getTimeScroller() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
isShowControlPanel()
Check whether the time display has a control panel.
|
boolean |
isViewer() |
void |
layoutGraphs() |
void |
notifyModelChanged(int changeType)
Pick up model changed notifications from a parent user display.
|
void |
openComponent()
Called when the component is first displayed.
|
void |
removeGraph(int iGraph)
Remove graph with given index.
|
void |
repaintAll() |
void |
repaintAll(long millis) |
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setShowControlPanel(boolean showControlPanel)
Set whether the graphs has a control panel, allowing panels etc to be added.
|
void |
setShowGraphLabels(boolean show)
Set whether graphs within the display show their label.
|
void |
subscribeScrollDataBlocks()
Subscribe datablocks to the time scroller.
|
public TDControl(TDParameters tdParameters)
public TDControl(TDParameters tdParameters, boolean registerSettings)
public TDControl(TDParameters tdParameters, boolean registerSettings, boolean showControlPanel)
tdParameters
- - time display paramaters.registerSettings
- - register settings or not.showControlPanel-
- show a control panel on the graph allowing users to add/remnove panels.public TDControl()
public void subscribeScrollDataBlocks()
public void layoutGraphs()
public PamScroller createScroller()
public java.awt.Component getComponent()
getComponent
in interface UserDisplayComponent
public void openComponent()
UserDisplayComponent
openComponent
in interface UserDisplayComponent
public void closeComponent()
UserDisplayComponent
closeComponent
in interface UserDisplayComponent
public void notifyModelChanged(int changeType)
UserDisplayComponent
notifyModelChanged
in interface UserDisplayComponent
public TDParameters getTdParameters()
public TDAxes getTdAxes()
public int getRunMode()
public PamScroller getTimeScroller()
public java.util.ArrayList<TDGraph> getGraphs()
public void repaintAll()
public void repaintAll(long millis)
public RangeSpinner getTimeRangeSpinner()
public void addGraph()
public void removeGraph(int iGraph)
iGraph
- graph index.public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public boolean isViewer()
public PamObserver getDataObserver()
public int getGraphTimePixels()
public boolean isShowControlPanel()
public void setShowControlPanel(boolean showControlPanel)
showControlPanel
- - true to show a control panel.public void setShowGraphLabels(boolean show)
show
- - true if graphs show a label describing graph on top right.public javax.swing.JCheckBox getPauseButton()