public class RoundScale extends AbstractScale
AbstractScale.LabelSide| Modifier and Type | Field | Description |
|---|---|---|
static int |
SPACE_BTW_MARK_LABEL |
DEFAULT_ENGINEERING_FORMAT, DEFAULT_LOG_SCALE_MAX, DEFAULT_MAX, DEFAULT_MIN| Constructor | Description |
|---|---|
RoundScale() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
convertPixelToRadians(int pixels) |
|
double |
getCoercedValuePosition(double value,
boolean relative) |
|
double |
getEndAngle() |
|
int |
getEstimatedDonutWidth() |
|
int |
getInnerRadius() |
|
double |
getLengthInDegrees() |
|
int |
getLengthInPixels() |
|
org.eclipse.draw2d.geometry.Dimension |
getPreferredSize(int wHint,
int hHint) |
|
int |
getRadius() |
|
RoundScaleTickLabels |
getScaleTickLabels() |
Gets the scale tick labels.
|
RoundScaleTickMarks |
getScaleTickMarks() |
Gets the scale tick marks.
|
double |
getStartAngle() |
|
double |
getValuePosition(double value,
boolean relative) |
Get the position of the value in degrees.
|
void |
setBounds(org.eclipse.draw2d.geometry.Rectangle rect) |
|
void |
setEndAngle(double endAngle) |
|
void |
setFont(org.eclipse.swt.graphics.Font font) |
|
void |
setForegroundColor(org.eclipse.swt.graphics.Color color) |
|
void |
setRadius(int radius) |
|
void |
setStartAngle(double startAngle) |
|
void |
updateTick() |
Updates the tick, recalculate all parameters, such as margin, length...
|
format, format, getFormatPattern, getMajorGridStep, getMajorTickMarkStepHint, getMinorTickMarkStepHint, getRange, getTickLabelSide, getTickLablesSide, getTimeUnit, isAutoFormat, isDateEnabled, isDirty, isLogScaleEnabled, isMinorTicksVisible, isScaleLineVisible, setAutoFormat, setDateEnabled, setFormatPattern, setLogScale, setMajorGridStep, setMajorTickMarkStepHint, setMinorTickMarkStepHint, setMinorTicksVisible, setRange, setRange, setRange, setScaleLineVisible, setTickLabelSide, setTickLableSide, setTimeUnitadd, 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, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validatepublic static final int SPACE_BTW_MARK_LABEL
public int getLengthInPixels()
public double getLengthInDegrees()
public double convertPixelToRadians(int pixels)
pixels - the pixels to be convertedpublic int getEstimatedDonutWidth()
public org.eclipse.draw2d.geometry.Dimension getPreferredSize(int wHint,
int hHint)
getPreferredSize in class org.eclipse.draw2d.Figurepublic RoundScaleTickLabels getScaleTickLabels()
public RoundScaleTickMarks getScaleTickMarks()
public double getCoercedValuePosition(double value,
boolean relative)
public double getValuePosition(double value,
boolean relative)
value - the value to find its position. It can be value out of range.relative - the polar axs would be counterclockwisely rotated to the endAngle if true.public void setBounds(org.eclipse.draw2d.geometry.Rectangle rect)
setBounds in class org.eclipse.draw2d.Figurepublic void setFont(org.eclipse.swt.graphics.Font font)
setFont in class AbstractScalepublic void setForegroundColor(org.eclipse.swt.graphics.Color color)
setForegroundColor in class org.eclipse.draw2d.Figurepublic void updateTick()
updateTick in class AbstractScalepublic void setStartAngle(double startAngle)
startAngle - the startAngle to setpublic double getStartAngle()
public void setEndAngle(double endAngle)
endAngle - the endAngle to setpublic double getEndAngle()
public void setRadius(int radius)
radius - the radius to setpublic int getRadius()
public int getInnerRadius()