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 pFont, SampleStorage pSampleStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawAdditionalDimensions
(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex) void
drawChart
(GuiGraphics pGuiGraphics, int pX, int pWidth) protected void
drawDimensions
(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex) protected void
drawMainDimension
(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex) protected void
drawStringWithShade
(GuiGraphics pGuiGraphics, String pText, int pX, int pY) protected int
getSampleColor
(double pValue, double pMinPosition, int pMinColor, double pMidPosition, int pMidColor, double pMaxPosition, int pGuiGraphics) protected abstract int
getSampleColor
(long pValue) protected abstract int
getSampleHeight
(double pValue) protected long
getValueForAggregation
(int pIndex) int
getWidth
(int pMaxWidth) protected void
renderAdditionalLinesAndLabels
(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight) protected abstract String
toDisplayString
(double pValue)
-
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 pMaxWidth) -
drawChart
-
drawDimensions
-
drawMainDimension
-
drawAdditionalDimensions
-
getValueForAggregation
protected long getValueForAggregation(int pIndex) -
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight) -
drawStringWithShade
-
toDisplayString
-
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)
-