Class FastNumberTickUnit
java.lang.Object
org.jfree.chart.axis.TickUnit
org.jfree.chart.axis.NumberTickUnit
org.pentaho.plugin.jfreereport.reportcharts.backport.FastNumberTickUnit
- All Implemented Interfaces:
Serializable,Comparable
A numerical tick unit.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFastNumberTickUnit(double size) Creates a new number tick unit.FastNumberTickUnit(double size, org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter) Creates a new number tick unit.FastNumberTickUnit(double size, org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter, int minorTickCount) Creates a new number tick unit. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests this formatter for equality with an arbitrary object.inthashCode()Returns a hash code for this instance.toString()Returns a string representing this unit.valueToString(double value) Converts a value to a string.Methods inherited from class org.jfree.chart.axis.TickUnit
compareTo, getMinorTickCount, getSize
-
Constructor Details
-
FastNumberTickUnit
public FastNumberTickUnit(double size) Creates a new number tick unit.- Parameters:
size- the size of the tick unit.
-
FastNumberTickUnit
public FastNumberTickUnit(double size, org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter) Creates a new number tick unit.- Parameters:
size- the size of the tick unit.formatter- a number formatter for the tick unit (nullnot permitted).
-
FastNumberTickUnit
public FastNumberTickUnit(double size, org.pentaho.reporting.libraries.formatting.FastDecimalFormat formatter, int minorTickCount) Creates a new number tick unit.- Parameters:
size- the size of the tick unit.formatter- a number formatter for the tick unit (nullnot permitted).minorTickCount- the number of minor ticks.- Since:
- 1.0.7
-
-
Method Details
-
valueToString
Converts a value to a string.- Overrides:
valueToStringin classorg.jfree.chart.axis.NumberTickUnit- Parameters:
value- the value.- Returns:
- The formatted string.
-
equals
Tests this formatter for equality with an arbitrary object.- Overrides:
equalsin classorg.jfree.chart.axis.NumberTickUnit- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
toString
Returns a string representing this unit.- Overrides:
toStringin classorg.jfree.chart.axis.NumberTickUnit- Returns:
- A string.
-
hashCode
public int hashCode()Returns a hash code for this instance.- Overrides:
hashCodein classorg.jfree.chart.axis.NumberTickUnit- Returns:
- A hash code.
-