public interface IScaleProvider
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(java.lang.Object obj)
Formats the given object as a DateFormat if Date is enabled or as a
DecimalFormat.
|
java.lang.String |
format(java.lang.Object obj,
boolean minOrMaxDate)
Formats the given object as a DateFormat if Date is enabled or as a
DecimalFormat.
|
org.eclipse.draw2d.geometry.Dimension |
getDimension(java.lang.Object obj) |
org.eclipse.swt.graphics.Font |
getFont() |
org.eclipse.swt.graphics.Color |
getForegroundColor() |
double |
getLabel(double value)
If the scale has labels, this will return the label for the tick value,
otherwise returns the value given in parameter.
|
int |
getLength() |
double |
getMajorGridStep() |
int |
getMajorTickMarkStepHint() |
int |
getMargin() |
int |
getMinorTickMarkStepHint() |
Range |
getScaleRange() |
ITicksProvider |
getTicksProvider()
Gets the ticks provider
|
int |
getTimeUnit() |
boolean |
hasTicksAtEnds() |
boolean |
isAutoFormat() |
boolean |
isDateEnabled() |
boolean |
isHorizontal() |
boolean |
isLabelCustomised() |
boolean |
isLogScaleEnabled() |
boolean |
isPrimary() |
void |
setAutoFormat(boolean autoFormat) |
org.eclipse.swt.graphics.Font getFont()
org.eclipse.swt.graphics.Color getForegroundColor()
boolean isLogScaleEnabled()
Range getScaleRange()
boolean isDateEnabled()
java.lang.String format(java.lang.Object obj)
obj
- the objectjava.lang.String format(java.lang.Object obj, boolean minOrMaxDate)
obj
- the objectminOrMaxDate
- true if it is the min or max date on the scale.boolean isAutoFormat()
void setAutoFormat(boolean autoFormat)
autoFormat
- the autoFormat to setint getMargin()
boolean isHorizontal()
double getMajorGridStep()
int getMajorTickMarkStepHint()
int getMinorTickMarkStepHint()
int getTimeUnit()
int getLength()
org.eclipse.draw2d.geometry.Dimension getDimension(java.lang.Object obj)
obj
- boolean isPrimary()
boolean hasTicksAtEnds()
double getLabel(double value)
value
- boolean isLabelCustomised()
ITicksProvider getTicksProvider()