Class AbstractStatGrapher

java.lang.Object
com.ardor3d.util.stat.graph.AbstractStatGrapher
All Implemented Interfaces:
StatListener
Direct Known Subclasses:
LineGrapher, TabledLabelGrapher, TimedAreaGrapher

public abstract class AbstractStatGrapher extends Object implements StatListener
Base class for graphers.
  • Field Details

  • Constructor Details

    • AbstractStatGrapher

      public AbstractStatGrapher(int width, int height, Renderer renderer, ContextCapabilities caps)
      Must be constructed in the GL thread.
      Parameters:
      width - width
      height - height
      renderer - GL renderer
      caps - context capabilities
  • Method Details

    • setTexture

      public void setTexture(Texture2D tex)
    • getTextureRenderer

      public TextureRenderer getTextureRenderer()
    • clearConfig

      public void clearConfig()
    • clearConfig

      public void clearConfig(StatType type)
    • clearConfig

      public void clearConfig(StatType type, String key)
    • addConfig

      public void addConfig(StatType type, HashMap<String,Object> configs)
    • addConfig

      public void addConfig(StatType type, String key, Object value)
    • getColorConfig

      protected ColorRGBA getColorConfig(StatType type, String configName, ColorRGBA defaultVal)
    • getStringConfig

      protected String getStringConfig(StatType type, String configName, String defaultVal)
    • getShortConfig

      protected short getShortConfig(StatType type, String configName, short defaultVal)
    • getIntConfig

      protected int getIntConfig(StatType type, String configName, int defaultVal)
    • getLongConfig

      protected long getLongConfig(StatType type, String configName, long defaultVal)
    • getFloatConfig

      protected float getFloatConfig(StatType type, String configName, float defaultVal)
    • getDoubleConfig

      protected double getDoubleConfig(StatType type, String configName, double defaultVal)
    • getBooleanConfig

      protected boolean getBooleanConfig(StatType type, String configName, boolean defaultVal)
    • hasConfig

      public boolean hasConfig(StatType type)
    • 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.)