Package ca.spatial.reportwriter
Class MapLayoutReport.MapElement
java.lang.Object
ca.spatial.reportwriter.MapLayoutReport.MapElement
- Direct Known Subclasses:
MapLayoutReport.Graphic
,MapLayoutReport.Group
,MapLayoutReport.Legend
,MapLayoutReport.Mapper
,MapLayoutReport.NorthArrow
,MapLayoutReport.ReportChart
,MapLayoutReport.ReportTable
,MapLayoutReport.Scalebar
,MapLayoutReport.Text
,MapLayoutReport.TopGroup
- Enclosing class:
- MapLayoutReport
MapElement is the abstract base class for the components of a MapLayout.
MapElements include text boxes, legends, maps, scale bars, north arrows,
as well as groupings of the above components.
-
Method Summary
Modifier and TypeMethodDescriptionbackground(Color color)
Set the background colour for this element.bookmark(boolean state)
Set if a bookmark is placed in the outline for this element.double
contentHeight(int units)
Compute the width of the content areadouble
contentWidth(int units)
Compute the width of the content areadouble
Get the height of the element, after adjustments to fit within the parent container.double
getWidth()
Get the width of the element, after adjustments to fit within the parent container.hidden(boolean state)
Set if the element is visible in the table of contents or not.inset(double inset)
Set the inset for this element.margin(double margin)
Set the margin for this element.neatline(int style)
Turn on a simple neatline for this element.p()
Return the parent of this element.r()
Return the report objectdouble
Get the height of the drawing area within the element (not including margin and insets)double
Get the width of the drawing area within the element (not including margin and insets)subtype()
Get the type of this elementtop()
Return the top group.visible(boolean state)
Set if the element is initially visible or not.zoom(double zoom)
Set the zoom factor for the element
-
Method Details
-
p
Return the parent of this element. -
top
Return the top group. -
r
Return the report object -
getWidth
public double getWidth()Get the width of the element, after adjustments to fit within the parent container. -
getHeight
public double getHeight()Get the height of the element, after adjustments to fit within the parent container. -
background
Set the background colour for this element. -
getBackground
-
neatline
Turn on a simple neatline for this element. -
margin
Set the margin for this element. The margin will be applied equally on all sides outside of the neatline. -
inset
Set the inset for this element. The inset will be applied equally on all sides inside of the neatline. -
visible
Set if the element is initially visible or not. Visibility can be manually selected in the TOC. The default value is true. -
bookmark
Set if a bookmark is placed in the outline for this element. The title is used as the name of the bookmark. The default value is false. -
zoom
Set the zoom factor for the element -
contentWidth
public double contentWidth(int units)Compute the width of the content area -
contentHeight
public double contentHeight(int units)Compute the width of the content area -
subtype
Get the type of this element -
simplistWidth
public double simplistWidth()Get the width of the drawing area within the element (not including margin and insets) -
simplistHeight
public double simplistHeight()Get the height of the drawing area within the element (not including margin and insets)
-