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 voiddrawAdditionalDimensions(GuiGraphics graphics, int bottom, int currentX, int sampleIndex) voiddrawChart(GuiGraphics graphics, int left, int width) protected voiddrawDimensions(GuiGraphics graphics, int bottom, int currentX, int sampleIndex) protected voiddrawMainDimension(GuiGraphics graphics, int bottom, int currentX, int sampleIndex) protected voiddrawStringWithShade(GuiGraphics 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 voidrenderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom) 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() -
drawChart
-
drawDimensions
-
drawMainDimension
-
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
-
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)
-