Class AbstractDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
- Direct Known Subclasses:
BandwidthDebugChart, FpsDebugChart, PingDebugChart, TpsDebugChart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected final Fontprotected static final intprotected final SampleStorage -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDebugChart(Font font, SampleStorage sampleStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextractAdditionalLinesAndLabels(GuiGraphicsExtractor graphics, int left, int width, int bottom) protected voidextractAdditionalSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) protected voidextractMainSampleBar(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) voidextractRenderState(GuiGraphicsExtractor graphics, int left, int width) protected voidextractSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) protected voidextractStringWithShade(GuiGraphicsExtractor graphics, String str, int x, int y) intprotected intgetSampleColor(double sample, double min, int minColor, double mid, int midColor, double max, int maxColor) protected abstract intgetSampleColor(long sample) protected abstract intgetSampleHeight(double sample) protected longgetValueForAggregation(int sampleIndex) intgetWidth(int maxWidth) protected abstract StringtoDisplayString(double sample)
-
Field Details
-
CHART_HEIGHT
protected static final int CHART_HEIGHT- See Also:
-
LINE_WIDTH
protected static final int LINE_WIDTH- See Also:
-
font
-
sampleStorage
-
-
Constructor Details
-
AbstractDebugChart
-
-
Method Details
-
getWidth
public int getWidth(int maxWidth) -
getFullHeight
public int getFullHeight() -
extractRenderState
-
extractSampleBars
protected void extractSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) -
extractMainSampleBar
protected void extractMainSampleBar(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) -
extractAdditionalSampleBars
protected void extractAdditionalSampleBars(GuiGraphicsExtractor graphics, int bottom, int currentX, int sampleIndex) -
getValueForAggregation
protected long getValueForAggregation(int sampleIndex) -
extractAdditionalLinesAndLabels
protected void extractAdditionalLinesAndLabels(GuiGraphicsExtractor graphics, int left, int width, int bottom) -
extractStringWithShade
-
toDisplayString
-
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)
-