public class AwtPaint
extends java.lang.Object
implements org.mapsforge.core.graphics.Paint
Modifier and Type | Method and Description |
---|---|
int |
getColor() |
float |
getStrokeWidth() |
int |
getTextHeight(java.lang.String text) |
int |
getTextWidth(java.lang.String text) |
boolean |
isTransparent() |
void |
setBitmapShader(org.mapsforge.core.graphics.Bitmap bitmap) |
void |
setBitmapShaderShift(org.mapsforge.core.model.Point origin)
Shifts the bitmap pattern so that it will always start at a multiple of
itself for any tile the pattern is used.
|
void |
setColor(org.mapsforge.core.graphics.Color color) |
void |
setColor(int color) |
void |
setDashPathEffect(float[] strokeDasharray) |
void |
setStroke(java.awt.Stroke stroke) |
void |
setStrokeCap(org.mapsforge.core.graphics.Cap cap) |
void |
setStrokeJoin(org.mapsforge.core.graphics.Join join) |
void |
setStrokeWidth(float strokeWidth) |
void |
setStyle(org.mapsforge.core.graphics.Style style) |
void |
setTextAlign(org.mapsforge.core.graphics.Align align) |
void |
setTextSize(float textSize) |
void |
setTypeface(org.mapsforge.core.graphics.FontFamily fontFamily,
org.mapsforge.core.graphics.FontStyle fontStyle) |
public int getColor()
getColor
in interface org.mapsforge.core.graphics.Paint
public float getStrokeWidth()
getStrokeWidth
in interface org.mapsforge.core.graphics.Paint
public int getTextHeight(java.lang.String text)
getTextHeight
in interface org.mapsforge.core.graphics.Paint
public int getTextWidth(java.lang.String text)
getTextWidth
in interface org.mapsforge.core.graphics.Paint
public boolean isTransparent()
isTransparent
in interface org.mapsforge.core.graphics.Paint
public void setBitmapShader(org.mapsforge.core.graphics.Bitmap bitmap)
setBitmapShader
in interface org.mapsforge.core.graphics.Paint
public void setBitmapShaderShift(org.mapsforge.core.model.Point origin)
setBitmapShaderShift
in interface org.mapsforge.core.graphics.Paint
origin
- the reference pointpublic void setColor(org.mapsforge.core.graphics.Color color)
setColor
in interface org.mapsforge.core.graphics.Paint
public void setColor(int color)
setColor
in interface org.mapsforge.core.graphics.Paint
public void setDashPathEffect(float[] strokeDasharray)
setDashPathEffect
in interface org.mapsforge.core.graphics.Paint
public void setStrokeCap(org.mapsforge.core.graphics.Cap cap)
setStrokeCap
in interface org.mapsforge.core.graphics.Paint
public void setStrokeJoin(org.mapsforge.core.graphics.Join join)
setStrokeJoin
in interface org.mapsforge.core.graphics.Paint
public void setStrokeWidth(float strokeWidth)
setStrokeWidth
in interface org.mapsforge.core.graphics.Paint
public void setStyle(org.mapsforge.core.graphics.Style style)
setStyle
in interface org.mapsforge.core.graphics.Paint
public void setTextAlign(org.mapsforge.core.graphics.Align align)
setTextAlign
in interface org.mapsforge.core.graphics.Paint
public void setTextSize(float textSize)
setTextSize
in interface org.mapsforge.core.graphics.Paint
public void setTypeface(org.mapsforge.core.graphics.FontFamily fontFamily, org.mapsforge.core.graphics.FontStyle fontStyle)
setTypeface
in interface org.mapsforge.core.graphics.Paint
public void setStroke(java.awt.Stroke stroke)