Class AwtPaint

java.lang.Object
org.mapsforge.map.awt.graphics.AwtPaint
All Implemented Interfaces:
org.mapsforge.core.graphics.Paint

public class AwtPaint extends Object implements org.mapsforge.core.graphics.Paint
  • Method Details

    • 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(String text)
      Specified by:
      getTextHeight in interface org.mapsforge.core.graphics.Paint
    • getTextWidth

      public int getTextWidth(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(Stroke stroke)