Package org.csstudio.swt.widgets.figures
Class BoolButtonFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.AbstractBoolFigure
org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
org.csstudio.swt.widgets.figures.BoolButtonFigure
- All Implemented Interfaces:
Introspectable
,org.eclipse.draw2d.IFigure
Bool button 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
boolean
protected void
layout()
protected void
paintClientArea
(org.eclipse.draw2d.Graphics graphics) void
void
setEffect3D
(boolean effect3D) void
setEnabled
(boolean value) void
setRunMode
(boolean runMode) void
setShowLED
(boolean showLED) void
setSquareButton
(boolean squareButton) 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, 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, 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, setBorder, 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
-
BoolButtonFigure
public BoolButtonFigure()
-
-
Method Details
-
isEffect3D
public boolean isEffect3D()- Returns:
- the effect3D
-
isShowLED
public boolean isShowLED()- Returns:
- the showLED
-
isSquareButton
public boolean isSquareButton()- Returns:
- the squareButton
-
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
-
setBackgroundColor
- Specified by:
setBackgroundColor
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setBackgroundColor
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
-
setShowLED
public void setShowLED(boolean showLED) - Parameters:
showLED
- the showLED to set
-
setSquareButton
public void setSquareButton(boolean squareButton)
-