public class LinearScaledMarker
extends org.eclipse.draw2d.Figure
| Constructor and Description |
|---|
LinearScaledMarker(LinearScale scale)
Constructor
|
| Modifier and Type | Method and 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 {@link #isMarkerLabelVisible()
|
boolean |
isMarkerLineVisible() |
protected void |
paintClientArea(org.eclipse.draw2d.Graphics graphics) |
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, 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, validatepublic 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 - protected void paintClientArea(org.eclipse.draw2d.Graphics graphics)
paintClientArea in class org.eclipse.draw2d.Figurepublic void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
setBounds in interface org.eclipse.draw2d.IFiguresetBounds in class org.eclipse.draw2d.Figurepublic 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()
public org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint,
int hHint)
getPreferredSize in interface org.eclipse.draw2d.IFiguregetPreferredSize in class org.eclipse.draw2d.Figure