Class Style.Builder
java.lang.Object
org.oscim.layers.vector.geometries.Style.Builder
- Enclosing class:
- Style
Geometry style builder. Usage example:
{
Style style = Style.builder()
.strokeWidth(1f).strokeColor(Color.BLACK).build();
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatorg.oscim.backend.canvas.Paint.Capfloatbooleanfloatbooleanintintfloatintdoubleorg.oscim.renderer.bucket.TextureItembooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblur(float blur) 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.build()Builds the GeometryStyle from the specified parameters.cap(org.oscim.backend.canvas.Paint.Cap cap) dropDistance(float dropDistance) fillAlpha(float fillAlpha) Sets alpha channel value for the geometry's area.fillColor(int fillColor) Sets the color for the geometry's area.Sets the color for the geometry's area.fixed(boolean b) generalization(int generalization) Sets generalization factor for the geometry.heightOffset(float heightOffset) randomOffset(boolean randomOffset) 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".stipple(int width) stippleColor(int color) stippleColor(String color) stippleWidth(float width) strokeColor(int strokeColor) Sets the color for the geometry's line or outline.strokeColor(String strokeColor) Sets the color for the geometry's line or outline.strokeIncrease(double strokeIncrease) strokeWidth(float lineWidth) Sets the line width for the geometry's line or outline.texture(org.oscim.renderer.bucket.TextureItem texture) textureRepeat(boolean textureRepeat) transparent(boolean transparent)
-
Field Details
-
strokeColor
public int strokeColor -
cap
public org.oscim.backend.canvas.Paint.Cap cap -
fixed
public boolean fixed -
strokeIncrease
public double strokeIncrease -
blur
public float blur -
stipple
public int stipple -
stippleColor
public int stippleColor -
stippleWidth
public float stippleWidth -
texture
public org.oscim.renderer.bucket.TextureItem texture -
dropDistance
public float dropDistance -
textureRepeat
public boolean textureRepeat -
heightOffset
public float heightOffset -
randomOffset
public boolean randomOffset -
transparent
public boolean transparent
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
build
Builds the GeometryStyle from the specified parameters. -
strokeWidth
Sets the line width for the geometry's line or outline. -
strokeColor
Sets the color for the geometry's line or outline. -
strokeColor
Sets the color for the geometry's line or outline. -
fillColor
Sets the color for the geometry's area. -
fillColor
Sets the color for the geometry's area. -
fillAlpha
Sets alpha channel value for the geometry's area. -
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. -
scaleZoomLevel
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". -
generalization
Sets generalization factor for the geometry. Use predefined GeometryStyle.GENERALIZATION_HIGH, GENERALIZATION_MEDIUM or GENERALIZATION_SMALL -
cap
-
fixed
-
strokeIncrease
-
blur
-
stipple
-
stippleColor
-
stippleColor
-
stippleWidth
-
texture
-
dropDistance
-
textureRepeat
-
heightOffset
-
randomOffset
-
transparent
-