public abstract class AbstractScaledWidgetFigure extends org.eclipse.draw2d.Figure implements Introspectable
AbstractScaledWidgetModel
.Modifier and Type | Field and Description |
---|---|
protected boolean |
logScale |
protected int |
majorTickMarkStepHint |
protected double |
maximum |
protected double |
minimum |
protected AbstractScale |
scale |
protected boolean |
showMinorTicks |
protected boolean |
showScale |
protected boolean |
transparent |
protected double |
value |
protected java.lang.String |
valueLabelFormat |
Constructor and Description |
---|
AbstractScaledWidgetFigure() |
Modifier and Type | Method and Description |
---|---|
java.beans.BeanInfo |
getBeanInfo() |
double |
getCoercedValue() |
double |
getCoercedValue(double v)
Coerce a value into range of the scale.
|
int |
getMajorTickMarkStepHint() |
double |
getMaximum() |
double |
getMinimum() |
Range |
getRange() |
AbstractScale |
getScale() |
double |
getValue() |
java.lang.String |
getValueLabelFormat() |
java.lang.String |
getValueText() |
boolean |
isLogScale() |
boolean |
isOpaque() |
boolean |
isShowMinorTicks() |
boolean |
isShowScale() |
boolean |
isTransparent() |
void |
paintFigure(org.eclipse.draw2d.Graphics graphics) |
void |
setLogScale(boolean logScale) |
void |
setMajorTickMarkStepHint(int majorTickMarkStepHint) |
void |
setRange(double min,
double max)
set the range of the scale
|
void |
setRange(Range range) |
void |
setScale(AbstractScale scale) |
void |
setShowMinorTicks(boolean showMinorTicks) |
void |
setShowScale(boolean showScale) |
void |
setTransparent(boolean transparent)
Sets, if this widget should have a transparent background.
|
void |
setValue(double value) |
void |
setValueLabelFormat(java.lang.String valueLabelFormat) |
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, 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
protected AbstractScale scale
protected boolean transparent
protected double value
protected double minimum
protected double maximum
protected int majorTickMarkStepHint
protected boolean showMinorTicks
protected boolean showScale
protected boolean logScale
protected java.lang.String valueLabelFormat
public java.beans.BeanInfo getBeanInfo() throws java.beans.IntrospectionException
getBeanInfo
in interface Introspectable
java.beans.IntrospectionException
public double getCoercedValue()
public double getCoercedValue(double v)
v
- the value to be coerced.public int getMajorTickMarkStepHint()
public double getMaximum()
public double getMinimum()
public Range getRange()
public AbstractScale getScale()
public double getValue()
public java.lang.String getValueLabelFormat()
public java.lang.String getValueText()
public boolean isLogScale()
public boolean isOpaque()
isOpaque
in interface org.eclipse.draw2d.IFigure
isOpaque
in class org.eclipse.draw2d.Figure
public boolean isShowMinorTicks()
public boolean isShowScale()
public boolean isTransparent()
public void paintFigure(org.eclipse.draw2d.Graphics graphics)
paintFigure
in class org.eclipse.draw2d.Figure
public void setLogScale(boolean logScale)
logScale
- the logScale to setpublic void setMajorTickMarkStepHint(int majorTickMarkStepHint)
majorTickMarkStepHint
- the majorTickMarkStepHint to setpublic void setRange(double min, double max)
min
- max
- public void setRange(Range range)
public void setScale(AbstractScale scale)
scale
- the scale to setpublic void setShowMinorTicks(boolean showMinorTicks)
showMinorTicks
- the showMinorTicks to setpublic void setShowScale(boolean showScale)
showScale
- the showScale to setpublic void setTransparent(boolean transparent)
transparent
- The new value for the transparent propertypublic void setValue(double value)
value
- the value to setpublic void setValueLabelFormat(java.lang.String valueLabelFormat)
valueLabelFormat
- the numeric format pattern for value label.