Class ImageBoolButtonFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.AbstractBoolFigure
org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
org.csstudio.opibuilder.widgets.figures.ImageBoolButtonFigure
- All Implemented Interfaces:
Introspectable
,SymbolImageListener
,org.eclipse.draw2d.IFigure
-
Nested Class Summary
Nested classes/interfaces inherited from class org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
AbstractBoolControlFigure.ShowConfirmDialog
Nested classes/interfaces inherited from class org.csstudio.swt.widgets.figures.AbstractBoolFigure
AbstractBoolFigure.BoolLabelPosition, AbstractBoolFigure.TotalBits
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch, org.eclipse.draw2d.Figure.ReverseFigureChildrenIterator
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
-
Field Summary
Fields inherited from class org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
buttonPresser, confirmTip, DISABLE_COLOR, DISABLED_ALPHA, password, runMode, showConfirmDialog, toggle
Fields inherited from class org.csstudio.swt.widgets.figures.AbstractBoolFigure
bit, booleanValue, boolLabel, boolLabelPosition, offColor, offLabel, onColor, onLabel, showBooleanLabel, value
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
dispose()
Dispose the image resources used by this figure.Return all mapped images.org.eclipse.draw2d.geometry.Dimension
Return the current displayed image.void
boolean
boolean
protected void
layout()
protected void
paintClientArea
(org.eclipse.draw2d.Graphics graphics) void
void
setAlignedToNearestSecond
(boolean aligned) void
setAnimationDisabled
(boolean stop) void
setBackgroundColor
(Color backgroundColor) void
setBorder
(org.eclipse.draw2d.Border b) void
setEnabled
(boolean value) void
setImageLoadedListener
(IImageListener listener) void
setOffImagePath
(String offImagePath) void
setOnImagePath
(String onImagePath) void
setRunMode
(boolean runMode) void
setStretch
(boolean strech) void
setSymbolProperties
(SymbolImageProperties symbolProperties, AbstractBoolWidgetModel model) void
setValue
(double value) void
void
protected void
update the boolValue from value and bit.Methods inherited from class org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
addManualValueChangeListener, fireManualValueChange, getConfirmTip, getPassword, getShowConfirmDialog, isRunMode, isShowConfirmDialog, isToggle, removeManualValueChangeListener, setConfirmTip, setPassword, setShowConfirmDialog, setShowConfirmDialog, setToggle
Methods inherited from class org.csstudio.swt.widgets.figures.AbstractBoolFigure
calculateLabelLocation, getBeanInfo, getBit, getBooleanValue, getBoolLabelPosition, getLabelLocation, getLabelLocation, getOffColor, getOffLabel, getOnColor, getOnLabel, getTotalBits, getValue, invalidate, isOpaque, isShowBooleanLabel, setBit, setBooleanValue, setBoolLabelPosition, setFont, setOffColor, setOffLabel, setOnColor, setOnLabel, setShowBooleanLabel, setTotalBits, setValue, updateValue
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getListenersIterable, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, optimizeClip, paint, paintBorder, paintChildren, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setFlag, setFocusTraversable, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Constructor Details
-
ImageBoolButtonFigure
public ImageBoolButtonFigure() -
ImageBoolButtonFigure
public ImageBoolButtonFigure(boolean indicatorMode)
-
-
Method Details
-
updateBoolValue
protected void updateBoolValue()Description copied from class:AbstractBoolFigure
update the boolValue from value and bit. All the boolValue based behavior changes should be implemented here by inheritance.- Overrides:
updateBoolValue
in classAbstractBoolFigure
-
getCurrentImage
Return the current displayed image. If null, returns an empty image. -
getAllImages
Return all mapped images. -
dispose
public void dispose()Dispose the image resources used by this figure. -
setSymbolProperties
public void setSymbolProperties(SymbolImageProperties symbolProperties, AbstractBoolWidgetModel model) -
getAutoSizedDimension
public org.eclipse.draw2d.geometry.Dimension getAutoSizedDimension() -
setBorder
public void setBorder(org.eclipse.draw2d.Border b) - Specified by:
setBorder
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setBorder
in classorg.eclipse.draw2d.Figure
-
isLoadingImage
public boolean isLoadingImage() -
decrementLoadingCounter
public void decrementLoadingCounter() -
incrementLoadingCounter
public void incrementLoadingCounter() -
layout
protected void layout()- Overrides:
layout
in classorg.eclipse.draw2d.Figure
-
paintClientArea
protected void paintClientArea(org.eclipse.draw2d.Graphics graphics) - Overrides:
paintClientArea
in classorg.eclipse.draw2d.Figure
-
setEnabled
public void setEnabled(boolean value) - Specified by:
setEnabled
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setEnabled
in classAbstractBoolFigure
-
setOffImagePath
-
setOnImagePath
-
setRunMode
public void setRunMode(boolean runMode) - Overrides:
setRunMode
in classAbstractBoolControlFigure
- Parameters:
runMode
- the runMode to set
-
setStretch
public void setStretch(boolean strech) -
setValue
public void setValue(double value) - Overrides:
setValue
in classAbstractBoolFigure
-
setBackgroundColor
- Specified by:
setBackgroundColor
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setBackgroundColor
in classorg.eclipse.draw2d.Figure
-
isAnimationDisabled
public boolean isAnimationDisabled()- Returns:
- the animationDisabled
-
setAnimationDisabled
public void setAnimationDisabled(boolean stop) -
setAlignedToNearestSecond
public void setAlignedToNearestSecond(boolean aligned) -
setImageLoadedListener
-
symbolImageLoaded
public void symbolImageLoaded()- Specified by:
symbolImageLoaded
in interfaceSymbolImageListener
-
repaintRequested
public void repaintRequested()- Specified by:
repaintRequested
in interfaceSymbolImageListener
-
sizeChanged
public void sizeChanged()- Specified by:
sizeChanged
in interfaceSymbolImageListener
-