public class GuiOsmConstants
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GuiOsmConstants.CheckedTexturePaint
A class implementing a TexturePaint where the texture is a checked pattern in two colors.
|
static class |
GuiOsmConstants.FileTexturePaint
A TexturePaint object with an associated file path where the image was loaded from.
|
static class |
GuiOsmConstants.StrokeEnum
Enumeration identifying different types of stroke styles used for rendering.
|
Modifier and Type | Field and Description |
---|---|
static java.awt.BasicStroke |
DASH_DOT_STROKE
AWT Stroke for a 1-pixel-wide line of alternating dots and dashes.
|
static java.awt.BasicStroke |
DASHED_STROKE
AWT Stroke for a dashed (6 pixels long) line 1 pixel wide.
|
static java.awt.BasicStroke |
DOTTED_STROKE
AWT Stroke for a dotted line 1 pixel wide.
|
static java.awt.BasicStroke |
DW_SOLID_STROKE
AWT Stroke for a 4-pixel-wide solid line.
|
static java.awt.BasicStroke |
LONG_DOTTED_STROKE
AWT Stroke for a 1-pixel-wide line with long dots (3 pixels long).
|
static java.awt.TexturePaint |
PAINT_CYAN_STRIPED
A cyan striped pattern, used for intermittent water.
|
static java.awt.TexturePaint |
PAINT_GREEN_CHECKED
A translucent checked pattern in green and white.
|
static java.awt.TexturePaint |
PAINT_GREY_CHECKED
A translucent checked pattern in grey and white.
|
static java.awt.TexturePaint |
PAINT_LIGHT_BLUE_CHECKED
A translucent checked pattern in light blue and white.
|
static java.util.Map<ColorType,java.awt.Paint> |
PAINT_MAP
Map to convert ColorType enums into renderable Paints.
|
static java.awt.TexturePaint |
PAINT_PURPLE_CHECKED
A translucent checked pattern in purple and white.
|
static java.awt.TexturePaint |
PAINT_WETLAND_CHECKED
A pattern (copied from OpenStreetMaps) for indicating a wetland area.
|
static java.awt.BasicStroke |
QW_SOLID_STROKE
AWT Stroke for a 8-pixel-wide solid line.
|
static java.awt.Stroke |
RAILROAD_STROKE
The default stroke for drawing a railroad track Way.
|
static java.awt.BasicStroke |
SOLID_STROKE
AWT Stroke for a solid line 1 pixel wide.
|
static java.util.Map<OsmLineType,java.awt.Stroke> |
STROKE_MAP
Map to convert OsmLineType enums to renderable Strokes.
|
static java.awt.Color |
TOLL_COLOR
The Color to use for rendering toll roads, regardless of the color normally configured
for the WayType in the WayParams.
|
static java.awt.Color |
TRANSPARENT
The Color for complete transparency.
|
static java.awt.BasicStroke |
W_SOLID_STROKE
AWT Stroke for a 2-pixel-wide solid line.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.TexturePaint |
createCheckedTexture(java.awt.Color color1,
java.awt.Color color2,
int grain)
Create a checked TexturePaint object using the specified colors and check size.
|
static java.awt.TexturePaint |
createStripedTexture(java.awt.Color color1,
java.awt.Color color2)
Create a diagonally striped TexturePaint.
|
public static final java.awt.BasicStroke SOLID_STROKE
public static final java.awt.BasicStroke DASHED_STROKE
public static final java.awt.BasicStroke DOTTED_STROKE
public static final java.awt.BasicStroke LONG_DOTTED_STROKE
public static final java.awt.BasicStroke DASH_DOT_STROKE
public static final java.awt.BasicStroke W_SOLID_STROKE
public static final java.awt.BasicStroke DW_SOLID_STROKE
public static final java.awt.BasicStroke QW_SOLID_STROKE
public static final java.awt.Stroke RAILROAD_STROKE
public static final java.util.Map<OsmLineType,java.awt.Stroke> STROKE_MAP
public static final java.awt.Color TOLL_COLOR
public static final java.awt.Color TRANSPARENT
public static final java.awt.TexturePaint PAINT_GREEN_CHECKED
public static final java.awt.TexturePaint PAINT_LIGHT_BLUE_CHECKED
public static final java.awt.TexturePaint PAINT_PURPLE_CHECKED
public static final java.awt.TexturePaint PAINT_GREY_CHECKED
public static final java.awt.TexturePaint PAINT_CYAN_STRIPED
public static final java.awt.TexturePaint PAINT_WETLAND_CHECKED
public static final java.util.Map<ColorType,java.awt.Paint> PAINT_MAP
public static java.awt.TexturePaint createCheckedTexture(java.awt.Color color1, java.awt.Color color2, int grain)
color1
- first Color of check patterncolor2
- second Color of check patterngrain
- size of check squares in pixelspublic static java.awt.TexturePaint createStripedTexture(java.awt.Color color1, java.awt.Color color2)
color1
- Color of the thin stripescolor2
- Color of the background