|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.colos.ejs.library.control.ControlElement org.colos.ejs.library.control.swing.ControlSwingElement org.colos.ejs.library.control.swing.ControlDrawablesParent org.colos.ejs.library.control.swing.ControlPlottingPanel
public class ControlPlottingPanel
A configurable plottingPanel.
Field Summary |
---|
Fields inherited from class org.colos.ejs.library.control.swing.ControlSwingElement |
---|
ACTION_IMMEDIATE, ACTION_OFF, ACTION_ON, ACTION_PRESS, AXIS_DRAGGED_ACTION, BACKGROUND, ENABLED, FONT, FOREGROUND, KEY_ACTION, MENU_NAME, MOUSE_ENTERED_ACTION, MOUSE_EXITED_ACTION, MOUSE_MOVED_ACTION, PARENT, POSITION, PRINT_TARGET, SIZE, SWING_ELEMENT_NAME, TOOLTIP, VISIBLE |
Fields inherited from class org.colos.ejs.library.control.ControlElement |
---|
ACTION, ACTION_ERROR, ACTION_SUCCESS, METHOD_FOR_VARIABLE, METHOD_TRIGGER, NAME, VARIABLE_CHANGED |
Constructor Summary | |
---|---|
ControlPlottingPanel()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
java.lang.String |
getDefaultValueString(int _index)
|
java.lang.String |
getPropertyCommonName(java.lang.String _property)
This is used by Ejs to obtain an alias for the property name in order to search for this alias in a common file of easily translatable entries used in the tables of properties for an element. |
java.lang.String |
getPropertyInfo(java.lang.String _property)
Returns information about a given property. |
java.util.List<java.lang.String> |
getPropertyList()
Returns the list of all properties that can be set for this ControlElement. |
ControlDrawable |
getSelectedDrawable()
|
Value |
getValue(int _index)
Gets the value of any internal variable. |
void |
handleMouseAction(InteractivePanel _panel,
java.awt.event.MouseEvent _evt)
|
void |
mouseDragged(double _x,
double _y)
|
void |
mousePressed(double _x,
double _y)
|
void |
mouseReleased(double _x,
double _y)
|
Value |
parseConstant(java.lang.String _propertyType,
java.lang.String _value)
Checks if a value can be considered a valid constant value for a property If not, it returns null, meaning the value can be considered to be a GroupVariable or a primitive constant. |
void |
setDefaultValue(int _index)
|
ControlElement |
setProperty(java.lang.String _property,
java.lang.String _value)
Sets a property for this ControlElement . |
void |
setValue(int _index,
Value _value)
Sets the value of the registered variables. |
Methods inherited from class org.colos.ejs.library.control.swing.ControlDrawablesParent |
---|
acceptsChild, addDrawable, addDrawableAtIndex, addMenuEntries, addToPreupdateList, finalUpdate, getComponent, getDrawingPanel, removeDrawable, removeFromPreupdateList, reset, update |
Methods inherited from class org.colos.ejs.library.control.swing.ControlSwingElement |
---|
changeVisual, getControlWindow, getMenuNameEntry, getTopWindow, getVisual, setControlWindow, toStringValue |
Methods inherited from class org.colos.ejs.library.control.ControlElement |
---|
addAction, addAction, addAction, destroy, editorIsReading, flush, getGroup, getObject, getObject, getObjectClassname, getProperty, getSimulation, getValue, implementsProperty, indexOf, initialize, invokeActions, invokeActions, isActive, onExit, propertyIndex, propertyIsTypeOf, propertyType, removeAction, removeAction, replaceVisual, setActive, setFieldListValue, setFieldListValues, setGroup, setProperties, setProperty, setPropertyEditor, setVariableEditor, toString, variableChanged, variableChangedDoNotUpdate, variableExtraChanged, variablePropertiesClear, variablesChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ControlPlottingPanel()
Method Detail |
---|
public java.util.List<java.lang.String> getPropertyList()
ControlSwingElement
getPropertyList
in class ControlSwingElement
public java.lang.String getPropertyCommonName(java.lang.String _property)
ControlElement
getPropertyCommonName
in class ControlDrawablesParent
_property
- String
public java.lang.String getPropertyInfo(java.lang.String _property)
ControlSwingElement
getPropertyInfo
in class ControlSwingElement
public Value parseConstant(java.lang.String _propertyType, java.lang.String _value)
ControlSwingElement
parseConstant
in class ControlSwingElement
public ControlElement setProperty(java.lang.String _property, java.lang.String _value)
ControlElement
ControlElement
. Implementing
classes are responsible of deciding (by declaring them in the
getPropertyList() method) what properties turn into visual
changes, or different behaviour, of the ControlElement.
However, every propery is accepted, even if it is not meaningful for a particular implementation of this interface. This can serve as a repository of information for future use.
Implementing classes should make sure that the following
requirements are met:
setProperty
in class ControlElement
setProperty
EjsControl
public void setValue(int _index, Value _value)
ControlSwingElement
setValue
in class ControlSwingElement
public void setDefaultValue(int _index)
setDefaultValue
in class ControlSwingElement
public java.lang.String getDefaultValueString(int _index)
getDefaultValueString
in class ControlSwingElement
public Value getValue(int _index)
ControlSwingElement
getValue
in class ControlSwingElement
public ControlDrawable getSelectedDrawable()
getSelectedDrawable
in class ControlDrawablesParent
public void handleMouseAction(InteractivePanel _panel, java.awt.event.MouseEvent _evt)
handleMouseAction
in interface InteractiveMouseHandler
public void mousePressed(double _x, double _y)
public void mouseDragged(double _x, double _y)
public void mouseReleased(double _x, double _y)
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |