Interface IAxisSystem
- All Known Subinterfaces:
IPlottingSystem<T>,IPlottingSystemViewer<T>
- All Known Implementing Classes:
AbstractHyperPlotViewer,AbstractPlottingSystem,ArpesSlicePlotViewer,DatasetTablePlotViewer,HyperPlotViewer,IPlottingSystemViewer.Stub,JRealityPlotViewer,LightWeightPlotViewer,PlottingSystemImpl,ThreadSafePlottingSystem
public interface IAxisSystem
No methods in this interface are thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoidA listener to be notified of mouse position.voidA listener to be notified of mouse position.voidCall to rescale the axes, for instance after changing data of a few axes you want the data to be scaled properly.createAxis(String title, boolean isYAxis, int side) Use this method to create axes other than the default y and x axes.getAxes()Get the list of all axesLook up the axis from the list of axes by the name used when createAxis(...) was called.The current x axis to plot to.The current y axis to plot to.removeAxis(IAxis axis) Use this method to delete any extra axes which have been created.voidA listener to stop being notified of mouse position.voidA listener to stop being notified of mouse position.voidCalled to reset the axesvoidsetSelectedXAxis(IAxis xAxis) Set the current plotting xAxis.voidsetSelectedYAxis(IAxis yAxis) Set the current plotting yAxis.
-
Method Details
-
resetAxes
void resetAxes()Called to reset the axes -
createAxis
Use this method to create axes other than the default y and x axes.- Parameters:
title-isYAxis- , normally it is.side- - either SWT.LEFT, SWT.RIGHT, SWT.TOP, SWT.BOTTOM- Returns:
-
removeAxis
Use this method to delete any extra axes which have been created. You may not delete the primary axes using this method, only those which you have created using createAxis(...)- Parameters:
title-- Returns:
-
getAxes
Get the list of all axes- Returns:
-
getAxis
Look up the axis from the list of axes by the name used when createAxis(...) was called.- Parameters:
name-- Returns:
-
getSelectedYAxis
IAxis getSelectedYAxis()The current y axis to plot to. Intended for 1D plotting with multiple axes.- Returns:
-
setSelectedYAxis
Set the current plotting yAxis. Intended for 1D plotting with multiple axes. May be called with null to reset to the primary axis.- Parameters:
yAxis-
-
getSelectedXAxis
IAxis getSelectedXAxis()The current x axis to plot to. Intended for 1D plotting with multiple axes.- Returns:
-
setSelectedXAxis
Set the current plotting xAxis. Intended for 1D plotting with multiple axes. May be called with null to reset to the primary axis.- Parameters:
xAxis-
-
autoscaleAxes
void autoscaleAxes()Call to rescale the axes, for instance after changing data of a few axes you want the data to be scaled properly. Not thread safe. -
addPositionListener
A listener to be notified of mouse position.- Parameters:
l-
-
removePositionListener
A listener to stop being notified of mouse position.- Parameters:
l-
-
addClickListener
A listener to be notified of mouse position.- Parameters:
l-
-
removeClickListener
A listener to stop being notified of mouse position.- Parameters:
l-
-