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 pFont, SampleStorage pSampleStorage)
  • Method Details

    • getWidth

      public int getWidth(int pMaxWidth)
    • drawChart

      public void drawChart(GuiGraphics pGuiGraphics, int pX, int pWidth)
    • drawDimensions

      protected void drawDimensions(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex)
    • drawMainDimension

      protected void drawMainDimension(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex)
    • drawAdditionalDimensions

      protected void drawAdditionalDimensions(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex)
    • getValueForAggregation

      protected long getValueForAggregation(int pIndex)
    • renderAdditionalLinesAndLabels

      protected void renderAdditionalLinesAndLabels(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight)
    • drawStringWithShade

      protected void drawStringWithShade(GuiGraphics pGuiGraphics, String pText, int pX, int pY)
    • toDisplayString

      protected abstract String toDisplayString(double pValue)
    • getSampleHeight

      protected abstract int getSampleHeight(double pValue)
    • getSampleColor

      protected abstract int getSampleColor(long pValue)
    • getSampleColor

      protected int getSampleColor(double pValue, double pMinPosition, int pMinColor, double pMidPosition, int pMidColor, double pMaxPosition, int pGuiGraphics)