Package icyllis.arc3d.granite
Class SimpleShape
java.lang.Object
icyllis.arc3d.core.RoundRect
icyllis.arc3d.granite.SimpleShape
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Extends RoundRect::Type, adds three types of stroked lines.static final int
Extends RoundRect::Type, adds three types of stroked lines.Fields inherited from class icyllis.arc3d.core.RoundRect
kAlignOf, kComplex_Type, kEllipse_Type, kEmpty_Type, kLast_Type, kNineSlice_Type, kRect_Type, kSimple_Type, kSizeOf, mBottom, mLeft, mRadii, mRight, mTop, mType
-
Constructor Summary
-
Method Summary
Methods inherited from class icyllis.arc3d.core.RoundRect
bottom, centerX, centerY, equals, getRadii, getRect, getSimpleRadiusX, getSimpleRadiusY, getType, halfHeight, halfWidth, hashCode, height, isComplex, isEllipse, isEmpty, isNineSlice, isRect, isSimple, isValid, left, right, set, set, setEllipse, setEllipse, setEllipseXY, setEmpty, setNineSlice, setNineSlice, setRect, setRect, setRectXY, setRectXY, store, top, toString, width, x, y
-
Field Details
-
kLine_Type
public static final int kLine_TypeExtends RoundRect::Type, adds three types of stroked lines.LeftTop becomes the start point and RightBottom becomes the end point. RadiusUlx becomes half the line width.
- See Also:
-
kLineRound_Type
public static final int kLineRound_TypeExtends RoundRect::Type, adds three types of stroked lines.LeftTop becomes the start point and RightBottom becomes the end point. RadiusUlx becomes half the line width.
- See Also:
-
-
Constructor Details
-
SimpleShape
public SimpleShape() -
SimpleShape
-
SimpleShape
-
-
Method Details
-
setLine
public void setLine(float x0, float y0, float x1, float y1, float radius, boolean round) -
setLine
public void setLine(float x0, float y0, float x1, float y1, int cap, float width) -
getBounds
Description copied from class:RoundRect
Returns bounds. Bounds may have zero width or zero height. Bounds right is greater than or equal to left; bounds bottom is greater than or equal to top. Result is identical toRoundRect.getRect(icyllis.arc3d.core.Rect2f)
.
-