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.Paintpublic float getStrokeWidth()
getStrokeWidth in interface org.mapsforge.core.graphics.Paintpublic int getTextHeight(java.lang.String text)
getTextHeight in interface org.mapsforge.core.graphics.Paintpublic int getTextWidth(java.lang.String text)
getTextWidth in interface org.mapsforge.core.graphics.Paintpublic boolean isTransparent()
isTransparent in interface org.mapsforge.core.graphics.Paintpublic void setBitmapShader(org.mapsforge.core.graphics.Bitmap bitmap)
setBitmapShader in interface org.mapsforge.core.graphics.Paintpublic void setBitmapShaderShift(org.mapsforge.core.model.Point origin)
setBitmapShaderShift in interface org.mapsforge.core.graphics.Paintorigin - the reference pointpublic void setColor(org.mapsforge.core.graphics.Color color)
setColor in interface org.mapsforge.core.graphics.Paintpublic void setColor(int color)
setColor in interface org.mapsforge.core.graphics.Paintpublic void setDashPathEffect(float[] strokeDasharray)
setDashPathEffect in interface org.mapsforge.core.graphics.Paintpublic void setStrokeCap(org.mapsforge.core.graphics.Cap cap)
setStrokeCap in interface org.mapsforge.core.graphics.Paintpublic void setStrokeJoin(org.mapsforge.core.graphics.Join join)
setStrokeJoin in interface org.mapsforge.core.graphics.Paintpublic void setStrokeWidth(float strokeWidth)
setStrokeWidth in interface org.mapsforge.core.graphics.Paintpublic void setStyle(org.mapsforge.core.graphics.Style style)
setStyle in interface org.mapsforge.core.graphics.Paintpublic void setTextAlign(org.mapsforge.core.graphics.Align align)
setTextAlign in interface org.mapsforge.core.graphics.Paintpublic void setTextSize(float textSize)
setTextSize in interface org.mapsforge.core.graphics.Paintpublic void setTypeface(org.mapsforge.core.graphics.FontFamily fontFamily,
org.mapsforge.core.graphics.FontStyle fontStyle)
setTypeface in interface org.mapsforge.core.graphics.Paintpublic void setStroke(java.awt.Stroke stroke)