public class PhysicalPageDrawable extends Object implements PageDrawable
Constructor and Description |
---|
PhysicalPageDrawable(LogicalPageDrawable pageDrawable,
PhysicalPageBox page) |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D area)
Draws the object.
|
RenderNode[] |
getNodesAt(double x,
double y,
double width,
double height,
String namespace,
String name)
Returns all layouted render-nodes that occupy the given area and which have the attribute specified by name and
namespace set.
|
RenderNode[] |
getNodesAt(double x,
double y,
String namespace,
String name)
Returns all layouted render-nodes that occupy the given point and which have the attribute specified by name and
namespace set.
|
LogicalPageDrawable |
getPageDrawable() |
PageFormat |
getPageFormat()
Describes the physical output characteristics like page size, margins, and imaginable area.
|
Dimension |
getPreferredSize()
Returns the preferred size of the output.
|
boolean |
isPreserveAspectRatio() |
public PhysicalPageDrawable(LogicalPageDrawable pageDrawable, PhysicalPageBox page)
pageDrawable
- page
- public PageFormat getPageFormat()
PageDrawable
getPageFormat
in interface PageDrawable
public Dimension getPreferredSize()
PageDrawable
getPreferredSize
in interface PageDrawable
public boolean isPreserveAspectRatio()
public void draw(Graphics2D g2, Rectangle2D area)
draw
in interface PageDrawable
g2
- the graphics device.area
- the area inside which the object should be drawn.public RenderNode[] getNodesAt(double x, double y, String namespace, String name)
PageDrawable
getNodesAt
in interface PageDrawable
x
- the x coordinate of the point.y
- the y coordinate of the point.namespace
- the attribute's namespace.name
- the attribute's name.public RenderNode[] getNodesAt(double x, double y, double width, double height, String namespace, String name)
PageDrawable
getNodesAt
in interface PageDrawable
x
- the x coordinate of the origin of the area.y
- the y coordinate of the origin of the area.width
- the height of the area.height
- the width of the area.namespace
- the attribute's namespace.name
- the attribute's name.public LogicalPageDrawable getPageDrawable()
Copyright © 2017 Hitachi Vantara. All rights reserved.