public static class Style.Builder
extends java.lang.Object
{
Style style = Style.builder()
.strokeWidth(1f).strokeColor(Color.BLACK).build();
}
| Modifier and Type | Field and Description |
|---|---|
org.oscim.backend.canvas.Paint.Cap |
cap |
boolean |
fixed |
float |
heightOffset |
boolean |
randomOffset |
int |
stipple |
int |
stippleColor |
float |
stippleWidth |
org.oscim.renderer.bucket.TextureItem |
texture |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Style.Builder |
buffer(double buffer)
This function has effect only on Points:
use it to control the size on the circle that
will be built from a buffer around the point.
|
Style |
build()
Builds the GeometryStyle from the specified parameters.
|
Style.Builder |
cap(org.oscim.backend.canvas.Paint.Cap cap) |
Style.Builder |
fillAlpha(float fillAlpha)
Sets alpha channel value for the geometry's area.
|
Style.Builder |
fillColor(int fillColor)
Sets the color for the geometry's area.
|
Style.Builder |
fillColor(java.lang.String fillColor)
Sets the color for the geometry's area.
|
Style.Builder |
fixed(boolean b) |
Style.Builder |
generalization(int generalization)
Sets generalization factor for the geometry.
|
Style.Builder |
heightOffset(float heightOffset) |
Style.Builder |
randomOffset(boolean randomOffset) |
Style.Builder |
scaleZoomLevel(int zoomlvl)
This function has effect only on Points:
use it to specify from which zoom level the point
should stop decreasing in size and "stick to the map".
|
Style.Builder |
stipple(int width) |
Style.Builder |
stippleColor(int color) |
Style.Builder |
stippleColor(java.lang.String color) |
Style.Builder |
stippleWidth(float width) |
Style.Builder |
strokeColor(int strokeColor)
Sets the color for the geometry's line or outline.
|
Style.Builder |
strokeColor(java.lang.String strokeColor)
Sets the color for the geometry's line or outline.
|
Style.Builder |
strokeWidth(float lineWidth)
Sets the line width for the geometry's line or outline.
|
Style.Builder |
texture(org.oscim.renderer.bucket.TextureItem texture) |
public org.oscim.backend.canvas.Paint.Cap cap
public boolean fixed
public int stipple
public int stippleColor
public float stippleWidth
public org.oscim.renderer.bucket.TextureItem texture
public float heightOffset
public boolean randomOffset
public Style build()
public Style.Builder strokeWidth(float lineWidth)
public Style.Builder strokeColor(int strokeColor)
public Style.Builder strokeColor(java.lang.String strokeColor)
public Style.Builder fillColor(int fillColor)
public Style.Builder fillColor(java.lang.String fillColor)
public Style.Builder fillAlpha(float fillAlpha)
public Style.Builder buffer(double buffer)
public Style.Builder scaleZoomLevel(int zoomlvl)
public Style.Builder generalization(int generalization)
public Style.Builder cap(org.oscim.backend.canvas.Paint.Cap cap)
public Style.Builder fixed(boolean b)
public Style.Builder stipple(int width)
public Style.Builder stippleColor(int color)
public Style.Builder stippleColor(java.lang.String color)
public Style.Builder stippleWidth(float width)
public Style.Builder texture(org.oscim.renderer.bucket.TextureItem texture)
public Style.Builder heightOffset(float heightOffset)
public Style.Builder randomOffset(boolean randomOffset)