Class LEDEditPart
java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.csstudio.opibuilder.editparts.AbstractBaseEditPart
org.csstudio.opibuilder.editparts.AbstractPVWidgetEditPart
org.csstudio.opibuilder.widgets.editparts.AbstractBoolEditPart
org.csstudio.opibuilder.widgets.editparts.LEDEditPart
- All Implemented Interfaces:
IPVWidgetEditpart,IAdaptable,org.eclipse.gef.EditPart,org.eclipse.gef.GraphicalEditPart,org.eclipse.gef.NodeEditPart,org.eclipse.gef.RequestConstants
LED EditPart
-
Nested Class Summary
Nested classes/interfaces inherited from class org.csstudio.opibuilder.editparts.AbstractBaseEditPart
AbstractBaseEditPart.BaseEditPartActionFilterNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart.AccessibleGraphicalEditPart, org.eclipse.gef.editparts.AbstractGraphicalEditPart.DefaultAccessibleAnchorProviderNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractEditPart.EditPolicyIteratorNested classes/interfaces inherited from interface org.csstudio.opibuilder.editparts.IPVWidgetEditpart
IPVWidgetEditpart.ISetPVValueListener -
Field Summary
Fields inherited from class org.csstudio.opibuilder.editparts.AbstractPVWidgetEditPart
delegateFields inherited from class org.csstudio.opibuilder.editparts.AbstractBaseEditPart
anchorMap, propertyListenerMapFields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
figure, sourceConnections, targetConnectionsFields inherited from class org.eclipse.gef.editparts.AbstractEditPart
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAGFields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARYFields inherited from interface org.eclipse.gef.RequestConstants
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.draw2d.IFigureCreate and initialize the widget figure with the property values in model.protected voidinitializeCommonFigureProperties(AbstractBoolFigure abstractFigure, AbstractBoolWidgetModel abstractModel) Sets those properties on the figure that are defined in theAbstractBoolFigurebase class.protected voidinitializeNStatesProperties(int oldNStates, int newNStates, LEDFigure figure, LEDModel model) protected voidinitializeStateBulbBorderColor(Color newColor, LEDFigure figure, LEDModel model) protected voidinitializeStateBulbBorderWidth(int newWidth, LEDFigure figure, LEDModel model) protected voidinitializeStateColor(int state, Color oldColor, Color newColor, LEDFigure figure, LEDModel model) protected voidinitializeStateFallbackColor(Color oldColor, Color newColor, LEDFigure figure, LEDModel model) protected voidinitializeStateFallbackLabel(String oldLabel, String newLabel, LEDFigure figure, LEDModel model) protected voidinitializeStateLabel(int state, String oldLabel, String newLabel, LEDFigure figure, LEDModel model) protected voidinitializeStateValue(int state, double oldValue, double newValue, LEDFigure figure, LEDModel model) protected voidRegister the property change handlers.Methods inherited from class org.csstudio.opibuilder.widgets.editparts.AbstractBoolEditPart
getValue, registerCommonPropertyChangeHandlers, setValueMethods inherited from class org.csstudio.opibuilder.editparts.AbstractPVWidgetEditPart
activate, addSetPVValueListener, calculateBorder, createConnectionHandler, createEditPolicies, doActivate, doDeActivate, getAdapter, getAllPVNames, getControlPV, getPV, getPV, getPVName, getPVValue, getPVWidgetEditpartDelegate, initFigure, isPVControlWidget, markAsControlPV, registerBasePropertyChangeHandlers, setControlEnabled, setIgnoreOldPVValue, setPVValueMethods inherited from class org.csstudio.opibuilder.editparts.AbstractBaseEditPart
addToConnectionHandler, createFigure, deactivate, doRefreshVisuals, executeAction, fillAnchorMap, getAllPVs, getAnchorMap, getClosestAnchorAt, getConnectionHandler, getDisplayDisposeListener, getExecutionMode, getExternalObject, getHookedActions, getMacroValue, getModelSourceConnections, getModelTargetConnections, getName, getPropertyValue, getPVByName, getSite, getSourceConnectionAnchor, getSourceConnectionAnchor, getTargetConnectionAnchor, getTargetConnectionAnchor, getTerminalNameFromAnchor, getVar, hookMouseClickAction, isSelectable, refreshVisuals, removeAllPropertyChangeHandlers, removeFromConnectionHandler, setEnabled, setExecutionMode, setExternalObject, setFigureBorder, setHeight, setPropertyChangeHandler, setPropertyValue, setPropertyValue, setSelectable, setSite, setValueInUIThread, setVar, setVisible, setWidth, setX, setY, toStringMethods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getChildren, getContentPane, getDragTracker, getFigure, getLayer, getSourceConnections, getTargetConnections, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisualsMethods inherited from class org.eclipse.gef.editparts.AbstractEditPart
activateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getCommand, getEditPolicy, getEditPolicyIterable, getEditPolicyIterator, getEventListeners, getEventListenersIterable, getFlag, getModel, getModelChildren, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, refreshChildren, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest, unregister, unregisterAccessibility, unregisterModelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.gef.EditPart
addEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequestMethods inherited from interface org.eclipse.gef.GraphicalEditPart
addNodeListener, getChildren, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
-
Constructor Details
-
LEDEditPart
public LEDEditPart()
-
-
Method Details
-
doCreateFigure
protected org.eclipse.draw2d.IFigure doCreateFigure()Description copied from class:AbstractBaseEditPartCreate and initialize the widget figure with the property values in model.- Specified by:
doCreateFigurein classAbstractBaseEditPart- Returns:
- the widget figure
-
getWidgetModel
- Overrides:
getWidgetModelin classAbstractBoolEditPart
-
registerPropertyChangeHandlers
protected void registerPropertyChangeHandlers()Description copied from class:AbstractBaseEditPartRegister the property change handlers. Subclass should register its property change handlers in this method.- Specified by:
registerPropertyChangeHandlersin classAbstractBaseEditPart
-
initializeCommonFigureProperties
protected void initializeCommonFigureProperties(AbstractBoolFigure abstractFigure, AbstractBoolWidgetModel abstractModel) Description copied from class:AbstractBoolEditPartSets those properties on the figure that are defined in theAbstractBoolFigurebase class. This method is provided for the convenience of subclasses, which can call this method in their implementation ofAbstractBaseEditPart.doCreateFigure().- Overrides:
initializeCommonFigurePropertiesin classAbstractBoolEditPart- Parameters:
abstractFigure- the figure.abstractModel- the model.
-
initializeNStatesProperties
-
initializeStateFallbackLabel
-
initializeStateFallbackColor
-
initializeStateLabel
-
initializeStateColor
-
initializeStateValue
-
initializeStateBulbBorderWidth
-
initializeStateBulbBorderColor
-