public class Element
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Element |
clone()
Makes a copy of the element.
|
Element |
clone(java.util.EnumSet<ElementCloneFlags> cloneFlags)
Makes a copy of the element.
|
void |
delete() |
Rect |
getBoundingBox()
The bounding box for this element.
|
Clip |
getClip()
Gets the current Clip for an Element.
|
Matrix |
getMatrix()
The transformation matrix for the element.
|
void |
rotate(double theta)
Rotate an element by T degrees counterclockwise units using the matrix [ cos T sin T -sin T cos T 0 0 ].
|
void |
scale(double sx,
double sy)
Scale an element by (sx,sy) units using the matrix [ sx 0 0 sy 0 0 ].
|
void |
setClip(Clip clip)
Sets the current Clip for an Element.
|
void |
setMatrix(Matrix matrix)
Set the transformation matrix for the element.
|
void |
translate(double tx,
double ty)
Translate an element by (tx,ty) units using the matrix [ 1 0 0 1 tx ty ].
|
public void delete()
public Matrix getMatrix()
public void setMatrix(Matrix matrix)
matrix - the transformation matrix for the element.public void translate(double tx,
double ty)
public void rotate(double theta)
public void scale(double sx,
double sy)
public void setClip(Clip clip)
clip - The clip to set as the current clip for this element.public Clip getClip()
public Element clone()
Make a copy of an element to obtain a new element that has a distinct set of attributes.
Note: TextRun objects may not be cloned.
clone in class java.lang.Objectpublic Element clone(java.util.EnumSet<ElementCloneFlags> cloneFlags)
Make a copy of an element to obtain a new element that has a distinct set of attributes.
Note: TextRun objects may not be cloned.
cloneFlags - Flags that modify the cloning operation.public Rect getBoundingBox()
The bounding box is a rectangle that is guaranteed to encompass the element, but it is not guaranteed to be the smallest box that could contain the element. For example, if the element is a Path that contains an arc, the bounding box encompasses the bezier control points, and not just the curve itself.