public class GuiComponentColoredZone extends BaseComponent
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
color |
protected int |
height |
protected int |
width |
fontRenderer, keyboardEventListener, mouseEventListener, parent, toolTip, xPos, yPos
Constructor and Description |
---|
GuiComponentColoredZone(GuiBase<?> parent,
int x,
int y,
int w,
int h,
java.awt.Color color)
Creates the colored zone
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor() |
protected java.awt.Color |
getDynamicColor()
Override this to change the color
|
int |
getHeight()
Used to find how tall this is
|
int |
getWidth()
Used to find how wide this is
|
void |
render(int guiLeft,
int guiTop,
int mouseX,
int mouseY)
Called to render the component
|
void |
renderOverlay(int guiLeft,
int guiTop,
int mouseX,
int mouseY)
Called after base render, is already translated to guiLeft and guiTop, just move offset
|
void |
setColor(java.awt.Color color) |
void |
setHeight(int height) |
void |
setWidth(int width)
Accessors/Mutators *
|
getArea, getDynamicToolTip, getKeyboardEventListener, getMouseEventListener, getParent, getToolTip, getXPos, getYPos, isMouseOver, keyTyped, mouseDown, mouseDrag, mouseScrolled, mouseUp, renderToolTip, setKeyboardEventListener, setMouseEventListener, setParent, setToolTip, setXPos, setYPos
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, render, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected int width
protected int height
protected java.awt.Color color
public GuiComponentColoredZone(GuiBase<?> parent, int x, int y, int w, int h, java.awt.Color color)
parent
- The parent GUIx
- The x posy
- The y posw
- The widthh
- The heightcolor
- The colorprotected java.awt.Color getDynamicColor()
public void render(int guiLeft, int guiTop, int mouseX, int mouseY)
render
in class BaseComponent
public void renderOverlay(int guiLeft, int guiTop, int mouseX, int mouseY)
renderOverlay
in class BaseComponent
public int getWidth()
getWidth
in class BaseComponent
public int getHeight()
getHeight
in class BaseComponent
public void setWidth(int width)
public void setHeight(int height)
public java.awt.Color getColor()
public void setColor(java.awt.Color color)