public class DrawingPreferences extends AtakPreferences
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SHAPE_COLOR |
static java.lang.String |
SHAPE_FILL_ALPHA |
static java.lang.String |
STROKE_STYLE |
static java.lang.String |
STROKE_WEIGHT |
_context, _prefs
Constructor and Description |
---|
DrawingPreferences(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
int |
getFillAlpha() |
int |
getFillColor()
Get the default fill color (shape_color + fill_alpha)
|
int |
getShapeColor()
Get the default shape color
|
int |
getStrokeStyle()
Get the default stroke style
|
double |
getStrokeWeight()
Get the default stroke weight
|
void |
setFillAlpha(int alpha)
Set the default shape fill alpha
|
void |
setShapeColor(int color)
Set the default shape color
|
void |
setStrokeStyle(int lineStyle)
Set the default shape line style
|
void |
setStrokeWeight(double strokeWeight)
Set the default shape stroke weight
|
contains, get, get, get, get, get, getAll, getSharedPrefs, getStringSet, registerListener, remove, set, unregisterListener
public static final java.lang.String SHAPE_COLOR
public static final java.lang.String SHAPE_FILL_ALPHA
public static final java.lang.String STROKE_WEIGHT
public static final java.lang.String STROKE_STYLE
public DrawingPreferences(MapView mapView)
public void setShapeColor(int color)
color
- Shape color Color
public int getShapeColor()
Color
public void setFillAlpha(int alpha)
alpha
- Fill alpha (0 - 255)public int getFillAlpha()
public int getFillColor()
Color
public void setStrokeWeight(double strokeWeight)
strokeWeight
- Stroke weightpublic double getStrokeWeight()
public void setStrokeStyle(int lineStyle)
lineStyle
- Line style (see Shape.setStrokeStyle(int)
)public int getStrokeStyle()
Shape.getStrokeStyle()
)