java.lang.Object
org.openstreetmap.josm.gui.mappaint.styleelement.Symbol

public class Symbol extends Object
The definition of a symbol that should be rendered at the node position.
Since:
10827 Extracted from NodeElement
  • Field Details

    • symbolShape

      private final SymbolShape symbolShape
    • size

      public final int size
      The width and height of this symbol
    • stroke

      public final Stroke stroke
      The stroke to use for the outline
    • strokeColor

      public final Color strokeColor
      The color to draw the stroke with
    • fillColor

      public final Color fillColor
      The color to fill the interior of the shape.
  • Constructor Details

    • Symbol

      public Symbol(SymbolShape symbol, int size, Stroke stroke, Color strokeColor, Color fillColor)
      Create a new symbol
      Parameters:
      symbol - The symbol type
      size - The overall size of the symbol, both width and height are the same
      stroke - The stroke to use for the outline
      strokeColor - The color to draw the stroke with
      fillColor - The color to fill the interior of the shape.
  • Method Details