public class RoundScaledRamp
extends org.eclipse.draw2d.Figure
| Modifier and Type | Class | Description |
|---|---|---|
static class |
RoundScaledRamp.Threshold |
The alarm thereshold for a PV, includs HIHI, HI, LO or LOLO.
|
| Constructor | Description |
|---|---|
RoundScaledRamp(RoundScale scale) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
org.eclipse.draw2d.geometry.Dimension |
getPreferredSize(int wHint,
int hHint) |
|
int |
getRampWidth() |
|
RoundScale |
getScale() |
|
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, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, 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, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setClippingStrategy, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validatepublic RoundScaledRamp(RoundScale scale)
scale - the round scalepublic void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
setBounds in class org.eclipse.draw2d.Figurepublic org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint,
int hHint)
getPreferredSize in class org.eclipse.draw2d.Figurepublic 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.Thresholdvalue - 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.Thresholdcolor - the RGB color to setpublic void setThresholdVisibility(RoundScaledRamp.Threshold thresholdName, boolean visible)
thresholdName - the threshold name which should be one of RoundScaledRamp.Thresholdvisible - true if this threshold should be visiblepublic void setDirty(boolean dirty)
dirty - the dirty to set