Class MeterFigure
- 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.MeterFigure
-
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure,Introspectable
public class MeterFigure extends AbstractRoundRampedFigure
The figure of Express Meter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classMeterFigure.Needle(package private) classMeterFigure.XMeterLayout
-
Field Summary
Fields Modifier and Type Field Description static doubleALPHAprivate static org.eclipse.swt.graphics.FontDEFAULT_LABEL_FONTstatic doubleHW_RATIOprivate MeterFigure.Needleneedlestatic intNEEDLE_WIDTHprivate static doubleSPACE_ANGLEprivate org.eclipse.draw2d.LabelvalueLabel-
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 MeterFigure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.beans.BeanInfogetBeanInfo()org.eclipse.swt.graphics.ColorgetNeedleColor()voidsetBounds(org.eclipse.draw2d.geometry.Rectangle rect)voidsetNeedleColor(org.eclipse.swt.graphics.Color needleColor)voidsetShowMarkers(boolean showMarkers)voidsetValue(double value)voidsetValueLabelVisibility(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
-
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
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, paintClientArea, 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, setEnabled, 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
-
DEFAULT_LABEL_FONT
private static final org.eclipse.swt.graphics.Font DEFAULT_LABEL_FONT
-
needle
private MeterFigure.Needle needle
-
valueLabel
private org.eclipse.draw2d.Label valueLabel
-
SPACE_ANGLE
private static final double SPACE_ANGLE
- See Also:
- Constant Field Values
-
NEEDLE_WIDTH
public static final int NEEDLE_WIDTH
- See Also:
- Constant Field Values
-
ALPHA
public static final double ALPHA
- See Also:
- Constant Field Values
-
HW_RATIO
public static final double HW_RATIO
-
-
Method Detail
-
setBounds
public void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
- Specified by:
setBoundsin interfaceorg.eclipse.draw2d.IFigure- Overrides:
setBoundsin classorg.eclipse.draw2d.Figure
-
setShowMarkers
public void setShowMarkers(boolean showMarkers)
- Overrides:
setShowMarkersin classAbstractRoundRampedFigure- Parameters:
showMarkers- the showMarkers to set
-
setValue
public void setValue(double value)
- Overrides:
setValuein classAbstractScaledWidgetFigure- Parameters:
value- the value to set
-
setValueLabelVisibility
public void setValueLabelVisibility(boolean visible)
-
setNeedleColor
public void setNeedleColor(org.eclipse.swt.graphics.Color needleColor)
- Parameters:
needleColor- the needleColor to set
-
getNeedleColor
public org.eclipse.swt.graphics.Color getNeedleColor()
- Returns:
- color of the needle.
-
getBeanInfo
public java.beans.BeanInfo getBeanInfo() throws java.beans.IntrospectionException- Specified by:
getBeanInfoin interfaceIntrospectable- Overrides:
getBeanInfoin classAbstractScaledWidgetFigure- Throws:
java.beans.IntrospectionException
-
-