|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsimtools.shapes.AbstractShape
simtools.shapes.PlotShape
jsynoptic.builtin.Plot
jsynoptic.builtin.TimePlot
jsynoptic.plugins.async.TimePlot
public class TimePlot
A plot dedicated to time stamped data source The X axis (primary and secondary) display the time source values of TimeStampedDataSource. Assuming the time values are based on the same time zone, the data sources do not need to belong to the same collection (they are all asynchronous).
TimeStampedDataSource,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jsynoptic.builtin.Plot |
|---|
Plot.AxeRange, Plot.PlotCompoundEdit, Plot.PlotPropertiesNames |
| Nested classes/interfaces inherited from class simtools.shapes.PlotShape |
|---|
PlotShape.Curve, PlotShape.Limit |
| Nested classes/interfaces inherited from class simtools.shapes.AbstractShape |
|---|
AbstractShape.AbstractShapePropertiesNames |
| Field Summary | |
|---|---|
static MenuResourceBundle |
addedResources
|
protected boolean |
displaySecondaryAxis
boolean to enabled the diplay of the secondary axis |
protected double |
time2Offset
diferences between time and time2 |
| Fields inherited from class jsynoptic.builtin.TimePlot |
|---|
_dateTime, _dateTimeFont, _sdateTime, datePart1, datePart2 |
| Fields inherited from class jsynoptic.builtin.Plot |
|---|
autopx, autopy, autosx, autosy, AXE_NUMBER, axesLimitsArray, AXIS_ID, DEFAULT_DISPLAY_DATA_SOURCE_ID, defaultPalette, isNotifying, isPrimaryBounded, isSecondaryBounded, link, nbXGraduation, nbYGraduation, paletteIndex, preferredXGraduation, preferredYGraduation, primaryCurves, primaryEndIndex, primaryStartIndex, primaryX, PX, pxlabel, pxmax, pxmin, pxstep, pxvaluesOK, PY, pylabel, pymax, pymin, pystep, pyvaluesOK, resources, secondaryCurves, secondaryEndIndex, secondaryStartIndex, secondaryX, SX, sxlabel, sxmax, sxmin, sxstep, sxvaluesOK, SY, sylabel, symax, symin, systep, syvaluesOK, translateDrawing, zoomDrawing |
| Fields inherited from class simtools.shapes.PlotShape |
|---|
_asx1, _asx2, _asy1, _asy2, _color, _curves, _font, _limits, _magnetizedCurve, curveInformationFont, curveInformationLabel, dirty, displayCurveInformation, hasLegend, image, imageGraphics, legendBounds, logpx, logpy, logsx, logsy, optimize, optimizeMode, pyformat, syformat, title, titleFont |
| Fields inherited from class simtools.shapes.AbstractShape |
|---|
_h, _ox, _oy, _propertyNames, _w, _x, _y, ANTI_ALIASING, currentDialogBox, FONT_NAMES, listeners, REFRESH_PERIOD |
| Fields inherited from interface jsynoptic.base.ContextualActionProvider |
|---|
EDITOR_CONTEXT, MOUSE_OUT_CONTEXT, MOUSE_OVER_CONTEXT, MOUSE_PRESSED_CONTEXT, SHAPELIST_CONTEXT, SOURCELIST_CONTEXT |
| Constructor Summary | |
|---|---|
TimePlot(int ox,
int oy,
int width,
int height)
|
|
| Method Summary | |
|---|---|
protected boolean |
add(TimeStampedDataSource ds,
boolean primary,
boolean background)
|
boolean |
addDataSource(DataSource d)
|
boolean |
canAddDataSource(DataSource d)
|
boolean |
canDoAction(double x,
double y,
java.lang.Object o,
java.lang.String action,
int context)
Returns true if, and only if, it is possible to do the action right now |
JPropertiesPanel |
createPanel()
|
boolean |
doAction(double x,
double y,
java.lang.Object o,
java.lang.String action,
javax.swing.undo.CompoundEdit undoableEdit)
Do one of the actions previously declared by getAction. |
protected CurveShape |
doAddYAction(java.lang.Object[] obar)
|
java.lang.String[] |
getActions(double x,
double y,
java.lang.Object o,
int context)
Return list of possible actions the contect information may be used, or not. |
java.util.LinkedHashMap |
getCollectiveActions(DiagramSelection sel,
double x,
double y,
java.lang.Object o,
int context)
Return list of possible collective actions |
java.lang.String[] |
getPropertyNames()
Get the list of property names |
java.lang.Object |
getPropertyValue(java.lang.String name)
Get the value of the property named name |
protected double |
getStartEndTime(java.util.Vector curves,
boolean start,
boolean secondaryXaxis)
Get start or end time related to a list of curves |
void |
notificationEnd(java.lang.Object referer)
This callback is called after all notifications were processed. |
void |
repaintDiagram(java.awt.Rectangle oldBounds)
|
protected void |
secondaryAxisBoundComputation(java.awt.Rectangle ret)
Take into account additional elements in bounds computation for the secondary x axis |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
Assigns value to the property named name |
| Methods inherited from class jsynoptic.builtin.TimePlot |
|---|
computeFormat, displayCursorLocation, drawLegendAndGetBounds, set, setDateTime, setDateTimeFont, setTimeFormat |
| Methods inherited from class simtools.shapes.AbstractShape |
|---|
addListener, contains, contains, contains, contains, getAnchor, getBounds, getBounds2D, getInnerProperties, getMax, getMaxTranslated, getMin, getPathIterator, getPathIterator, intersects, intersects, notifyChange, removeListener, setProperties, wipeOff |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static MenuResourceBundle addedResources
protected double time2Offset
protected boolean displaySecondaryAxis
| Constructor Detail |
|---|
public TimePlot(int ox,
int oy,
int width,
int height)
ox - oy - width - height - | Method Detail |
|---|
protected CurveShape doAddYAction(java.lang.Object[] obar)
doAddYAction in class Plot
protected boolean add(TimeStampedDataSource ds,
boolean primary,
boolean background)
public void repaintDiagram(java.awt.Rectangle oldBounds)
repaintDiagram in class Plotpublic void notificationEnd(java.lang.Object referer)
EndNotificationListener
notificationEnd in interface EndNotificationListenernotificationEnd in class Plot
public java.util.LinkedHashMap getCollectiveActions(DiagramSelection sel,
double x,
double y,
java.lang.Object o,
int context)
SelectionContextualActionProvider
getCollectiveActions in interface SelectionContextualActionProvidergetCollectiveActions in class Plotsel - the current selectionx - Coordinate, mouse position in the same unit as contains(x,y)y - Coordinate, mouse position in the same unit as contains(x,y)o - Object the collective actions should work on. Possibly null => default or all actionscontext - one of the context defined in the ContextualActionProvider class
public java.lang.String[] getActions(double x,
double y,
java.lang.Object o,
int context)
ContextualActionProvider
getActions in interface ContextualActionProvidergetActions in class Plotx - Coordinate, mouse position in the same unit as contains(x,y)y - Coordinate, mouse position in the same unit as contains(x,y)o - Object the actions should work on. Possibly null => default or all actionscontext - one of the context defined in the ContextualActionProvider class
public boolean canDoAction(double x,
double y,
java.lang.Object o,
java.lang.String action,
int context)
ContextualActionProvider
canDoAction in interface ContextualActionProvidercanDoAction in class Plotx - Coordinate, for example mouse positiony - Coordinate, for example mouse positiono - Object the action should work on.action - An action returned by a previous getActions call with the same x, y, o parameters
It may be null, in which case the default action is requested for this x,y,o.context - one of the context defined in the ContextualActionProvider class
public boolean doAction(double x,
double y,
java.lang.Object o,
java.lang.String action,
javax.swing.undo.CompoundEdit undoableEdit)
ContextualActionProvider
doAction in interface ContextualActionProviderdoAction in class TimePlotx - Coordinate, for example mouse positiony - Coordinate, for example mouse positiono - Object the action should work on.action - An action returned by a previous getActions call with the same x, y, o parameters
It may be null, in which case the default action is requested for this x,y,o.undoableEdit - current edit for undo/redo operation
If not null, this action is undoable.
protected void secondaryAxisBoundComputation(java.awt.Rectangle ret)
TimePlot
secondaryAxisBoundComputation in class TimePlotret - the rectangle with bounds to updatepublic JPropertiesPanel createPanel()
createPanel in class TimePlotpublic boolean canAddDataSource(DataSource d)
canAddDataSource in interface DataSourceConsumercanAddDataSource in class Plotd - the data source to be added
public boolean addDataSource(DataSource d)
addDataSource in interface DataSourceConsumeraddDataSource in class Plotd - the data source to be added
protected double getStartEndTime(java.util.Vector curves,
boolean start,
boolean secondaryXaxis)
curves - start - - if true get start time, otherwise get end timesecondaryXaxis - - if true look on all curves whose X is defined on X secondaryXaxis
otherwise look on all curves whose X is defined on X primary
public java.lang.String[] getPropertyNames()
NamedProperties
getPropertyNames in interface NamedPropertiesgetPropertyNames in class Plotpublic java.lang.Object getPropertyValue(java.lang.String name)
AbstractShapename
getPropertyValue in interface NamedPropertiesgetPropertyValue in class Plotname - the name of the property to get
AbstractShape.getPropertyValue(String)
public void setPropertyValue(java.lang.String name,
java.lang.Object value)
AbstractShapevalue to the property named name
setPropertyValue in interface NamedPropertiessetPropertyValue in class Plotname - the name of the property to getvalue - its new valueAbstractShape.setPropertyValue(String, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||