Class AwtPaint

  • All Implemented Interfaces:
    org.mapsforge.core.graphics.Paint

    public class AwtPaint
    extends java.lang.Object
    implements org.mapsforge.core.graphics.Paint
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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​(int color)  
      void setColor​(org.mapsforge.core.graphics.Color 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getColor

        public int getColor()
        Specified by:
        getColor in interface org.mapsforge.core.graphics.Paint
      • getStrokeWidth

        public float getStrokeWidth()
        Specified by:
        getStrokeWidth in interface org.mapsforge.core.graphics.Paint
      • getTextHeight

        public int getTextHeight​(java.lang.String text)
        Specified by:
        getTextHeight in interface org.mapsforge.core.graphics.Paint
      • getTextWidth

        public int getTextWidth​(java.lang.String text)
        Specified by:
        getTextWidth in interface org.mapsforge.core.graphics.Paint
      • isTransparent

        public boolean isTransparent()
        Specified by:
        isTransparent in interface org.mapsforge.core.graphics.Paint
      • setBitmapShader

        public void setBitmapShader​(org.mapsforge.core.graphics.Bitmap bitmap)
        Specified by:
        setBitmapShader in interface org.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:
        setBitmapShaderShift in interface org.mapsforge.core.graphics.Paint
        Parameters:
        origin - the reference point
      • setColor

        public void setColor​(org.mapsforge.core.graphics.Color color)
        Specified by:
        setColor in interface org.mapsforge.core.graphics.Paint
      • setColor

        public void setColor​(int color)
        Specified by:
        setColor in interface org.mapsforge.core.graphics.Paint
      • setDashPathEffect

        public void setDashPathEffect​(float[] strokeDasharray)
        Specified by:
        setDashPathEffect in interface org.mapsforge.core.graphics.Paint
      • setStrokeCap

        public void setStrokeCap​(org.mapsforge.core.graphics.Cap cap)
        Specified by:
        setStrokeCap in interface org.mapsforge.core.graphics.Paint
      • setStrokeJoin

        public void setStrokeJoin​(org.mapsforge.core.graphics.Join join)
        Specified by:
        setStrokeJoin in interface org.mapsforge.core.graphics.Paint
      • setStrokeWidth

        public void setStrokeWidth​(float strokeWidth)
        Specified by:
        setStrokeWidth in interface org.mapsforge.core.graphics.Paint
      • setStyle

        public void setStyle​(org.mapsforge.core.graphics.Style style)
        Specified by:
        setStyle in interface org.mapsforge.core.graphics.Paint
      • setTextAlign

        public void setTextAlign​(org.mapsforge.core.graphics.Align align)
        Specified by:
        setTextAlign in interface org.mapsforge.core.graphics.Paint
      • setTextSize

        public void setTextSize​(float textSize)
        Specified by:
        setTextSize in interface org.mapsforge.core.graphics.Paint
      • setTypeface

        public void setTypeface​(org.mapsforge.core.graphics.FontFamily fontFamily,
                                org.mapsforge.core.graphics.FontStyle fontStyle)
        Specified by:
        setTypeface in interface org.mapsforge.core.graphics.Paint
      • setStroke

        public void setStroke​(java.awt.Stroke stroke)