vtm-jts: add blur option in (line) style
This commit is contained in:
parent
e6006a0228
commit
14c6b6fe8f
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2014 Hannes Janetzek
|
* Copyright 2014 Hannes Janetzek
|
||||||
* Copyright 2016-2017 devemux86
|
* Copyright 2016-2018 devemux86
|
||||||
*
|
*
|
||||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||||
*
|
*
|
||||||
@ -266,6 +266,7 @@ public class VectorLayer extends AbstractVectorLayer<Drawable> implements Gestur
|
|||||||
.cap(style.cap)
|
.cap(style.cap)
|
||||||
.color(style.strokeColor)
|
.color(style.strokeColor)
|
||||||
.fixed(style.fixed)
|
.fixed(style.fixed)
|
||||||
|
.blur(style.blur)
|
||||||
.heightOffset(style.heightOffset)
|
.heightOffset(style.heightOffset)
|
||||||
.level(0)
|
.level(0)
|
||||||
.randomOffset(style.randomOffset)
|
.randomOffset(style.randomOffset)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2014 Hannes Janetzek
|
* Copyright 2014 Hannes Janetzek
|
||||||
* Copyright 2016-2017 devemux86
|
* Copyright 2016-2018 devemux86
|
||||||
*
|
*
|
||||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||||
*
|
*
|
||||||
@ -46,6 +46,7 @@ public class Style {
|
|||||||
|
|
||||||
public final Paint.Cap cap;
|
public final Paint.Cap cap;
|
||||||
public final boolean fixed;
|
public final boolean fixed;
|
||||||
|
public final float blur;
|
||||||
public final int stipple;
|
public final int stipple;
|
||||||
public final int stippleColor;
|
public final int stippleColor;
|
||||||
public final float stippleWidth;
|
public final float stippleWidth;
|
||||||
@ -68,6 +69,7 @@ public class Style {
|
|||||||
|
|
||||||
cap = builder.cap;
|
cap = builder.cap;
|
||||||
fixed = builder.fixed;
|
fixed = builder.fixed;
|
||||||
|
blur = builder.blur;
|
||||||
stipple = builder.stipple;
|
stipple = builder.stipple;
|
||||||
stippleColor = builder.stippleColor;
|
stippleColor = builder.stippleColor;
|
||||||
stippleWidth = builder.stippleWidth;
|
stippleWidth = builder.stippleWidth;
|
||||||
@ -101,6 +103,7 @@ public class Style {
|
|||||||
|
|
||||||
public Paint.Cap cap = Paint.Cap.ROUND;
|
public Paint.Cap cap = Paint.Cap.ROUND;
|
||||||
public boolean fixed = false;
|
public boolean fixed = false;
|
||||||
|
public float blur = 0;
|
||||||
public int stipple = 0;
|
public int stipple = 0;
|
||||||
public int stippleColor = Color.GRAY;
|
public int stippleColor = Color.GRAY;
|
||||||
public float stippleWidth = 1;
|
public float stippleWidth = 1;
|
||||||
@ -207,6 +210,11 @@ public class Style {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder blur(float blur) {
|
||||||
|
this.blur = blur;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Builder stipple(int width) {
|
public Builder stipple(int width) {
|
||||||
this.stipple = width;
|
this.stipple = width;
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user