Class GeometryStyle



  • public class GeometryStyle
    extends Object
    • Constructor Detail

      • GeometryStyle

        public GeometryStyle()
        A default style
      • GeometryStyle

        public GeometryStyle(String name,
                             String colFill,
                             String colStroke,
                             boolean fill,
                             boolean stroke,
                             boolean drawNodes,
                             double lineWidth)
        Create a GeometryStyle
        Parameters:
        name - the name of the style
        colFill - color for fillings
        colStroke - color for lines
        fill - whether to paint fillings
        stroke - whether to paint lines
        drawNodes - whether to draw nodes
        lineWidth - the width of lines.
    • Method Detail

      • setMany

        public void setMany(ColorCode colorFill,
                            ColorCode colorStroke,
                            boolean fill,
                            boolean stroke,
                            boolean drawNodes,
                            double lineWidth)
        Set many values.
        Parameters:
        colorFill - the fill color.
        colorStroke - the stroke color.
        fill - whether to fill.
        stroke - whether to stroke.
        drawNodes - whether to draw nodes.
        lineWidth - the width of the stroke line.
      • getName

        public String getName()
        Returns:
        the name of this rule.
      • getColorFill

        public ColorCode getColorFill()
        Returns:
        the color to use for fillings.
      • getColorStroke

        public ColorCode getColorStroke()
        Returns:
        the color used for lines.
      • isFill

        public boolean isFill()
        Returns:
        whether to draw fillings.
      • isStroke

        public boolean isStroke()
        Returns:
        whether to paint lines
      • isDrawNodes

        public boolean isDrawNodes()
        Returns:
        whether to paint nodes
      • getLineWidth

        public double getLineWidth()
        Returns:
        the line width
      • setName

        public void setName(String name)
        Parameters:
        name - the name to set
      • setColorFill

        public void setColorFill(ColorCode colorFill)
        Parameters:
        colorFill - the colorFill to set
      • setColorStroke

        public void setColorStroke(ColorCode colorStroke)
        Parameters:
        colorStroke - the colorStroke to set
      • setFill

        public void setFill(boolean fill)
        Parameters:
        fill - the fill to set
      • setDrawNodes

        public void setDrawNodes(boolean drawNodes)
        Parameters:
        drawNodes - whether to draw nodes.
      • setStroke

        public void setStroke(boolean stroke)
        Parameters:
        stroke - the stroke to set
      • setLineWidth

        public void setLineWidth(double lineWidth)
        Parameters:
        lineWidth - the lineWidth to set