Interface IsDefaultScale
-
- All Known Implementing Classes:
AbstractScale
,DefaultChartScale
,DefaultScale
,ExtendedScale
,GlobalScale
,Scale
public interface IsDefaultScale
Interface to define scale/axis object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IsDefaultAdapters
getAdapters()
Returns the adapter defaults.IsDefaultAngleLines
getAngleLines()
Returns the angle lines default.String
getBackgroundColorAsString()
Returns the background color of the scale area.Bounds
getBounds()
Returns the property controls the scale boundary strategy (bypassed by min/max time options).Display
getDisplay()
Returns how showing the axis.int
getGrace()
Returns the value in pixels is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater.double
getGraceAsPercentage()
Returns the value in percentage, value between 0 and 1, is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater.IsDefaultGrid
getGrid()
Returns the grid defaults.double
getMax()
Returns the user defined maximum number for the scale, overrides maximum value from data.double
getMin()
Returns the user defined minimum number for the scale, overrides minimum value from data.IsDefaultPointLabels
getPointLabels()
Returns the point labels defaults.AxisPosition
getPosition()
An axis can either be positioned at the edge of the chart, at the center of the chart area, or dynamically with respect to a data value.
To position the axis at the edge of the chart, set the position option to one of: 'top', 'left', 'bottom', 'right'.
To position the axis at the center of the chart area, set the position option to 'center'.String
getStack()
Returns the stack group.
Axes at the same position with same stack are stacked.double
getStackWeight()
Returns the weight of the scale in stack group.
Used to determine the amount of allocated space for the scale within the group.double
getStartAngle()
Returns the starting angle to draw arcs for the first item in a dataset.double
getSuggestedMax()
Returns the adjustment used when calculating the maximum data value.double
getSuggestedMin()
Returns the adjustment used when calculating the minimum data value.IsDefaultTicks
getTicks()
Returns the ticks defaults.IsDefaultTime
getTime()
Returns the time defaults.IsDefaultScaleTitle
getTitle()
Returns the scale title defaultsdouble
getWeight()
The weight used to sort the axis.boolean
isAlignToPixels()
Returnstrue
to align pixel values to device pixels.boolean
isAnimate()
Returns whether to animate scaling the chart from the center.boolean
isBeginAtZero()
If true, scale will include 0 if it is not already included.boolean
isOffset()
If true, extra space is added to the both edges and the axis is scaled to fit in the chart area.boolean
isOffsetAfterAutoskip()
Iftrue
, bar chart offsets are computed with auto skipped ticks..boolean
isReverse()
Returns the reversed order of tick labels.boolean
isSingleStacked()
Returns if you might want to stack positive and negative values together.boolean
isStacked()
Returns if the axis are stacked or not.
-
-
-
Method Detail
-
getTitle
IsDefaultScaleTitle getTitle()
Returns the scale title defaults- Returns:
- the scale title defaults.
-
getTicks
IsDefaultTicks getTicks()
Returns the ticks defaults.- Returns:
- the ticks defaults.
-
getGrid
IsDefaultGrid getGrid()
Returns the grid defaults.- Returns:
- the grid defaults.
-
getAngleLines
IsDefaultAngleLines getAngleLines()
Returns the angle lines default.- Returns:
- the angleLines defaults.
-
getPointLabels
IsDefaultPointLabels getPointLabels()
Returns the point labels defaults.- Returns:
- the pointLabels defaults.
-
getTime
IsDefaultTime getTime()
Returns the time defaults.- Returns:
- the time defaults.
-
getAdapters
IsDefaultAdapters getAdapters()
Returns the adapter defaults.- Returns:
- the adapter defaults.
-
isBeginAtZero
boolean isBeginAtZero()
If true, scale will include 0 if it is not already included.- Returns:
- if true, scale will include 0 if it is not already included.
-
getGrace
int getGrace()
Returns the value in pixels is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater.- Returns:
- the value in pixels is added to the maximum data value and subtracted from the minimum data
-
getGraceAsPercentage
double getGraceAsPercentage()
Returns the value in percentage, value between 0 and 1, is added to the maximum data value and subtracted from the minimum data.
This extends the scale range as if the data values were that much greater.- Returns:
- the value in percentage is added to the maximum data value and subtracted from the minimum data
-
getMin
double getMin()
Returns the user defined minimum number for the scale, overrides minimum value from data.- Returns:
- the user defined minimum number for the scale, overrides minimum value from data.
-
getMax
double getMax()
Returns the user defined maximum number for the scale, overrides maximum value from data.- Returns:
- user defined maximum number for the scale, overrides maximum value from data.
-
getSuggestedMax
double getSuggestedMax()
Returns the adjustment used when calculating the maximum data value.- Returns:
- adjustment used when calculating the maximum data value.
-
getSuggestedMin
double getSuggestedMin()
Returns the adjustment used when calculating the minimum data value.- Returns:
- adjustment used when calculating the minimum data value.
-
isAlignToPixels
boolean isAlignToPixels()
Returnstrue
to align pixel values to device pixels.- Returns:
true
to align pixel values to device pixels
-
isReverse
boolean isReverse()
Returns the reversed order of tick labels.- Returns:
- reversed order of tick labels.
-
isStacked
boolean isStacked()
Returns if the axis are stacked or not.- Returns:
- if the axis are stacked or not.
-
isSingleStacked
boolean isSingleStacked()
Returns if you might want to stack positive and negative values together.- Returns:
- if you might want to stack positive and negative values together
-
getWeight
double getWeight()
The weight used to sort the axis. Higher weights are further away from the chart area.- Returns:
- weight of axis.
-
getDisplay
Display getDisplay()
Returns how showing the axis.- Returns:
- how showing the axis
-
isOffset
boolean isOffset()
If true, extra space is added to the both edges and the axis is scaled to fit in the chart area.- Returns:
- extra space of axis.
-
getPosition
AxisPosition getPosition()
An axis can either be positioned at the edge of the chart, at the center of the chart area, or dynamically with respect to a data value.
To position the axis at the edge of the chart, set the position option to one of: 'top', 'left', 'bottom', 'right'.
To position the axis at the center of the chart area, set the position option to 'center'.- Returns:
- position of axis.
-
getBounds
Bounds getBounds()
Returns the property controls the scale boundary strategy (bypassed by min/max time options).- Returns:
- property controls the scale boundary strategy (bypassed by min/max time options).
-
getStack
String getStack()
Returns the stack group.
Axes at the same position with same stack are stacked.- Returns:
- the stack group.
Axes at the same position with same stack are stacked
-
getStackWeight
double getStackWeight()
Returns the weight of the scale in stack group.
Used to determine the amount of allocated space for the scale within the group.- Returns:
- the weight of the scale in stack group.
Used to determine the amount of allocated space for the scale within the group
-
isAnimate
boolean isAnimate()
Returns whether to animate scaling the chart from the center.- Returns:
- whether to animate scaling the chart from the center.
-
getStartAngle
double getStartAngle()
Returns the starting angle to draw arcs for the first item in a dataset.- Returns:
- starting angle to draw arcs for the first item in a dataset.
-
getBackgroundColorAsString
String getBackgroundColorAsString()
Returns the background color of the scale area.- Returns:
- the background color of the scale area.
-
isOffsetAfterAutoskip
boolean isOffsetAfterAutoskip()
Iftrue
, bar chart offsets are computed with auto skipped ticks..- Returns:
- if
true
, bar chart offsets are computed with auto skipped ticks..
-
-