public class RoundScaledRamp
extends org.eclipse.draw2d.Figure
Modifier and Type | Class and Description |
---|---|
static class |
RoundScaledRamp.Threshold
The alarm thereshold for a PV, includs HIHI, HI, LO or LOLO.
|
(package private) static class |
RoundScaledRamp.ThresholdMarker
Hold the properties for each threshold.
|
Constructor and Description |
---|
RoundScaledRamp(RoundScale scale)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.draw2d.geometry.Dimension |
getPreferredSize(int wHint,
int hHint) |
int |
getRampWidth() |
RoundScale |
getScale() |
protected void |
paintClientArea(org.eclipse.draw2d.Graphics graphics) |
void |
setBounds(org.eclipse.draw2d.geometry.Rectangle rect) |
void |
setDirty(boolean dirty) |
void |
setGradient(boolean gradient)
If gradient is true, the color will be displayed in gradient style
|
void |
setRampWidth(int rampWidth) |
void |
setScale(RoundScale scale) |
void |
setThresholdColor(RoundScaledRamp.Threshold thresholdName,
org.eclipse.swt.graphics.RGB color)
Set color of the threshold.
|
void |
setThresholdValue(RoundScaledRamp.Threshold thresholdName,
double value)
Set value of the threshold.
|
void |
setThresholdVisibility(RoundScaledRamp.Threshold thresholdName,
boolean visible)
Set visibility of the threshold.
|
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, 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, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintFigure, 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 RoundScaledRamp(RoundScale scale)
scale
- the round scalepublic void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
setBounds
in interface org.eclipse.draw2d.IFigure
setBounds
in class org.eclipse.draw2d.Figure
public org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint, int hHint)
getPreferredSize
in interface org.eclipse.draw2d.IFigure
getPreferredSize
in class org.eclipse.draw2d.Figure
protected void paintClientArea(org.eclipse.draw2d.Graphics graphics)
paintClientArea
in class org.eclipse.draw2d.Figure
public RoundScale getScale()
public void setScale(RoundScale scale)
scale
- the round scale to setpublic int getRampWidth()
public void setRampWidth(int rampWidth)
rampWidth
- the rampWidth to setpublic void setGradient(boolean gradient)
gradient
- the gradient to setpublic void setThresholdValue(RoundScaledRamp.Threshold thresholdName, double value)
thresholdName
- the threshold name which should be one of RoundScaledRamp.Threshold
value
- the value to setpublic void setThresholdColor(RoundScaledRamp.Threshold thresholdName, org.eclipse.swt.graphics.RGB color)
thresholdName
- the threshold name which should be one of RoundScaledRamp.Threshold
color
- the RGB color to setpublic void setThresholdVisibility(RoundScaledRamp.Threshold thresholdName, boolean visible)
thresholdName
- the threshold name which should be one of RoundScaledRamp.Threshold
visible
- true if this threshold should be visiblepublic void setDirty(boolean dirty)
dirty
- the dirty to set