public class MeterFigure extends AbstractRoundRampedFigure
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MeterFigure.Needle |
(package private) class |
MeterFigure.XMeterLayout |
Modifier and Type | Field and Description |
---|---|
static double |
ALPHA |
static double |
HW_RATIO |
static int |
NEEDLE_WIDTH |
gradient, ramp
hiColor, hihiColor, hihiLevel, hiLevel, loColor, loLevel, loloColor, loloLevel, showHi, showHihi, showLo, showLolo, showMarkers
logScale, majorTickMarkStepHint, maximum, minimum, scale, showMinorTicks, showScale, transparent, value, valueLabelFormat
Constructor and Description |
---|
MeterFigure() |
Modifier and Type | Method and Description |
---|---|
java.beans.BeanInfo |
getBeanInfo() |
org.eclipse.swt.graphics.Color |
getNeedleColor() |
void |
setBounds(org.eclipse.draw2d.geometry.Rectangle rect) |
void |
setNeedleColor(org.eclipse.swt.graphics.Color needleColor) |
void |
setShowMarkers(boolean showMarkers) |
void |
setValue(double value) |
void |
setValueLabelVisibility(boolean visible) |
isGradient, setGradient, setHiColor, setHihiColor, setHihiLevel, setHiLevel, setLoColor, setLogScale, setLoLevel, setLoloColor, setLoloLevel, setRange, setShowHi, setShowHihi, setShowLo, setShowLolo
getHiColor, getHihiColor, getHihiLevel, getHiLevel, getLoColor, getLoLevel, getLoloColor, getLoloLevel, isShowHi, isShowHihi, isShowLo, isShowLolo, isShowMarkers
getCoercedValue, getCoercedValue, getMajorTickMarkStepHint, getMaximum, getMinimum, getRange, getScale, getValue, getValueLabelFormat, getValueText, isLogScale, isOpaque, isShowMinorTicks, isShowScale, isTransparent, paintFigure, setMajorTickMarkStepHint, setRange, setScale, setShowMinorTicks, setShowScale, setTransparent, setValueLabelFormat
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
public static final int NEEDLE_WIDTH
public static final double ALPHA
public static final double HW_RATIO
public void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
setBounds
in interface org.eclipse.draw2d.IFigure
setBounds
in class org.eclipse.draw2d.Figure
public void setShowMarkers(boolean showMarkers)
setShowMarkers
in class AbstractRoundRampedFigure
showMarkers
- the showMarkers to setpublic void setValue(double value)
setValue
in class AbstractScaledWidgetFigure
value
- the value to setpublic void setValueLabelVisibility(boolean visible)
public void setNeedleColor(org.eclipse.swt.graphics.Color needleColor)
needleColor
- the needleColor to setpublic org.eclipse.swt.graphics.Color getNeedleColor()
public java.beans.BeanInfo getBeanInfo() throws java.beans.IntrospectionException
getBeanInfo
in interface Introspectable
getBeanInfo
in class AbstractScaledWidgetFigure
java.beans.IntrospectionException