Class BandwidthDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.BandwidthDebugChart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intFields inherited from class AbstractDebugChart
CHART_HEIGHT, font, LINE_WIDTH, sampleStorage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawLabeledLineAtValue(GuiGraphics graphics, int left, int width, int bottom, int bytesPerSecond) private voiddrawLineWithLabel(GuiGraphics graphics, int x, int width, int y, String label) protected intgetSampleColor(long bytesPerTick) protected intgetSampleHeight(double bytesPerTick) private static intgetSampleHeightInternal(double bytesPerSecond) protected voidrenderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom) private static doubletoBytesPerSecond(double bytesPerTick) protected StringtoDisplayString(double bytesPerTick) private static StringtoDisplayStringInternal(double bytesPerSecond) Methods inherited from class AbstractDebugChart
drawAdditionalDimensions, drawChart, drawDimensions, drawMainDimension, drawStringWithShade, getFullHeight, getSampleColor, getValueForAggregation, getWidth
-
Field Details
-
MIN_COLOR
private static final int MIN_COLOR- See Also:
-
MID_COLOR
private static final int MID_COLOR- See Also:
-
MAX_COLOR
private static final int MAX_COLOR- See Also:
-
KILOBYTE
private static final int KILOBYTE- See Also:
-
MEGABYTE
private static final int MEGABYTE- See Also:
-
CHART_TOP_VALUE
private static final int CHART_TOP_VALUE- See Also:
-
-
Constructor Details
-
BandwidthDebugChart
-
-
Method Details
-
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom) - Overrides:
renderAdditionalLinesAndLabelsin classAbstractDebugChart
-
drawLabeledLineAtValue
private void drawLabeledLineAtValue(GuiGraphics graphics, int left, int width, int bottom, int bytesPerSecond) -
drawLineWithLabel
-
toDisplayString
- Specified by:
toDisplayStringin classAbstractDebugChart
-
toDisplayStringInternal
-
getSampleHeight
protected int getSampleHeight(double bytesPerTick) - Specified by:
getSampleHeightin classAbstractDebugChart
-
getSampleHeightInternal
private static int getSampleHeightInternal(double bytesPerSecond) -
getSampleColor
protected int getSampleColor(long bytesPerTick) - Specified by:
getSampleColorin classAbstractDebugChart
-
toBytesPerSecond
private static double toBytesPerSecond(double bytesPerTick)
-