-
public final class VerticalAxis.Builder<Position extends AxisPosition.Vertical> extends Axis.Builder<Position>
A subclass of Axis.Builder used to build VerticalAxis instances.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegermaxLabelCountprivate FloatlabelSpacingprivate VerticalAxis.HorizontalLabelPositionhorizontalLabelPositionprivate VerticalAxis.VerticalLabelPositionverticalLabelPositionprivate TextComponentlabelprivate LineComponentaxisprivate LineComponenttickprivate FloattickLengthDpprivate LineComponentguidelineprivate AxisValueFormatter<Position>valueFormatterprivate Axis.SizeConstraintsizeConstraintprivate TextComponenttitleComponentprivate CharSequencetitleprivate FloatlabelRotationDegrees
-
Constructor Summary
Constructors Constructor Description VerticalAxis.Builder(Axis.Builder<Position> builder)
-
Method Summary
Modifier and Type Method Description final IntegergetMaxLabelCount()The maximum label count. final UnitsetMaxLabelCount(Integer maxLabelCount)The maximum label count. final FloatgetLabelSpacing()The label spacing (in dp). final UnitsetLabelSpacing(Float labelSpacing)The label spacing (in dp). final VerticalAxis.HorizontalLabelPositiongetHorizontalLabelPosition()Defines the horizontal position of each axis label relative to the axis line. final UnitsetHorizontalLabelPosition(VerticalAxis.HorizontalLabelPosition horizontalLabelPosition)Defines the horizontal position of each axis label relative to the axis line. final VerticalAxis.VerticalLabelPositiongetVerticalLabelPosition()Defines the vertical position of each axis label relative to its corresponding tick. final UnitsetVerticalLabelPosition(VerticalAxis.VerticalLabelPosition verticalLabelPosition)Defines the vertical position of each axis label relative to its corresponding tick. final TextComponentgetLabel()The TextComponent to use for labels. final UnitsetLabel(TextComponent label)The TextComponent to use for labels. final LineComponentgetAxis()The LineComponent to use for the axis line. final UnitsetAxis(LineComponent axis)The LineComponent to use for the axis line. final LineComponentgetTick()The LineComponent to use for axis ticks. final UnitsetTick(LineComponent tick)The LineComponent to use for axis ticks. final FloatgetTickLengthDp()The tick length (in dp). final UnitsetTickLengthDp(Float tickLengthDp)The tick length (in dp). final LineComponentgetGuideline()The LineComponent to use for guidelines. final UnitsetGuideline(LineComponent guideline)The LineComponent to use for guidelines. final AxisValueFormatter<Position>getValueFormatter()The AxisValueFormatter for the axis. final UnitsetValueFormatter(AxisValueFormatter<Position> valueFormatter)The AxisValueFormatter for the axis. final Axis.SizeConstraintgetSizeConstraint()Used by Axis subclasses for sizing and layout. final UnitsetSizeConstraint(Axis.SizeConstraint sizeConstraint)Used by Axis subclasses for sizing and layout. final TextComponentgetTitleComponent()An optional TextComponent to use as the axis title. final UnitsetTitleComponent(TextComponent titleComponent)An optional TextComponent to use as the axis title. final CharSequencegetTitle()The axis title. final UnitsetTitle(CharSequence title)The axis title. final FloatgetLabelRotationDegrees()The rotation of axis labels (in degrees). final UnitsetLabelRotationDegrees(Float labelRotationDegrees)The rotation of axis labels (in degrees). final <T extends Position> VerticalAxis<T>build()Creates a VerticalAxis instance with the properties from this Builder. -
-
Constructor Detail
-
VerticalAxis.Builder
VerticalAxis.Builder(Axis.Builder<Position> builder)
-
-
Method Detail
-
getMaxLabelCount
final Integer getMaxLabelCount()
The maximum label count.
-
setMaxLabelCount
final Unit setMaxLabelCount(Integer maxLabelCount)
The maximum label count.
-
getLabelSpacing
final Float getLabelSpacing()
The label spacing (in dp).
-
setLabelSpacing
final Unit setLabelSpacing(Float labelSpacing)
The label spacing (in dp).
-
getHorizontalLabelPosition
final VerticalAxis.HorizontalLabelPosition getHorizontalLabelPosition()
Defines the horizontal position of each axis label relative to the axis line.
-
setHorizontalLabelPosition
final Unit setHorizontalLabelPosition(VerticalAxis.HorizontalLabelPosition horizontalLabelPosition)
Defines the horizontal position of each axis label relative to the axis line.
-
getVerticalLabelPosition
final VerticalAxis.VerticalLabelPosition getVerticalLabelPosition()
Defines the vertical position of each axis label relative to its corresponding tick.
-
setVerticalLabelPosition
final Unit setVerticalLabelPosition(VerticalAxis.VerticalLabelPosition verticalLabelPosition)
Defines the vertical position of each axis label relative to its corresponding tick.
-
getLabel
final TextComponent getLabel()
The TextComponent to use for labels.
-
setLabel
final Unit setLabel(TextComponent label)
The TextComponent to use for labels.
-
getAxis
final LineComponent getAxis()
The LineComponent to use for the axis line.
-
setAxis
final Unit setAxis(LineComponent axis)
The LineComponent to use for the axis line.
-
getTick
final LineComponent getTick()
The LineComponent to use for axis ticks.
-
setTick
final Unit setTick(LineComponent tick)
The LineComponent to use for axis ticks.
-
getTickLengthDp
final Float getTickLengthDp()
The tick length (in dp).
-
setTickLengthDp
final Unit setTickLengthDp(Float tickLengthDp)
The tick length (in dp).
-
getGuideline
final LineComponent getGuideline()
The LineComponent to use for guidelines.
-
setGuideline
final Unit setGuideline(LineComponent guideline)
The LineComponent to use for guidelines.
-
getValueFormatter
final AxisValueFormatter<Position> getValueFormatter()
The AxisValueFormatter for the axis.
-
setValueFormatter
final Unit setValueFormatter(AxisValueFormatter<Position> valueFormatter)
The AxisValueFormatter for the axis.
-
getSizeConstraint
final Axis.SizeConstraint getSizeConstraint()
Used by Axis subclasses for sizing and layout.
-
setSizeConstraint
final Unit setSizeConstraint(Axis.SizeConstraint sizeConstraint)
Used by Axis subclasses for sizing and layout.
-
getTitleComponent
final TextComponent getTitleComponent()
An optional TextComponent to use as the axis title.
-
setTitleComponent
final Unit setTitleComponent(TextComponent titleComponent)
An optional TextComponent to use as the axis title.
-
getTitle
final CharSequence getTitle()
The axis title.
-
setTitle
final Unit setTitle(CharSequence title)
The axis title.
-
getLabelRotationDegrees
final Float getLabelRotationDegrees()
The rotation of axis labels (in degrees).
-
setLabelRotationDegrees
final Unit setLabelRotationDegrees(Float labelRotationDegrees)
The rotation of axis labels (in degrees).
-
build
final <T extends Position> VerticalAxis<T> build()
Creates a VerticalAxis instance with the properties from this Builder.
-
-
-
-