Class KnobFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.nebula.visualization.widgets.figures.AbstractScaledWidgetFigure
org.eclipse.nebula.visualization.widgets.figures.AbstractMarkedWidgetFigure
org.eclipse.nebula.visualization.widgets.figures.AbstractRoundRampedFigure
org.eclipse.nebula.visualization.widgets.figures.KnobFigure
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
,Introspectable
public class KnobFigure extends AbstractRoundRampedFigure
The figure of knob
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
KnobFigure.KnobLayout
(package private) class
KnobFigure.Thumb
-
Field Summary
Fields inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractRoundRampedFigure
gradient, ramp
Fields inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractMarkedWidgetFigure
hiColor, hihiColor, hihiLevel, hiLevel, loColor, loLevel, loloColor, loloLevel, showHi, showHihi, showLo, showLolo, showMarkers
Fields inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractScaledWidgetFigure
logScale, majorTickMarkStepHint, maximum, minimum, scale, showMinorTicks, showScale, transparent, value, valueLabelFormat
-
Constructor Summary
Constructors Constructor Description KnobFigure()
-
Method Summary
Modifier and Type Method Description void
addManualValueChangeListener(IManualValueChangeListener listener)
Add a knob listener.double
getIncrement()
org.eclipse.swt.graphics.Color
getThumbColor()
boolean
isEffect3D()
void
manualSetValue(double value)
Set Value from manual control of the widget.protected void
paintClientArea(org.eclipse.draw2d.Graphics graphics)
void
removeManualValueChangeListener(IManualValueChangeListener listener)
void
setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
void
setBulbColor(org.eclipse.swt.graphics.Color color)
void
setCursor(org.eclipse.swt.graphics.Cursor cursor)
void
setEffect3D(boolean effect3D)
void
setEnabled(boolean value)
void
setFont(org.eclipse.swt.graphics.Font f)
void
setIncrement(double increment)
void
setThumbColor(org.eclipse.swt.graphics.Color thumbColor)
void
setValue(double value)
void
setValueLabelVisibility(boolean visible)
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractRoundRampedFigure
isGradient, setGradient, setHiColor, setHihiColor, setHihiLevel, setHiLevel, setLoColor, setLogScale, setLoLevel, setLoloColor, setLoloLevel, setRange, setShowHi, setShowHihi, setShowLo, setShowLolo, setShowMarkers
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractMarkedWidgetFigure
getHiColor, getHihiColor, getHihiLevel, getHiLevel, getLoColor, getLoLevel, getLoloColor, getLoloLevel, isShowHi, isShowHihi, isShowLo, isShowLolo, isShowMarkers
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractScaledWidgetFigure
getBeanInfo, getCoercedValue, getCoercedValue, getMajorTickMarkStepHint, getMaximum, getMinimum, getRange, getScale, getValue, getValueLabelFormat, getValueText, isLogScale, isOpaque, isShowMinorTicks, isShowScale, isTransparent, paintFigure, setMajorTickMarkStepHint, setRange, setScale, setShowMinorTicks, setShowScale, setTransparent, setValueLabelFormat
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, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, 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, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, 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, 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
-
KnobFigure
public KnobFigure()
-
-
Method Details
-
addManualValueChangeListener
Add a knob listener.- Parameters:
listener
- The knob listener to add.
-
getIncrement
public double getIncrement()- Returns:
- the increment
-
getThumbColor
public org.eclipse.swt.graphics.Color getThumbColor()- Returns:
- the thumbColor
-
isEffect3D
public boolean isEffect3D()- Returns:
- the effect3D
-
manualSetValue
public void manualSetValue(double value)Set Value from manual control of the widget. Value will be coerced in range.- Parameters:
value
-
-
paintClientArea
protected void paintClientArea(org.eclipse.draw2d.Graphics graphics)- Overrides:
paintClientArea
in classorg.eclipse.draw2d.Figure
-
removeManualValueChangeListener
-
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
-
setBulbColor
public void setBulbColor(org.eclipse.swt.graphics.Color color)- Parameters:
color
- the bulb color to set
-
setCursor
public void setCursor(org.eclipse.swt.graphics.Cursor cursor)- Specified by:
setCursor
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setCursor
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 classorg.eclipse.draw2d.Figure
-
setFont
public void setFont(org.eclipse.swt.graphics.Font f)- Specified by:
setFont
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
setFont
in classorg.eclipse.draw2d.Figure
-
setIncrement
public void setIncrement(double increment)- Parameters:
increment
- the increment to set
-
setThumbColor
public void setThumbColor(org.eclipse.swt.graphics.Color thumbColor)- Parameters:
thumbColor
- the thumbColor to set
-
setValue
public void setValue(double value)- Overrides:
setValue
in classAbstractScaledWidgetFigure
- Parameters:
value
- the value to set
-
setValueLabelVisibility
public void setValueLabelVisibility(boolean visible)
-