public class DataHandlerRenderer extends Object implements DataRenderer<DataHandler<?>>
DataRenderer
for DataHandler
s.Constructor and Description |
---|
DataHandlerRenderer(DataHandlerDescriptorRegistry dataHandlerDescriptorRegistry,
int graphicSize)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
Node |
getGraphic(DataHandler<?> item)
Gets a graphical representation of the item.
|
List<String> |
getStyleClass()
Gets all possible style classes for any item.
|
List<String> |
getStyleClass(DataHandler<?> item)
Gets a list of style classes for the specified item.
|
String |
getText(DataHandler<?> item)
Gets a text representation of the item.
|
Tooltip |
getTooltip(DataHandler<?> item) |
public DataHandlerRenderer(DataHandlerDescriptorRegistry dataHandlerDescriptorRegistry, int graphicSize)
dataHandlerDescriptorRegistry
- the DataHandlerDescriptorRegistry to get some meta data of the DataHandlergraphicSize
- the graphicSize used in the given contextpublic String getText(DataHandler<?> item)
getText
in interface DataRenderer<DataHandler<?>>
item
- the item to renderpublic Node getGraphic(DataHandler<?> item)
getGraphic
in interface DataRenderer<DataHandler<?>>
item
- the item to renderpublic Tooltip getTooltip(DataHandler<?> item)
getTooltip
in interface DataRenderer<DataHandler<?>>
public List<String> getStyleClass(DataHandler<?> item)
getStyleClass
in interface DataRenderer<DataHandler<?>>
item
- the item to renderpublic List<String> getStyleClass()
getStyleClass
in interface DataRenderer<DataHandler<?>>
Copyright © 2012–2019 Drombler. All rights reserved.