public abstract class PictureElement extends AnnotationElement
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Point2D |
position
The top-left corner position.
|
protected java.awt.Dimension |
preferred
The preferred dimensions.
|
Modifier | Constructor and Description |
---|---|
protected |
PictureElement(java.awt.geom.Point2D position,
java.awt.Dimension size)
Creates a new picture element with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
void |
setPosition(java.awt.geom.Point2D position)
Sets the picture position.
|
void |
setPreferredSize(java.awt.Dimension size)
Sets the preferred size of the picture.
|
getArea, getBounds, render
protected java.awt.geom.Point2D position
protected java.awt.Dimension preferred
protected PictureElement(java.awt.geom.Point2D position, java.awt.Dimension size)
position
- the top-left corner position of the picture.size
- the preferred picture size, or null if the picture size
should be determined by the element.public void setPosition(java.awt.geom.Point2D position)
position
- the top-left corner position of the picture.public void setPreferredSize(java.awt.Dimension size)
size
- the preferred picture size, or null if the picture size
should be determined by the element.