public abstract class GuiShape extends Shape
Modifier and Type | Class and Description |
---|---|
static class |
GuiShape.GuiFace |
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate
faces, mergedVertexes, transformMatrix
Constructor and Description |
---|
GuiShape(Face... faces) |
GuiShape(int faceCount) |
Modifier and Type | Method and Description |
---|---|
void |
rotate(float angle) |
void |
rotate(float angle,
float x,
float y,
float z)
Rotates this
Shape around the given axis the specified angle. |
void |
scale(float scale)
Scales this
Shape on all axis. |
abstract void |
scale(float x,
float y) |
void |
setPosition(int x,
int y) |
abstract void |
setSize(int width,
int height) |
void |
translate(float x,
float y,
float z)
Translates this
Shape . |
void |
translate(int x,
int y) |
addFaces, addFaces, applyMatrix, copyMatrix, deductParameters, enableMergedVertexes, fromShapes, getFace, getFaces, getFaces, getMergedVertex, getMergedVertexes, getMergedVertexes, getMergedVertexes, getVertexes, getVertexes, getVertexes, interpolateUV, limit, limit, removeFace, resetState, rotate, scale, scale, setBounds, setParameters, setParameters, setSize, shrink, storeState
public GuiShape(Face... faces)
public GuiShape(int faceCount)
public void setPosition(int x, int y)
public void translate(float x, float y, float z)
Shape
Shape
.translate
in interface ITransformable.Translate
translate
in class Shape
x
- the xy
- the yz
- the zpublic void translate(int x, int y)
public void rotate(float angle, float x, float y, float z)
Shape
Shape
around the given axis the specified angle.public void rotate(float angle)
public void scale(float scale)
Shape
Shape
on all axis.public abstract void setSize(int width, int height)
public abstract void scale(float x, float y)