Class AbstractDebugChart

java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
Direct Known Subclasses:
BandwidthDebugChart, FpsDebugChart, PingDebugChart, TpsDebugChart

public abstract class AbstractDebugChart extends Object
  • Field Details

  • Constructor Details

    • AbstractDebugChart

      protected AbstractDebugChart(Font font, SampleStorage sampleStorage)
  • Method Details

    • getWidth

      public int getWidth(int maxWidth)
    • getFullHeight

      public int getFullHeight()
    • drawChart

      public void drawChart(GuiGraphics graphics, int left, int width)
    • drawDimensions

      protected void drawDimensions(GuiGraphics graphics, int bottom, int currentX, int sampleIndex)
    • drawMainDimension

      protected void drawMainDimension(GuiGraphics graphics, int bottom, int currentX, int sampleIndex)
    • drawAdditionalDimensions

      protected void drawAdditionalDimensions(GuiGraphics graphics, int bottom, int currentX, int sampleIndex)
    • getValueForAggregation

      protected long getValueForAggregation(int sampleIndex)
    • renderAdditionalLinesAndLabels

      protected void renderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom)
    • drawStringWithShade

      protected void drawStringWithShade(GuiGraphics graphics, String str, int x, int y)
    • toDisplayString

      protected abstract String toDisplayString(double sample)
    • getSampleHeight

      protected abstract int getSampleHeight(double sample)
    • getSampleColor

      protected abstract int getSampleColor(long sample)
    • getSampleColor

      protected int getSampleColor(double sample, double min, int minColor, double mid, int midColor, double max, int maxColor)