public class LinearScaledMarker
extends org.eclipse.draw2d.Figure
Constructor | Description |
---|---|
LinearScaledMarker(LinearScale scale) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
addMarkerElement(java.lang.String label,
double value) |
Add (if the marker does not exist) or change a marker element.
|
void |
addMarkerElement(java.lang.String label,
double value,
org.eclipse.swt.graphics.RGB color) |
Add (if the marker does not exist) or change a marker element.
|
java.lang.String[] |
getLabels() |
|
AbstractScale.LabelSide |
getMakerLabelsPosition() |
|
AbstractScale.LabelSide |
getMakerLablesPosition() |
Deprecated.
use correctly spelled
getMakerLabelsPosition() |
org.eclipse.draw2d.geometry.Dimension |
getPreferredSize(int wHint,
int hHint) |
|
LinearScale |
getScale() |
|
boolean |
isMarkerLabelVisible() |
|
boolean |
isMarkerLableVisible() |
Deprecated.
use correctly spelled
isMarkerLabelVisible() |
boolean |
isMarkerLineVisible() |
|
void |
removeMarkerElement(java.lang.String label) |
Removes the marker element with the given label
|
void |
setBounds(org.eclipse.draw2d.geometry.Rectangle rect) |
|
void |
setDirty(boolean dirty) |
|
void |
setLabelSide(AbstractScale.LabelSide labelSide) |
|
void |
setMarkerElementColor(java.lang.String label,
org.eclipse.swt.graphics.RGB color) |
If the marker exists, set its color.
|
void |
setMarkerElementValue(java.lang.String label,
double value) |
If the marker exists, set its value.
|
void |
setMarkerLabelVisible(boolean markerLabelVisible) |
|
void |
setMarkerLableVisible(boolean markerLabelVisible) |
Deprecated.
use correctly spelled
setMarkerLabelVisible(boolean) |
void |
setMarkerLineVisible(boolean markerLineVisible) |
|
void |
setScale(LinearScale scale) |
|
void |
updateMarkerElements() |
updates marker elements of ticks
|
void |
updateMarkerElments() |
Deprecated.
|
void |
updateTick() |
Updates the tick, recalculate all inner parameters
|
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, validate
public LinearScaledMarker(LinearScale scale)
scale
- public void setDirty(boolean dirty)
dirty
- the dirty to setpublic void setMarkerElementValue(java.lang.String label, double value)
label
- the label of the marker element, it must be unique.value
- the value to be setpublic void setMarkerElementColor(java.lang.String label, org.eclipse.swt.graphics.RGB color)
label
- the label of the marker element, it must be unique.color
- the color to be setpublic void addMarkerElement(java.lang.String label, double value, org.eclipse.swt.graphics.RGB color)
label
- the label of the marker element, it must be unique.value
- the value of the marker elementcolor
- the color of the marker elementpublic void addMarkerElement(java.lang.String label, double value)
label
- the label of the marker element, it must be unique.value
- the value of the marker elementpublic void removeMarkerElement(java.lang.String label)
label
- public void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
setBounds
in class org.eclipse.draw2d.Figure
public void updateTick()
public java.lang.String[] getLabels()
@Deprecated public void updateMarkerElments()
updateMarkerElements()
instead.public void updateMarkerElements()
public void setScale(LinearScale scale)
scale
- the scale to setpublic LinearScale getScale()
public void setLabelSide(AbstractScale.LabelSide labelSide)
labelSide
- the makerLabelsPosition to setpublic AbstractScale.LabelSide getMakerLabelsPosition()
@Deprecated public AbstractScale.LabelSide getMakerLablesPosition()
getMakerLabelsPosition()
public void setMarkerLineVisible(boolean markerLineVisible)
markerLineVisible
- the markerLineVisible to setpublic boolean isMarkerLineVisible()
public void setMarkerLabelVisible(boolean markerLabelVisible)
markerLabelVisible
- the markerLabelVisible to set@Deprecated public void setMarkerLableVisible(boolean markerLabelVisible)
setMarkerLabelVisible(boolean)
public boolean isMarkerLabelVisible()
@Deprecated public boolean isMarkerLableVisible()
isMarkerLabelVisible()
public org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint, int hHint)
getPreferredSize
in class org.eclipse.draw2d.Figure