Package com.ardor3d.util.stat.graph
Class AbstractStatGrapher
java.lang.Object
com.ardor3d.util.stat.graph.AbstractStatGrapher
- All Implemented Interfaces:
StatListener
- Direct Known Subclasses:
LineGrapher
,TabledLabelGrapher
,TimedAreaGrapher
Base class for graphers.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractStatGrapher
(int width, int height, Renderer renderer, ContextCapabilities caps) Must be constructed in the GL thread. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
clearConfig
(StatType type) void
clearConfig
(StatType type, String key) protected boolean
getBooleanConfig
(StatType type, String configName, boolean defaultVal) protected ColorRGBA
getColorConfig
(StatType type, String configName, ColorRGBA defaultVal) protected double
getDoubleConfig
(StatType type, String configName, double defaultVal) protected float
getFloatConfig
(StatType type, String configName, float defaultVal) protected int
getIntConfig
(StatType type, String configName, int defaultVal) protected long
getLongConfig
(StatType type, String configName, long defaultVal) protected short
getShortConfig
(StatType type, String configName, short defaultVal) protected String
getStringConfig
(StatType type, String configName, String defaultVal) boolean
boolean
abstract void
reset()
Called when the graph needs to be reset back to the original display state.void
setEnabled
(boolean enabled) void
setTexture
(Texture2D tex) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ardor3d.util.stat.StatListener
statsUpdated
-
Field Details
-
_textureRenderer
-
_texture
-
_gWidth
protected int _gWidth -
_gHeight
protected int _gHeight -
_config
-
_enabled
protected boolean _enabled
-
-
Constructor Details
-
AbstractStatGrapher
Must be constructed in the GL thread.- Parameters:
width
- widthheight
- heightrenderer
- GL renderercaps
- context capabilities
-
-
Method Details
-
setTexture
-
getTextureRenderer
-
clearConfig
public void clearConfig() -
clearConfig
-
clearConfig
-
addConfig
-
addConfig
-
getColorConfig
-
getStringConfig
-
getShortConfig
-
getIntConfig
-
getLongConfig
-
getFloatConfig
-
getDoubleConfig
-
getBooleanConfig
-
hasConfig
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
reset
public abstract void reset()Called when the graph needs to be reset back to the original display state. (iow, remove all points, lines, etc.)
-