public class LogicalPageDrawable extends IterateStructuralProcessStep implements PageDrawable
Modifier and Type | Field and Description |
---|---|
static BasicStroke |
DEFAULT_STROKE |
Constructor and Description |
---|
LogicalPageDrawable() |
LogicalPageDrawable(LogicalPageBox rootBox,
OutputProcessorMetaData metaData,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clearClipping() |
void |
clip(StrictBounds bounds) |
void |
draw(Graphics2D graphics,
Rectangle2D area)
Draws the object.
|
long |
getContentAreaX1() |
long |
getContentAreaX2() |
Graphics2D |
getGraphics() |
double |
getHeight() |
LogicalPageBox |
getLogicalPageBox() |
OutputProcessorMetaData |
getMetaData() |
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)
Retries the nodes under the given coordinate which have a given attribute set.
|
PageFormat |
getPageFormat()
Describes the physical output characteristics like page size, margins, and imaginable area.
|
Dimension |
getPreferredSize()
Returns the preferred size of the drawable.
|
double |
getWidth() |
void |
init(LogicalPageBox rootBox,
OutputProcessorMetaData metaData,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager) |
boolean |
isClipOnWordBoundary() |
boolean |
isDrawPageBackground() |
boolean |
isOutlineMode() |
boolean |
isPreserveAspectRatio()
Returns true, if this drawable will preserve an aspect ratio during the drawing.
|
boolean |
isTextLineOverflow() |
void |
setContentAreaX1(long contentAreaX1) |
void |
setContentAreaX2(long contentAreaX2) |
void |
setDrawPageBackground(boolean drawPageBackground) |
void |
setOutlineMode(boolean outlineMode) |
void |
setTextLineOverflow(boolean textLineOverflow) |
boolean |
startCanvasBox(CanvasRenderBox box) |
public static final BasicStroke DEFAULT_STROKE
public LogicalPageDrawable()
@Deprecated public LogicalPageDrawable(LogicalPageBox rootBox, OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
public void init(LogicalPageBox rootBox, OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
public LogicalPageBox getLogicalPageBox()
public boolean isClipOnWordBoundary()
public boolean isOutlineMode()
public void setOutlineMode(boolean outlineMode)
public PageFormat getPageFormat()
PageDrawable
getPageFormat
in interface PageDrawable
public Dimension getPreferredSize()
getPreferredSize
in interface PageDrawable
public double getHeight()
public double getWidth()
public boolean isPreserveAspectRatio()
public boolean isDrawPageBackground()
public void setDrawPageBackground(boolean drawPageBackground)
public void draw(Graphics2D graphics, Rectangle2D area)
draw
in interface PageDrawable
graphics
- the graphics device.area
- the area inside which the object should be drawn.public boolean startCanvasBox(CanvasRenderBox box)
public long getContentAreaX2()
public void setContentAreaX2(long contentAreaX2)
public long getContentAreaX1()
public void setContentAreaX1(long contentAreaX1)
public boolean isTextLineOverflow()
public void setTextLineOverflow(boolean textLineOverflow)
public OutputProcessorMetaData getMetaData()
public void clip(StrictBounds bounds)
public void clearClipping()
public Graphics2D getGraphics()
public RenderNode[] getNodesAt(double x, double y, String namespace, String name)
getNodesAt
in interface PageDrawable
x
- the x coordinatey
- the y coordinatenamespace
- the namespace on which to filter onname
- the name on which to filter onpublic 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.