public class GuiPaintable extends GuiElement
| Constructor and Description | 
|---|
| GuiPaintable(float x,
            float y,
            boolean relativeposition,
            float width,
            float height,
            boolean relativesize,
            int paintablewidth,
            int paintableheight)Deprecated.  Creates a new paintable component at the given screen position with the 
 given size. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | drawCircle(int x,
          int y,
          int radius,
          float r,
          float g,
          float b,
          float a)Deprecated.  | 
| void | drawCircle(int x,
          int y,
          int radius,
          int rgba)Deprecated.  | 
| void | drawLine(int x0,
        int y0,
        int x1,
        int y1,
        int thickness,
        float r,
        float g,
        float b,
        float a)Deprecated.  Draws a line between a start point and an end point. | 
| void | drawLine(int x0,
        int y0,
        int x1,
        int y1,
        int thickness,
        int rgba)Deprecated.  | 
| void | drawRectangle(int x0,
             int y0,
             int x1,
             int y1,
             float r,
             float g,
             float b,
             float a)Deprecated.  | 
| void | drawRectangle(int x0,
             int y0,
             int x1,
             int y1,
             int rgba)Deprecated.  | 
| void | fill(float r,
    float g,
    float b,
    float a)Deprecated.  Fills this element with the given color, i.e. sets every pixel to the
 given color. | 
| void | fill(int rgba)Deprecated.  | 
| int | getPaintableHeight()Deprecated.  | 
| int | getPaintableWidth()Deprecated.  | 
| boolean | isClickable()Deprecated.  | 
| void | setClickable(boolean set)Deprecated.  | 
| void | setRGBA(int x,
       int y,
       float r,
       float g,
       float b,
       float a)Deprecated.  Sets the rgba value at the given pixel x/y coordinate. | 
| void | setRGBA(int x,
       int y,
       int rgba)Deprecated.  Sets the rgba value at the given pixel x/y coordinate. | 
addChild, destroy, equals, getAlpha, getBorderColor, getBorderThickness, getChildren, getColor, getHeight, getHoverColor, getID, getParent, getParentID, getPivot, getPositionX, getPositionY, getWidth, hashCode, isAlwaysInBackground, isAlwaysOnTop, isRelativeBorderThickness, isRelativePosition, isRelativeSize, isVisible, onClick, refresh, removeAllChildren, removeChild, removeFromParent, setAlpha, setAlwaysInBackground, setAlwaysOnTop, setBorderColor, setBorderColor, setBorderThickness, setColor, setColor, setPivot, setPosition, setSize, setVisiblepublic GuiPaintable(float x,
                    float y,
                    boolean relativeposition,
                    float width,
                    float height,
                    boolean relativesize,
                    int paintablewidth,
                    int paintableheight)
x - the x screen position (horizontally).y - the y screen position (vertically).relativeposition - set to false to use absolute coordinates (i.e. pixel
 coordinates), or true to use relative coordinates (range between 0 and 1).width - the width of this element.height - the height of this element.relativesize - set to false to use absolute size values (i.e. pixel
 coordinates), or true to use relative size values (range between 0 and 1).paintablewidth - the (absolute) width of the paintable area (internal texture).paintableheight - the (absolute) height of the paintable area (internal texture).public void setClickable(boolean set)
public boolean isClickable()
isClickable in class GuiElementpublic int getPaintableWidth()
public int getPaintableHeight()
public void setRGBA(int x,
                    int y,
                    float r,
                    float g,
                    float b,
                    float a)
x - the (absolute) x pixel positiony - the (absolute) y pixel positionr - the red color value (0.0 - 1.0)g - the green color value (0.0 - 1.0)b - the blue color value (0.0 - 1.0)a - the alpha (opacity) value (0.0 - 1.0)public void setRGBA(int x,
                    int y,
                    int rgba)
x - the (absolute) x pixel positiony - the (absolute) y pixel positionrgba - the rgba int color value (hex 0xRRGGBBAA)public void fill(float r,
                 float g,
                 float b,
                 float a)
r - the red color value (0.0 - 1.0)g - the green color value (0.0 - 1.0)b - the blue color value (0.0 - 1.0)a - the alpha (opacity) value (0.0 - 1.0)public void fill(int rgba)
public void drawLine(int x0,
                     int y0,
                     int x1,
                     int y1,
                     int thickness,
                     float r,
                     float g,
                     float b,
                     float a)
x0 - start point x coordinate.y0 - start point y coordinate.x1 - end point x coordinate.y1 - end point y coordinate.thickness - the line thickness.r - the red color value (0.0 - 1.0)g - the green color value (0.0 - 1.0)b - the blue color value (0.0 - 1.0)a - the alpha (opacity) value (0.0 - 1.0)public void drawLine(int x0,
                     int y0,
                     int x1,
                     int y1,
                     int thickness,
                     int rgba)
public void drawRectangle(int x0,
                          int y0,
                          int x1,
                          int y1,
                          float r,
                          float g,
                          float b,
                          float a)
public void drawRectangle(int x0,
                          int y0,
                          int x1,
                          int y1,
                          int rgba)
public void drawCircle(int x,
                       int y,
                       int radius,
                       float r,
                       float g,
                       float b,
                       float a)
public void drawCircle(int x,
                       int y,
                       int radius,
                       int rgba)