Package org.mapsforge.map.awt.graphics
Class AwtPaint
java.lang.Object
org.mapsforge.map.awt.graphics.AwtPaint
- All Implemented Interfaces:
org.mapsforge.core.graphics.Paint
-
Method Summary
Modifier and TypeMethodDescriptionintgetColor()floatintgetTextHeight(String text) intgetTextWidth(String text) booleanvoidsetBitmapShader(org.mapsforge.core.graphics.Bitmap bitmap) voidsetBitmapShaderShift(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.voidsetColor(int color) voidsetColor(org.mapsforge.core.graphics.Color color) voidsetDashPathEffect(float[] strokeDasharray) voidvoidsetStrokeCap(org.mapsforge.core.graphics.Cap cap) voidsetStrokeJoin(org.mapsforge.core.graphics.Join join) voidsetStrokeWidth(float strokeWidth) voidsetStyle(org.mapsforge.core.graphics.Style style) voidsetTextAlign(org.mapsforge.core.graphics.Align align) voidsetTextSize(float textSize) voidsetTypeface(org.mapsforge.core.graphics.FontFamily fontFamily, org.mapsforge.core.graphics.FontStyle fontStyle)
-
Method Details
-
getColor
public int getColor()- Specified by:
getColorin interfaceorg.mapsforge.core.graphics.Paint
-
getStrokeWidth
public float getStrokeWidth()- Specified by:
getStrokeWidthin interfaceorg.mapsforge.core.graphics.Paint
-
getTextHeight
- Specified by:
getTextHeightin interfaceorg.mapsforge.core.graphics.Paint
-
getTextWidth
- Specified by:
getTextWidthin interfaceorg.mapsforge.core.graphics.Paint
-
isTransparent
public boolean isTransparent()- Specified by:
isTransparentin interfaceorg.mapsforge.core.graphics.Paint
-
setBitmapShader
public void setBitmapShader(org.mapsforge.core.graphics.Bitmap bitmap) - Specified by:
setBitmapShaderin interfaceorg.mapsforge.core.graphics.Paint
-
setBitmapShaderShift
public 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. This ensures that regardless of size of the pattern it tiles correctly.- Specified by:
setBitmapShaderShiftin interfaceorg.mapsforge.core.graphics.Paint- Parameters:
origin- the reference point
-
setColor
public void setColor(org.mapsforge.core.graphics.Color color) - Specified by:
setColorin interfaceorg.mapsforge.core.graphics.Paint
-
setColor
public void setColor(int color) - Specified by:
setColorin interfaceorg.mapsforge.core.graphics.Paint
-
setDashPathEffect
public void setDashPathEffect(float[] strokeDasharray) - Specified by:
setDashPathEffectin interfaceorg.mapsforge.core.graphics.Paint
-
setStrokeCap
public void setStrokeCap(org.mapsforge.core.graphics.Cap cap) - Specified by:
setStrokeCapin interfaceorg.mapsforge.core.graphics.Paint
-
setStrokeJoin
public void setStrokeJoin(org.mapsforge.core.graphics.Join join) - Specified by:
setStrokeJoinin interfaceorg.mapsforge.core.graphics.Paint
-
setStrokeWidth
public void setStrokeWidth(float strokeWidth) - Specified by:
setStrokeWidthin interfaceorg.mapsforge.core.graphics.Paint
-
setStyle
public void setStyle(org.mapsforge.core.graphics.Style style) - Specified by:
setStylein interfaceorg.mapsforge.core.graphics.Paint
-
setTextAlign
public void setTextAlign(org.mapsforge.core.graphics.Align align) - Specified by:
setTextAlignin interfaceorg.mapsforge.core.graphics.Paint
-
setTextSize
public void setTextSize(float textSize) - Specified by:
setTextSizein interfaceorg.mapsforge.core.graphics.Paint
-
setTypeface
public void setTypeface(org.mapsforge.core.graphics.FontFamily fontFamily, org.mapsforge.core.graphics.FontStyle fontStyle) - Specified by:
setTypefacein interfaceorg.mapsforge.core.graphics.Paint
-
setStroke
-