Package com.ardor3d.util.stat.graph
Class TimedAreaGrapher
java.lang.Object
com.ardor3d.util.stat.graph.AbstractStatGrapher
com.ardor3d.util.stat.graph.TimedAreaGrapher
- All Implemented Interfaces:
TableLinkable
,StatListener
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected Node
protected Line
protected float
protected int
protected Line
static final StatType
static final StatType
Fields inherited from class com.ardor3d.util.stat.graph.AbstractStatGrapher
_config, _enabled, _gHeight, _gWidth, _texture, _textureRenderer
-
Constructor Summary
ConstructorDescriptionTimedAreaGrapher
(int width, int height, Renderer renderer, ContextCapabilities caps) -
Method Summary
Modifier and TypeMethodDescriptionint
void
reset()
Called when the graph needs to be reset back to the original display state.void
setThreshold
(int threshold) void
updateLineKey
(StatType type, Line lineKey) Update/Create a line to reflect the color, stipple, antialias and width used in the other graph.Methods inherited from class com.ardor3d.util.stat.graph.AbstractStatGrapher
addConfig, addConfig, clearConfig, clearConfig, clearConfig, getBooleanConfig, getColorConfig, getDoubleConfig, getFloatConfig, getIntConfig, getLongConfig, getShortConfig, getStringConfig, getTextureRenderer, hasConfig, isEnabled, setEnabled, setTexture
-
Field Details
-
Vertical
-
Horizontal
-
_graphRoot
-
_horizontals
-
_verticals
-
_eventCount
protected int _eventCount -
_threshold
protected int _threshold -
_startMarker
protected float _startMarker
-
-
Constructor Details
-
TimedAreaGrapher
-
-
Method Details
-
statsUpdated
public void statsUpdated()- Specified by:
statsUpdated
in interfaceStatListener
-
getThreshold
public int getThreshold() -
setThreshold
public void setThreshold(int threshold) -
updateLineKey
Description copied from interface:TableLinkable
Update/Create a line to reflect the color, stipple, antialias and width used in the other graph.- Specified by:
updateLineKey
in interfaceTableLinkable
- Parameters:
type
- the StatType the Line is associated with.lineKey
- the Line we want to update values on (if null, a new Line should be created.)- Returns:
- the updated (or created) Line
-
reset
public void reset()Description copied from class:AbstractStatGrapher
Called when the graph needs to be reset back to the original display state. (iow, remove all points, lines, etc.)- Specified by:
reset
in classAbstractStatGrapher
-