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 static final intprotected final Fontprotected static final intprotected final SampleStorage -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDebugChart(Font font, SampleStorage sampleStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawAdditionalDimensions(GuiGraphics guiGraphics, int height, int x, int index) voiddrawChart(GuiGraphics guiGraphics, int x, int width) protected voiddrawDimensions(GuiGraphics guiGraphics, int height, int x, int index) protected voiddrawMainDimension(GuiGraphics guiGraphics, int height, int x, int index) protected voiddrawStringWithShade(GuiGraphics guiGraphics, String text, int x, int y) protected intgetSampleColor(double value, double minPosition, int minColor, double midPosition, int midColor, double maxPosition, int guiGraphics) protected abstract intgetSampleColor(long value) protected abstract intgetSampleHeight(double value) protected longgetValueForAggregation(int index) intgetWidth(int maxWidth) protected voidrenderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int x, int width, int height) protected abstract StringtoDisplayString(double value)
-
Field Details
-
COLOR_GREY
protected static final int COLOR_GREY- See Also:
-
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) -
drawChart
-
drawDimensions
-
drawMainDimension
-
drawAdditionalDimensions
-
getValueForAggregation
protected long getValueForAggregation(int index) -
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int x, int width, int height) -
drawStringWithShade
-
toDisplayString
-
getSampleHeight
protected abstract int getSampleHeight(double value) -
getSampleColor
protected abstract int getSampleColor(long value) -
getSampleColor
protected int getSampleColor(double value, double minPosition, int minColor, double midPosition, int midColor, double maxPosition, int guiGraphics)
-