|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.layout.process.IterateStructuralProcessStep
org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.LogicalPageDrawable
public class LogicalPageDrawable
The page drawable is the content provider for the Graphics2DOutputTarget. This component is responsible for rendering the current page to a Graphics2D object.
Field Summary | |
---|---|
static BasicStroke |
DEFAULT_STROKE
|
Constructor Summary | |
---|---|
LogicalPageDrawable(LogicalPageBox rootBox,
OutputProcessorMetaData metaData,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
|
Method Summary | |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D area)
Draws the object. |
long |
getContentAreaX1()
|
long |
getContentAreaX2()
|
Graphics2D |
getGraphics()
|
double |
getHeight()
|
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()
|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final BasicStroke DEFAULT_STROKE
Constructor Detail |
---|
public LogicalPageDrawable(LogicalPageBox rootBox, OutputProcessorMetaData metaData, org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
Method Detail |
---|
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 g2, Rectangle2D area)
draw
in interface PageDrawable
g2
- 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 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 on
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |