Class GuiOsmConstants

java.lang.Object
org.ka2ddo.yaac.gui.osm.GuiOsmConstants

public class GuiOsmConstants extends Object
This class is a container for various public constants used by other classes in the .osm package.
Author:
Andrew Pavlin, KA2DDO
  • Field Details

    • SOLID_STROKE

      public static final BasicStroke SOLID_STROKE
      AWT Stroke for a solid line 1 pixel wide.
    • DASHED_STROKE

      public static final BasicStroke DASHED_STROKE
      AWT Stroke for a dashed (6 pixels long) line 1 pixel wide.
    • DOTTED_STROKE

      public static final BasicStroke DOTTED_STROKE
      AWT Stroke for a dotted line 1 pixel wide.
    • LONG_DOTTED_STROKE

      public static final BasicStroke LONG_DOTTED_STROKE
      AWT Stroke for a 1-pixel-wide line with long dots (3 pixels long).
    • DASH_DOT_STROKE

      public static final BasicStroke DASH_DOT_STROKE
      AWT Stroke for a 1-pixel-wide line of alternating dots and dashes.
    • W_SOLID_STROKE

      public static final BasicStroke W_SOLID_STROKE
      AWT Stroke for a 2-pixel-wide solid line.
    • DW_SOLID_STROKE

      public static final BasicStroke DW_SOLID_STROKE
      AWT Stroke for a 4-pixel-wide solid line.
    • QW_SOLID_STROKE

      public static final BasicStroke QW_SOLID_STROKE
      AWT Stroke for a 8-pixel-wide solid line.
    • RAILROAD_STROKE

      public static final Stroke RAILROAD_STROKE
      The default stroke for drawing a railroad track Way.
    • STROKE_MAP

      public static final Map<OsmLineType,Stroke> STROKE_MAP
      Map to convert OsmLineType enums to renderable Strokes.
    • TOLL_COLOR

      public static final Color TOLL_COLOR
      The Color to use for rendering toll roads, regardless of the color normally configured for the WayType in the WayParams.
    • TRANSPARENT

      public static final Color TRANSPARENT
      The Color for complete transparency.
    • PAINT_GREEN_CHECKED

      public static final TexturePaint PAINT_GREEN_CHECKED
      A translucent checked pattern in green and white.
    • PAINT_LIGHT_BLUE_CHECKED

      public static final TexturePaint PAINT_LIGHT_BLUE_CHECKED
      A translucent checked pattern in light blue and white.
    • PAINT_PURPLE_CHECKED

      public static final TexturePaint PAINT_PURPLE_CHECKED
      A translucent checked pattern in purple and white.
    • PAINT_GREY_CHECKED

      public static final TexturePaint PAINT_GREY_CHECKED
      A translucent checked pattern in grey and white.
    • PAINT_WETLAND_CHECKED

      public static final TexturePaint PAINT_WETLAND_CHECKED
      A pattern (copied from OpenStreetMaps) for indicating a wetland area.
    • PAINT_MAP

      public static final Map<ColorType,Paint> PAINT_MAP
      Map to convert ColorType enums into renderable Paints.
  • Method Details

    • createCheckedTexture

      public static TexturePaint createCheckedTexture(Color color1, Color color2, int grain)
      Create a checked TexturePaint object using the specified colors and check size.
      Parameters:
      color1 - first Color of check pattern
      color2 - second Color of check pattern
      grain - size of check squares in pixels
      Returns:
      TexturePaint that will draw a checked pattern
    • createStripedTexture

      public static TexturePaint createStripedTexture(Color color1, Color color2)
      Create a diagonally striped TexturePaint.
      Parameters:
      color1 - Color of the thin stripes
      color2 - Color of the background
      Returns:
      TexturePaint of the striped pattern