| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | drawContent(Graphics2D
the graphics to draw into graphics)Overrides org. Implements org. draw any content within this shape (image, text, etc.). |
| protected Paint | |
| public static ImageRenderer | Returns: the image rendererthe graphics context graphics, String contentType)Returns an ImageRenderer for the PictureData |
| protected PictureShape | |
| public void | |
| public void | resize(Rectangle2D
The target rectangle target)Fit picture shape into the target rectangle, maintaining the aspect ratio and repositioning within the target rectangle with a centered alignment. |
| public void | resize(Rectangle2D
The target rectangle target, RectAlign The alignment within the target rectangle when resizing.
A null value corresponds to RectAlign.CENTER align)Fit picture shape into the target rectangle, maintaining the aspect ratio and repositioning within the target rectangle based on the specified alignment (gravity). |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| DrawPictureShape | back to summary |
|---|---|
| public DrawPictureShape(PictureShape<?, ?> shape) | |
| drawContent | back to summary |
|---|---|
| public void drawContent(Graphics2D graphics) Overrides org. Implements org. Doc from org. draw any content within this shape (image, text, etc.).
| |
| getFillPaint | back to summary |
|---|---|
| protected Paint getFillPaint(Graphics2D graphics) Overrides org.
| |
| getImageRenderer | back to summary |
|---|---|
| public static ImageRenderer getImageRenderer(Graphics2D graphics, String contentType) Returns an ImageRenderer for the PictureData
| |
| getShape | back to summary |
|---|---|
| protected PictureShape Overrides org.
| |
| resize | back to summary |
|---|---|
| public void resize() Resize this picture to the default size. For PNG and JPEG resizes the image to 100%, for other types, if the size can't be determined it will be 200x200 pixels. | |
| resize | back to summary |
|---|---|
| public void resize(Rectangle2D target) Fit picture shape into the target rectangle, maintaining the aspect ratio and repositioning within the target rectangle with a centered alignment.
| |
| resize | back to summary |
|---|---|
| public void resize(Rectangle2D target, RectAlign align) Fit picture shape into the target rectangle, maintaining the aspect ratio and repositioning within the target rectangle based on the specified alignment (gravity).
| |