Class ScaledSliderFigure
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.AbstractLinearMarkedFigure
org.eclipse.nebula.visualization.widgets.figures.ScaledSliderFigure
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
,Introspectable
public class ScaledSliderFigure extends AbstractLinearMarkedFigure
A Scaled Slider figure
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ScaledSliderFigure.Thumb
(package private) class
ScaledSliderFigure.Track
(package private) class
ScaledSliderFigure.XSliderLayout
-
Field Summary
Fields inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractLinearMarkedFigure
marker
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 ScaledSliderFigure()
-
Method Summary
Modifier and Type Method Description void
addManualValueChangeListener(IManualValueChangeListener listener)
Add a slider listener.org.eclipse.swt.graphics.Color
getFillBackgroundColor()
org.eclipse.swt.graphics.Color
getFillColor()
double
getPageIncrement()
double
getStepIncrement()
org.eclipse.swt.graphics.Color
getThumbColor()
boolean
isDrawFocus()
Get whether the focus rectangle is drawn when figure has focus.boolean
isEffect3D()
boolean
isHorizontal()
boolean
isOpaque()
void
manualSetValue(double value)
Set Value from manual control of the widget.void
pageDown()
void
pageUp()
protected void
paintClientArea(org.eclipse.draw2d.Graphics graphics)
void
removeManualValueChangeListener(IManualValueChangeListener listener)
Remove a manual value change listener.void
revalidate()
void
setDrawFocus(boolean drawFocus)
Set the focus rectangle should be drawn on the figure when it has focus.void
setEffect3D(boolean effect3D)
void
setEnabled(boolean value)
void
setFillBackgroundColor(org.eclipse.swt.graphics.Color fillBackgroundColor)
void
setFillColor(org.eclipse.swt.graphics.Color fillColor)
void
setHorizontal(boolean horizontal)
void
setPageIncrement(double pageIncrement)
void
setStepIncrement(double stepIncrement)
void
setThumbColor(org.eclipse.swt.graphics.Color thumbColor)
void
setValue(double value)
void
stepDown()
void
stepUp()
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractLinearMarkedFigure
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, 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, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Constructor Details
-
ScaledSliderFigure
public ScaledSliderFigure()
-
-
Method Details
-
addManualValueChangeListener
Add a slider listener.- Parameters:
listener
- The slider listener to add.
-
removeManualValueChangeListener
Remove a manual value change listener.- Parameters:
listener
- the listner to be removed.
-
getFillBackgroundColor
public org.eclipse.swt.graphics.Color getFillBackgroundColor()- Returns:
- the fillBackgroundColor
-
getFillColor
public org.eclipse.swt.graphics.Color getFillColor()- Returns:
- the fillColor
-
getPageIncrement
public double getPageIncrement()- Returns:
- the pageIncrement
-
getStepIncrement
public double getStepIncrement()- Returns:
- the stepIncrement
-
getThumbColor
public org.eclipse.swt.graphics.Color getThumbColor()- Returns:
- the thumbColor
-
isEffect3D
public boolean isEffect3D()- Returns:
- the effect3D
-
isHorizontal
public boolean isHorizontal()- Returns:
- the horizontal
-
revalidate
public void revalidate()- Specified by:
revalidate
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
revalidate
in classorg.eclipse.draw2d.Figure
-
isOpaque
public boolean isOpaque()- Specified by:
isOpaque
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
isOpaque
in classAbstractScaledWidgetFigure
-
manualSetValue
public void manualSetValue(double value)Set Value from manual control of the widget. Value will be coerced in range.- Parameters:
value
-
-
pageDown
public void pageDown() -
pageUp
public void pageUp() -
setDrawFocus
public void setDrawFocus(boolean drawFocus)Set the focus rectangle should be drawn on the figure when it has focus.- Parameters:
drawFocus
- true to draw focus rectangle.
-
isDrawFocus
public boolean isDrawFocus()Get whether the focus rectangle is drawn when figure has focus.- Returns:
- true if focus rectangle is drawn
-
paintClientArea
protected void paintClientArea(org.eclipse.draw2d.Graphics graphics)- Overrides:
paintClientArea
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
-
setFillBackgroundColor
public void setFillBackgroundColor(org.eclipse.swt.graphics.Color fillBackgroundColor)- Parameters:
fillBackgroundColor
- the fillBackgroundColor to set
-
setFillColor
public void setFillColor(org.eclipse.swt.graphics.Color fillColor)- Parameters:
fillColor
- the fillColor to set
-
setHorizontal
public void setHorizontal(boolean horizontal)- Parameters:
horizontal
- the horizontal to set
-
setPageIncrement
public void setPageIncrement(double pageIncrement) -
setStepIncrement
public void setStepIncrement(double stepIncrement)- Parameters:
stepIncrement
- the stepIncrement 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
-
stepDown
public void stepDown() -
stepUp
public void stepUp()
-