public static class SpenObjectLine.Properties extends Object
SpenObjectLine.setConnectorPosition(int, PointF), SpenObjectLine.moveControlPoint(int, PointF),
SpenObjectLine.connect(int, SpenObjectShapeBase, int).SpenObjectLine.getProperties(),
SpenObjectLine.makePath(Properties)| Modifier and Type | Method and Description |
|---|---|
void |
setBeginConnector(PointF point,
RectF connectedShapeRect,
float connectedShapeDegree)
Set a begin connector position.
Set a begin connector position and connected info. |
void |
setControlPoint(int index,
PointF point)
Set a control point position.
|
void |
setEndConnector(PointF point,
RectF connectedShapeRect,
float connectedShapeDegree)
Set a end connector position.
Set a end connector position and connected info. |
void |
setRect(RectF rect)
Set the specified rectangle for the line.
Use this method to resize and move the line. |
public void setBeginConnector(PointF point, RectF connectedShapeRect, float connectedShapeDegree)
point - The new begin connector position.connectedShapeRect - The connected shape rect. If there is no connected shape, pass null.connectedShapeDegree - The connected shape rotation degree.IllegalArgumentException - Thrown if the line point is null.public void setEndConnector(PointF point, RectF connectedShapeRect, float connectedShapeDegree)
point - The new end connector position.connectedShapeRect - The connected shape rect. If there is no connected shape, pass null.connectedShapeDegree - The connected shape rotation degree.IllegalArgumentException - Thrown if the line point is null.public void setControlPoint(int index,
PointF point)
index - The index of control point.point - The new position of control point.IndexOutOfBoundsException - Thrown if the index is a negative value, or if it is greater than the number of
control
points of current line.IllegalArgumentException - Thrown if the point is null.public void setRect(RectF rect)
rect - The rectangle of region.IllegalArgumentException - Thrown if the rect is null.