Figure
Inheritance: java.lang.Object, com.aspose.psd.ObjectWithBounds
public class Figure extends ObjectWithBounds
The figure. A container for shapes.
Constructors
Constructor | Description |
---|---|
Figure() |
Methods
Method | Description |
---|---|
addShape(Shape shape) | Adds a shape to the figure. |
addShapes(Shape[] shapes) | Adds a range of shapes to the figure. |
equals(Object arg0) | |
getBounds() | Gets or sets the object’s bounds. |
getBounds(Matrix matrix) | Gets the object’s bounds. |
getBounds(Matrix matrix, Pen pen) | Gets the object’s bounds. |
getClass() | |
getSegments() | Gets the whole figure segments. |
getShapes() | Gets the figure shapes. |
hashCode() | |
isClosed() | Gets a value indicating whether this figure is closed. |
notify() | |
notifyAll() | |
removeShape(Shape shape) | Removes a shape from the figure. |
removeShapes(Shape[] shapes) | Removes a range of shapes from the figure. |
reverse() | Reverses this figure shapes order and shapes point order. |
setClosed(boolean value) | Sets a value indicating whether this figure is closed. |
toString() | |
transform(Matrix transform) | Applies the specified transformation to the shape. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Figure()
public Figure()
addShape(Shape shape)
public void addShape(Shape shape)
Adds a shape to the figure.
Parameters:
Parameter | Type | Description |
---|---|---|
shape | Shape | The shape to add. |
addShapes(Shape[] shapes)
public void addShapes(Shape[] shapes)
Adds a range of shapes to the figure.
Parameters:
Parameter | Type | Description |
---|---|---|
shapes | Shape[] | The shapes to add. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getBounds()
public RectangleF getBounds()
Gets or sets the object’s bounds.
Returns: RectangleF - The object’s bounds.
getBounds(Matrix matrix)
public RectangleF getBounds(Matrix matrix)
Gets the object’s bounds.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The matrix to apply before bounds will be calculated. |
Returns: RectangleF - The estimated object’s bounds.
getBounds(Matrix matrix, Pen pen)
public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object’s bounds.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The matrix to apply before bounds will be calculated. |
pen | Pen | The pen to use for object. This can influence the object’s bounds size. |
Returns: RectangleF - The estimated object’s bounds.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getSegments()
public ShapeSegment[] getSegments()
Gets the whole figure segments.
Returns: com.aspose.psd.ShapeSegment[] - The figure segments.
getShapes()
public Shape[] getShapes()
Gets the figure shapes.
Returns: com.aspose.psd.Shape[] - The figure shapes.
hashCode()
public native int hashCode()
Returns: int
isClosed()
public boolean isClosed()
Gets a value indicating whether this figure is closed. A closed figure will make a difference only in case where the first and the last figure’s shapes are continuous shapes. In such case the first point of the first shape will be connected by a straight line from the last point of the last shape.
Returns: boolean - True if this figure is closed; otherwise, false .
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
removeShape(Shape shape)
public void removeShape(Shape shape)
Removes a shape from the figure.
Parameters:
Parameter | Type | Description |
---|---|---|
shape | Shape | The shape to remove. |
removeShapes(Shape[] shapes)
public void removeShapes(Shape[] shapes)
Removes a range of shapes from the figure.
Parameters:
Parameter | Type | Description |
---|---|---|
shapes | Shape[] | The shapes range to remove. |
reverse()
public void reverse()
Reverses this figure shapes order and shapes point order.
setClosed(boolean value)
public void setClosed(boolean value)
Sets a value indicating whether this figure is closed. A closed figure will make a difference only in case where the first and the last figure’s shapes are continuous shapes. In such case the first point of the first shape will be connected by a straight line from the last point of the last shape.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | True if this figure is closed; otherwise, false . |
toString()
public String toString()
Returns: java.lang.String
transform(Matrix transform)
public void transform(Matrix transform)
Applies the specified transformation to the shape.
Parameters:
Parameter | Type | Description |
---|---|---|
transform | Matrix | The transformation to apply. |
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |