|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsimtools.shapes.AbstractShape
jsynoptic.builtin.TextArrayShape
jsynoptic.builtin.HistoryShape
public class HistoryShape
History shapes keep the previous values of a data source and display them in a text array
| Nested Class Summary | |
|---|---|
static class |
HistoryShape.HistoryShapePropertiesNames
Deprecated. |
static class |
HistoryShape.HookedTextShape
Deprecated. Override methods called when data source change. => the first cell listens to data source Changes are propagated. |
| Nested classes/interfaces inherited from class jsynoptic.builtin.TextArrayShape |
|---|
TextArrayShape.TextArrayShapePropertiesNames |
| Nested classes/interfaces inherited from class simtools.shapes.AbstractShape |
|---|
AbstractShape.AbstractShapePropertiesNames |
| Field Summary | |
|---|---|
static java.util.ResourceBundle |
resources
Deprecated. |
| Fields inherited from class jsynoptic.builtin.TextArrayShape |
|---|
cells, forceSameFont, link |
| 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 | |
|---|---|
HistoryShape(int histSize,
int width,
int cellHeight)
Deprecated. Build an History shape with the given history size (number of time values to retain). |
|
| Method Summary | |
|---|---|
boolean |
addDataSource(DataSource d)
Deprecated. |
boolean |
canDoAction(double x,
double y,
java.lang.Object o,
java.lang.String action,
int context)
Deprecated. Returns true if, and only if, it is possible to do the action right now |
protected AbstractShape |
cloneShape()
Deprecated. Performs a copy of the shape This method has to be overriden to deal with concrete shapes |
protected HistoryShape.HookedTextShape |
createHookedTextShape(java.lang.String text,
int width,
int height)
Deprecated. By overwriting this method, it is possible to create different kind of history cells |
JPropertiesPanel |
createPanel()
Deprecated. |
boolean |
doAction(double x,
double y,
java.lang.Object o,
java.lang.String action,
javax.swing.undo.CompoundEdit undoableEdit)
Deprecated. Do one of the actions previously declared by getAction. |
java.lang.String[] |
getActions(double x,
double y,
java.lang.Object o,
int context)
Deprecated. Return list of possible actions the contect information may be used, or not. |
java.lang.String[] |
getPropertyNames()
Deprecated. Get the list of property names |
java.lang.Object |
getPropertyValue(java.lang.String name)
Deprecated. Get the value of the property named name |
protected void |
initWithLastDataSourceValues()
Deprecated. |
void |
notificationEnd(java.lang.Object referer)
Deprecated. This callback is called after all notifications were processed. |
void |
setCells(java.util.Vector cellsProperties)
Deprecated. |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
Deprecated. Assigns value to the property named name |
| Methods inherited from class jsynoptic.builtin.TextArrayShape |
|---|
canAddDataSource, createTextShape, draw, getCells, getLink, positionCells, resize, setAnchor, setLink, translate, unifyFonts |
| Methods inherited from class simtools.shapes.AbstractShape |
|---|
addListener, contains, contains, contains, contains, getAnchor, getBounds, getBounds2D, getInnerProperties, getMax, getMaxTranslated, getMin, getPathIterator, getPathIterator, intersects, intersects, notifyChange, notifyChange, refresh, removeListener, setAnchor, setProperties, wipeOff |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.ResourceBundle resources
| Constructor Detail |
|---|
public HistoryShape(int histSize,
int width,
int cellHeight)
histSize - The number of time values to retainwidth - The array width @ param height The height of one cell in the array| Method Detail |
|---|
protected HistoryShape.HookedTextShape createHookedTextShape(java.lang.String text,
int width,
int height)
name - width - height -
public java.lang.String[] getActions(double x,
double y,
java.lang.Object o,
int context)
ContextualActionProvider
getActions in interface ContextualActionProvidergetActions in class TextArrayShapex - 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 JPropertiesPanel createPanel()
createPanel in class TextArrayShape
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 TextArrayShapex - 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.
public boolean canDoAction(double x,
double y,
java.lang.Object o,
java.lang.String action,
int context)
ContextualActionProvider
canDoAction in interface ContextualActionProvidercanDoAction in class TextArrayShapex - 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
protected void initWithLastDataSourceValues()
public void setCells(java.util.Vector cellsProperties)
setCells in class TextArrayShapepublic void notificationEnd(java.lang.Object referer)
EndNotificationListener
notificationEnd in interface EndNotificationListenernotificationEnd in class TextArrayShapeprotected AbstractShape cloneShape()
AbstractShape
cloneShape in class TextArrayShapepublic boolean addDataSource(DataSource d)
addDataSource in interface DataSourceConsumeraddDataSource in class TextArrayShaped - the data source to be added
public void setPropertyValue(java.lang.String name,
java.lang.Object value)
AbstractShapevalue to the property named name
setPropertyValue in interface NamedPropertiessetPropertyValue in class TextArrayShapename - the name of the property to getvalue - its new valueAbstractShape.setPropertyValue(String, Object)public java.lang.String[] getPropertyNames()
NamedProperties
getPropertyNames in interface NamedPropertiesgetPropertyNames in class TextArrayShapepublic java.lang.Object getPropertyValue(java.lang.String name)
AbstractShapename
getPropertyValue in interface NamedPropertiesgetPropertyValue in class TextArrayShapename - the name of the property to get
AbstractShape.getPropertyValue(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||