Package edu.cnu.mdi.mapping.theme
Class MapTheme.Builder
java.lang.Object
edu.cnu.mdi.mapping.theme.MapTheme.Builder
- Enclosing class:
MapTheme
Mutable builder for
MapTheme.
All setter methods return this to support fluent chaining.
Stroke widths are clamped to ≥ 0 to prevent negative values being
stored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the panel background color.borderColor(Color c) Sets the country political border stroke color.Sets the country political borderStroke.build()Constructs an immutableMapThemefrom the current builder state.Sets the city marker dot color.Sets the graticule line color.graticuleStrokeWidth(float w) Sets the graticule line stroke width.labelColor(Color c) Sets the text label color.Sets the land (country polygon) fill color.oceanColor(Color c) Sets the ocean fill color.Sets the projection boundary outline stroke color.outlineStrokeWidth(float w) Sets the projection boundary outline stroke width.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backgroundColor
Sets the panel background color. -
oceanColor
Sets the ocean fill color. -
landColor
Sets the land (country polygon) fill color. -
cityColor
Sets the city marker dot color. -
outlineColor
Sets the projection boundary outline stroke color. -
graticuleColor
Sets the graticule line color. -
labelColor
Sets the text label color. -
outlineStrokeWidth
Sets the projection boundary outline stroke width.- Parameters:
w- stroke width in points; clamped to ≥ 0
-
graticuleStrokeWidth
Sets the graticule line stroke width.- Parameters:
w- stroke width in points; clamped to ≥ 0
-
borderColor
Sets the country political border stroke color. -
borderStroke
Sets the country political borderStroke. -
build
Constructs an immutableMapThemefrom the current builder state.- Returns:
- a new
MapThemeinstance
-