Class MapLayoutReport.Graphic

java.lang.Object
ca.spatial.reportwriter.MapLayoutReport.MapElement
ca.spatial.reportwriter.MapLayoutReport.Graphic
Enclosing class:
MapLayoutReport

public class MapLayoutReport.Graphic extends MapLayoutReport.MapElement
The base class for simple graphics shapes such as circles and rectangles.
  • Method Details

    • fillColor

      public MapLayoutReport.Graphic fillColor(String color)
      Set the fill color for the graphic element
      Parameters:
      color - the fill color
    • outlineColor

      public MapLayoutReport.Graphic outlineColor(String color)
      Set the outline color for the graphic element
      Parameters:
      color - the outline color
    • outlineWidth

      public MapLayoutReport.Graphic outlineWidth(double width)
      Set the outline width for the graphic element
      Parameters:
      width - the line width
    • cap

      public MapLayoutReport.Graphic cap(String style)
      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 for BasicStroke for a description of the various end cap styles.
      Parameters:
      style - the end cap style
    • join

      public MapLayoutReport.Graphic join(String style)
      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 for BasicStroke for a description of the various line join styles.
      Parameters:
      style - the line join style
    • miterLimit

      public MapLayoutReport.Graphic miterLimit(double limit)
      The limit to trim a line join using the miter style. See the documentation for BasicStroke for a description of the miter limit.
      Parameters:
      limit - the angle for trimming miter joins
    • dash

      public MapLayoutReport.Graphic dash(float[] dashArray)
      The definition of how to make a dash pattern by alternating between opaque and transparent sections. See the documentation for BasicStroke for a description of the dash attributes.
      Parameters:
      dashArray - an array of dash specifications
    • dashPhase

      public MapLayoutReport.Graphic dashPhase(double phase)
      The initial starting phase of the dash pattern See the documentation for BasicStroke for a description of the dash phase attribute.
      Parameters:
      phase - an index in to the dash array