Class DisplayFormats
- java.lang.Object
-
- org.pepstock.charba.client.configuration.DisplayFormats
-
public class DisplayFormats extends Object
The display formats are used to configure how different time units are formed in the strings for the axis tick marks.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Axis
getAxis()
Returns the axis instance.String
getDisplayFormat(TimeUnit unit)
Returns the display formats are used to configure how different time units are formed in the strings for the axis tick marks.void
setDisplayFormat(TimeUnit unit, String format)
Sets the display formats are used to configure how different time units are formed in the strings for the axis tick marks.
-
-
-
Method Detail
-
setDisplayFormat
public void setDisplayFormat(TimeUnit unit, String format)
Sets the display formats are used to configure how different time units are formed in the strings for the axis tick marks.- Parameters:
unit
- time unit.format
- display format
-
getDisplayFormat
public String getDisplayFormat(TimeUnit unit)
Returns the display formats are used to configure how different time units are formed in the strings for the axis tick marks.- Parameters:
unit
- time unit.- Returns:
- display format
-
getAxis
public final Axis getAxis()
Returns the axis instance.- Returns:
- the axis
-
-