Package icyllis.arc3d.granite
Class SimpleShape
java.lang.Object
icyllis.arc3d.sketch.RRect
icyllis.arc3d.granite.SimpleShape
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Extends RRect::Type, adds three types of stroked lines.static final int
Extends RRect::Type, adds three types of stroked lines.Fields inherited from class icyllis.arc3d.sketch.RRect
kAlignOf, kComplex_Type, kEmpty_Type, kLast_Type, kLowerLeftX, kLowerLeftY, kLowerRightX, kLowerRightY, kNineSlice_Type, kOval_Type, kRect_Type, kSimple_Type, kSizeOf, kUpperLeftX, kUpperLeftY, kUpperRightX, kUpperRightY, mBottom, mLeft, mRadii, mRight, mTop, mType
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class icyllis.arc3d.sketch.RRect
allCornersAreCircular, bottom, centerX, centerY, equals, getRadii, getRadius, getRect, getSimpleRadiusX, getSimpleRadiusY, getType, halfHeight, halfWidth, hashCode, height, isComplex, isEmpty, isNineSlice, isOval, isRect, isSimple, isValid, left, right, set, set, setEllipse, setEmpty, setNineSlice, setNineSlice, setOval, setOval, setRect, setRect, setRectRadii, setRectRadii, setRectXY, setRectXY, store, top, toString, width, x, y
-
Field Details
-
kLine_Type
public static final int kLine_TypeExtends RRect::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 RRect::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:RRect
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 toRRect.getRect(icyllis.arc3d.core.Rect2f)
.
-