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 int
protected static final int
protected final Font
protected static final int
protected final SampleStorage
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractDebugChart
(Font font, SampleStorage sampleStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawAdditionalDimensions
(GuiGraphics guiGraphics, int height, int x, int index) void
drawChart
(GuiGraphics guiGraphics, int x, int width) protected void
drawDimensions
(GuiGraphics guiGraphics, int height, int x, int index) protected void
drawMainDimension
(GuiGraphics guiGraphics, int height, int x, int index) protected void
drawStringWithShade
(GuiGraphics guiGraphics, String text, int x, int y) protected int
getSampleColor
(double value, double minPosition, int minColor, double midPosition, int midColor, double maxPosition, int guiGraphics) protected abstract int
getSampleColor
(long value) protected abstract int
getSampleHeight
(double value) protected long
getValueForAggregation
(int index) int
getWidth
(int maxWidth) protected void
renderAdditionalLinesAndLabels
(GuiGraphics guiGraphics, int x, int width, int height) protected abstract String
toDisplayString
(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)
-