|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.ObjectWithBounds
com.aspose.imaging.Figure
public class Figure
The figure. A container for shapes.
Constructor Summary | |
---|---|
Figure()
|
Method Summary | |
---|---|
void |
addShape(Shape shape)
Adds a shape to the figure. |
void |
addShapes(Shape[] shapes)
Adds a range of shapes to the figure. |
RectangleF |
getBounds()
Gets or sets the object's bounds. |
RectangleF |
getBounds(Matrix matrix)
Gets the object's bounds. |
RectangleF |
getBounds(Matrix matrix,
Pen pen)
Gets the object's bounds. |
ShapeSegment[] |
getSegments()
Gets the whole figure segments. |
Shape[] |
getShapes()
Gets the figure shapes. |
boolean |
isClosed()
Gets a value indicating whether this figure is closed. |
void |
isClosed(boolean value)
Sets a value indicating whether this figure is closed. |
void |
removeShape(Shape shape)
Removes a shape from the figure. |
void |
removeShapes(Shape[] shapes)
Removes a range of shapes from the figure. |
void |
reverse()
Reverses this figure shapes order and shapes point order. |
void |
transform(Matrix transform)
Applies the specified transformation to the shape. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Figure()
Method Detail |
---|
public void addShape(Shape shape)
Adds a shape to the figure.
shape
- The shape to add.public void addShapes(Shape[] shapes)
Adds a range of shapes to the figure.
shapes
- The shapes to add.public RectangleF getBounds()
Gets or sets the object's bounds.
Value: The object's bounds.
getBounds
in class ObjectWithBounds
public RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds
in class ObjectWithBounds
matrix
- The matrix to apply before bounds will be calculated.
public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object's bounds.
getBounds
in class ObjectWithBounds
matrix
- The matrix to apply before bounds will be calculated.pen
- The pen to use for object. This can influence the object's bounds size.
public ShapeSegment[] getSegments()
Gets the whole figure segments.
Value: The figure segments.
public Shape[] getShapes()
Gets the figure shapes.
Value: The figure shapes.
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.
Value:True
if this figure is closed; otherwise, false
.
public void isClosed(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.
Value:True
if this figure is closed; otherwise, false
.
public void removeShape(Shape shape)
Removes a shape from the figure.
shape
- The shape to remove.public void removeShapes(Shape[] shapes)
Removes a range of shapes from the figure.
shapes
- The shapes range to remove.public void reverse()
Reverses this figure shapes order and shapes point order.
public void transform(Matrix transform)
Applies the specified transformation to the shape.
transform
in class ObjectWithBounds
transform
- The transformation to apply.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |