public class PhysicalPageDrawable extends java.lang.Object implements PageDrawable
Constructor and Description |
---|
PhysicalPageDrawable(LogicalPageDrawable pageDrawable,
PhysicalPageBox page) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the object.
|
java.awt.print.PageFormat |
getPageFormat()
Describes the physical output characteristics like page size, margins,
and imaginable area.
|
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the drawable.
|
boolean |
isPreserveAspectRatio()
Returns true, if this drawable will preserve an aspect ratio during the drawing.
|
public PhysicalPageDrawable(LogicalPageDrawable pageDrawable, PhysicalPageBox page)
public java.awt.print.PageFormat getPageFormat()
PageDrawable
getPageFormat
in interface PageDrawable
public java.awt.Dimension getPreferredSize()
PageDrawable
getPreferredSize
in interface PageDrawable
public boolean isPreserveAspectRatio()
PageDrawable
isPreserveAspectRatio
in interface PageDrawable
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)
draw
in interface PageDrawable
g2
- the graphics device.area
- the area inside which the object should be drawn.