Class ProgressBarFigure
- 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.ProgressBarFigure
-
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
,Introspectable
public class ProgressBarFigure extends AbstractLinearMarkedFigure
A progress bar figure
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ProgressBarFigure.ProgressBarLayout
(package private) class
ProgressBarFigure.Thumb
(package private) class
ProgressBarFigure.Track
-
Field Summary
Fields Modifier and Type Field Description private static org.eclipse.swt.graphics.Color
BLUE_COLOR
private boolean
effect3D
private org.eclipse.swt.graphics.Color
fillBackgroundColor
private org.eclipse.swt.graphics.Color
fillColor
private static org.eclipse.swt.graphics.Color
GRAY_COLOR
private boolean
horizontal
private boolean
indicatorMode
private org.eclipse.draw2d.Label
label
private double
origin
private boolean
originIgnored
private ProgressBarFigure.Thumb
thumb
private ProgressBarFigure.Track
track
private static org.eclipse.swt.graphics.Color
WHITE_COLOR
-
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 ProgressBarFigure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Color
getFillBackgroundColor()
org.eclipse.swt.graphics.Color
getFillColor()
double
getOrigin()
boolean
isEffect3D()
boolean
isHorizontal()
boolean
isIndicatorMode()
boolean
isOpaque()
boolean
isOriginIgnored()
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
setIndicatorMode(boolean indicatorMode)
void
setOrigin(double origin)
void
setOriginIgnored(boolean originIgnored)
void
setRange(double min, double max)
set the range of the scalevoid
setShowLabel(boolean visible)
void
setValue(double value)
private void
updateLabelText()
Update the text of the label.-
Methods inherited from class org.eclipse.nebula.visualization.widgets.figures.AbstractLinearMarkedFigure
setHiColor, setHihiColor, setHihiLevel, setHiLevel, setLoColor, setLogScale, setLoLevel, setLoloColor, setLoloLevel, 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, paintClientArea, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, 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
-
-
-
-
Field Detail
-
fillColor
private org.eclipse.swt.graphics.Color fillColor
-
fillBackgroundColor
private org.eclipse.swt.graphics.Color fillBackgroundColor
-
effect3D
private boolean effect3D
-
horizontal
private boolean horizontal
-
indicatorMode
private boolean indicatorMode
-
WHITE_COLOR
private static final org.eclipse.swt.graphics.Color WHITE_COLOR
-
GRAY_COLOR
private static final org.eclipse.swt.graphics.Color GRAY_COLOR
-
BLUE_COLOR
private static final org.eclipse.swt.graphics.Color BLUE_COLOR
-
track
private ProgressBarFigure.Track track
-
label
private org.eclipse.draw2d.Label label
-
thumb
private ProgressBarFigure.Thumb thumb
-
origin
private double origin
-
originIgnored
private boolean originIgnored
-
-
Method Detail
-
getFillBackgroundColor
public org.eclipse.swt.graphics.Color getFillBackgroundColor()
- Returns:
- the fillBackgroundColor
-
getFillColor
public org.eclipse.swt.graphics.Color getFillColor()
- Returns:
- the fillColor
-
getOrigin
public double getOrigin()
- Returns:
- the origin
-
isEffect3D
public boolean isEffect3D()
- Returns:
- the effect3D
-
isHorizontal
public boolean isHorizontal()
- Returns:
- the horizontal
-
isIndicatorMode
public boolean isIndicatorMode()
- Returns:
- the indicatorMode
-
isOpaque
public boolean isOpaque()
- Specified by:
isOpaque
in interfaceorg.eclipse.draw2d.IFigure
- Overrides:
isOpaque
in classAbstractScaledWidgetFigure
-
isOriginIgnored
public boolean isOriginIgnored()
- Returns:
- the originIgnored
-
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
-
setIndicatorMode
public void setIndicatorMode(boolean indicatorMode)
-
setOrigin
public void setOrigin(double origin)
-
setOriginIgnored
public void setOriginIgnored(boolean originIgnored)
-
setRange
public void setRange(double min, double max)
Description copied from class:AbstractScaledWidgetFigure
set the range of the scale- Overrides:
setRange
in classAbstractLinearMarkedFigure
-
setShowLabel
public void setShowLabel(boolean visible)
-
setValue
public void setValue(double value)
- Overrides:
setValue
in classAbstractScaledWidgetFigure
- Parameters:
value
- the value to set
-
updateLabelText
private void updateLabelText()
Update the text of the label.
-
-