T
- the number type of the data to renderpublic class WholeNumberRenderer<T extends Number & Comparable<T>> extends FormatterDataRenderer<T>
DataRenderer
for whole numbers. This renderer provides no graphical
representations by default.Constructor and Description |
---|
WholeNumberRenderer(NumberFormat numberFormat,
T zero)
Creates a new instance of this class.
|
WholeNumberRenderer(T zero)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getStyleClass()
Gets all possible style classes for any item.
|
List<String> |
getStyleClass(T item)
Gets a ["number"] for numbers with value zero or greater and ["number",
"negative-number"] for numbers with values less than zero.
|
getText
getGraphic
public WholeNumberRenderer(T zero)
zero
- the zero representation of the used number typepublic WholeNumberRenderer(NumberFormat numberFormat, T zero)
numberFormat
- A NumberFormat
used to format the numberszero
- the zero representation of the used number typepublic List<String> getStyleClass()
getStyleClass
in interface DataRenderer<T extends Number & Comparable<T>>
getStyleClass
in class AbstractDataRenderer<T extends Number & Comparable<T>>
getStyleClass()
public List<String> getStyleClass(T item)
getStyleClass
in interface DataRenderer<T extends Number & Comparable<T>>
getStyleClass
in class AbstractDataRenderer<T extends Number & Comparable<T>>
item
- the item to renderCopyright © 2012-2013 Drombler. All Rights Reserved.