Package ca.spatial.reportwriter
Class MapLayoutReport.Graphic
java.lang.Object
ca.spatial.reportwriter.MapLayoutReport.MapElement
ca.spatial.reportwriter.MapLayoutReport.Graphic
- Enclosing class:
- MapLayoutReport
The base class for simple graphics shapes such as circles and rectangles.
-
Method Summary
Modifier and TypeMethodDescriptionSet the cap style for the end of line features.dash(float[] dashArray)
The definition of how to make a dash pattern by alternating between opaque and transparent sections.dashPhase(double phase)
The initial starting phase of the dash pattern See the documentation forBasicStroke
for a description of the dash phase attribute.Set the fill color for the graphic elementSet the line join style for the intersection of line features.miterLimit(double limit)
The limit to trim a line join using the miter style.outlineColor(String color)
Set the outline color for the graphic elementoutlineWidth(double width)
Set the outline width for the graphic elementMethods inherited from class ca.spatial.reportwriter.MapLayoutReport.MapElement
background, bookmark, contentHeight, contentWidth, getBackground, getHeight, getWidth, hidden, inset, margin, neatline, p, r, simplistHeight, simplistWidth, subtype, top, visible, zoom
-
Method Details
-
fillColor
Set the fill color for the graphic element- Parameters:
color
- the fill color
-
outlineColor
Set the outline color for the graphic element- Parameters:
color
- the outline color
-
outlineWidth
Set the outline width for the graphic element- Parameters:
width
- the line width
-
cap
Set the cap style for the end of line features. Allowed parameters are "SQUARE", "ROUND" or "BUTT". The default value is "SQUARE". See the documentation forBasicStroke
for a description of the various end cap styles.- Parameters:
style
- the end cap style
-
join
Set the line join style for the intersection of line features. Allowed parameters are "MITER", "BEVEL" or "ROUND". The default value is "MITER". See the documentation forBasicStroke
for a description of the various line join styles.- Parameters:
style
- the line join style
-
miterLimit
The limit to trim a line join using the miter style. See the documentation forBasicStroke
for a description of the miter limit.- Parameters:
limit
- the angle for trimming miter joins
-
dash
The definition of how to make a dash pattern by alternating between opaque and transparent sections. See the documentation forBasicStroke
for a description of the dash attributes.- Parameters:
dashArray
- an array of dash specifications
-
dashPhase
The initial starting phase of the dash pattern See the documentation forBasicStroke
for a description of the dash phase attribute.- Parameters:
phase
- an index in to the dash array
-