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 pFont, SampleStorage pSampleStorage) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawAdditionalDimensions(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex) voiddrawChart(GuiGraphics pGuiGraphics, int pX, int pWidth) protected voiddrawDimensions(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex) protected voiddrawMainDimension(GuiGraphics pGuiGraphics, int pHeight, int pX, int pIndex) protected voiddrawStringWithShade(GuiGraphics pGuiGraphics, String pText, int pX, int pY) intprotected intgetSampleColor(double pValue, double pMinPosition, int pMinColor, double pMidPosition, int pMidColor, double pMaxPosition, int pGuiGraphics) protected abstract intgetSampleColor(long pValue) protected abstract intgetSampleHeight(double pValue) protected longgetValueForAggregation(int pIndex) intgetWidth(int pMaxWidth) protected voidrenderAdditionalLinesAndLabels(GuiGraphics pGuiGraphics, int pX, int pWidth, int pHeight) protected abstract StringtoDisplayString(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) -
getFullHeight
public int getFullHeight() -
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)
-