Class PhysicalPageDrawable
- java.lang.Object
-
- org.jfree.layouting.modules.output.graphics.PhysicalPageDrawable
-
- All Implemented Interfaces:
PageDrawable
public class PhysicalPageDrawable extends java.lang.Object implements PageDrawable
Creation-Date: 17.11.2006, 18:00:46- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description PhysicalPageDrawable(LogicalPageDrawable pageDrawable, PhysicalPageBox page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draws the object.java.awt.print.PageFormatgetPageFormat()Describes the physical output characteristics like page size, margins, and imaginable area.java.awt.DimensiongetPreferredSize()Returns the preferred size of the drawable.booleanisPreserveAspectRatio()Returns true, if this drawable will preserve an aspect ratio during the drawing.
-
-
-
Constructor Detail
-
PhysicalPageDrawable
public PhysicalPageDrawable(LogicalPageDrawable pageDrawable, PhysicalPageBox page)
-
-
Method Detail
-
getPageFormat
public java.awt.print.PageFormat getPageFormat()
Description copied from interface:PageDrawableDescribes the physical output characteristics like page size, margins, and imaginable area.- Specified by:
getPageFormatin interfacePageDrawable- Returns:
-
getPreferredSize
public java.awt.Dimension getPreferredSize()
Description copied from interface:PageDrawableReturns the preferred size of the drawable. If the drawable is aspect ratio aware, these bounds should be used to compute the preferred aspect ratio for this drawable.- Specified by:
getPreferredSizein interfacePageDrawable- Returns:
- the preferred size.
-
isPreserveAspectRatio
public boolean isPreserveAspectRatio()
Description copied from interface:PageDrawableReturns true, if this drawable will preserve an aspect ratio during the drawing.- Specified by:
isPreserveAspectRatioin interfacePageDrawable- Returns:
- true, if an aspect ratio is preserved, false otherwise.
-
draw
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draws the object.- Specified by:
drawin interfacePageDrawable- Parameters:
g2- the graphics device.area- the area inside which the object should be drawn.
-
-