LinearScaleTickLabels2
public class LinearScaleTickLabels
extends org.eclipse.draw2d.Figure
Constructor | Description |
---|---|
LinearScaleTickLabels(IScaleProvider linearScale) |
Constructor.
|
LinearScaleTickLabels(IScaleProvider linearScale,
ITicksProvider ticks) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getGridStepInPixel() |
|
IScaleProvider |
getScale() |
|
int |
getTickLabelMaxHeight() |
|
int |
getTickLabelMaxLength() |
|
java.util.ArrayList<java.lang.Integer> |
getTickLabelPositions() |
Gets the tick label positions.
|
ITicksProvider |
getTicksProvider() |
|
java.util.ArrayList<java.lang.Boolean> |
getTickVisibilities() |
|
boolean |
isShowMaxLabel() |
|
boolean |
isShowMinLabel() |
|
void |
setScale(IScaleProvider scale) |
sets the type of scale
|
void |
setShowMaxLabel(boolean showMaxLabel) |
set whether max label is shown or not
|
void |
setShowMinLabel(boolean showMinLabel) |
sets whether min label is shown or not
|
Range |
update(int length) |
Updates the tick labels.
|
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, 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, setBounds, 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 LinearScaleTickLabels(IScaleProvider linearScale)
linearScale
- the scalepublic LinearScaleTickLabels(IScaleProvider linearScale, ITicksProvider ticks)
linearScale
- the scaleticks
- the tick providerpublic ITicksProvider getTicksProvider()
public int getGridStepInPixel()
public java.util.ArrayList<java.lang.Integer> getTickLabelPositions()
public java.util.ArrayList<java.lang.Boolean> getTickVisibilities()
public boolean isShowMinLabel()
public void setShowMinLabel(boolean showMinLabel)
showMinLabel
- public boolean isShowMaxLabel()
public void setShowMaxLabel(boolean showMaxLabel)
showMaxLabel
- public int getTickLabelMaxLength()
public int getTickLabelMaxHeight()
public IScaleProvider getScale()
public void setScale(IScaleProvider scale)
scale
- public Range update(int length)
length
- scale tick length (without margin)