Package org.csstudio.swt.widgets.figures
Class BoolSwitchFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.AbstractBoolFigure
org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
org.csstudio.swt.widgets.figures.BoolSwitchFigure
- All Implemented Interfaces:
Introspectable
,org.eclipse.draw2d.IFigure
Boolean Switch figure
-
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 TypeMethodDescriptionboolean
boolean
protected void
paintClientArea
(org.eclipse.draw2d.Graphics graphics) void
setBit
(int bit) void
setBounds
(org.eclipse.draw2d.geometry.Rectangle rect) void
setEffect3D
(boolean effect3D) void
setEnabled
(boolean value) void
setRunMode
(boolean runMode) void
setValue
(double value) protected boolean
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, setBooleanValue, setBoolLabelPosition, setFont, setOffColor, setOffLabel, setOnColor, setOnLabel, setShowBooleanLabel, setTotalBits, setValue, updateBoolValue, 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, layout, 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, setBackgroundColor, setBorder, 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, validate
-
Constructor Details
-
BoolSwitchFigure
public BoolSwitchFigure()
-
-
Method Details
-
isEffect3D
public boolean isEffect3D()- Returns:
- the effect3D
-
isHorizontal
public boolean isHorizontal()- Returns:
- the horizontal
-
paintClientArea
protected void paintClientArea(org.eclipse.draw2d.Graphics graphics) - Overrides:
paintClientArea
in classorg.eclipse.draw2d.Figure
-
setBit
public void setBit(int bit) - Overrides:
setBit
in classAbstractBoolFigure
- Parameters:
bit
- the bit to set
-
setBounds
public void setBounds(org.eclipse.draw2d.geometry.Rectangle rect) - Specified by:
setBounds
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setBounds
in classorg.eclipse.draw2d.Figure
-
setEffect3D
public void setEffect3D(boolean effect3D) - Parameters:
effect3D
- the effect3D to set
-
setEnabled
public void setEnabled(boolean value) - Specified by:
setEnabled
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setEnabled
in classAbstractBoolFigure
-
setRunMode
public void setRunMode(boolean runMode) - Overrides:
setRunMode
in classAbstractBoolControlFigure
- Parameters:
runMode
- the runMode to set
-
setValue
public void setValue(double value) - Overrides:
setValue
in classAbstractBoolFigure
-
useLocalCoordinates
protected boolean useLocalCoordinates()- Overrides:
useLocalCoordinates
in classorg.eclipse.draw2d.Figure
-