Class PathShapePainter

  • All Implemented Interfaces:
    com.microej.layout.painters.ShapePainter

    public class PathShapePainter
    extends java.lang.Object
    implements com.microej.layout.painters.ShapePainter
    Implementation of ShapePainter using Path and VectorGraphicsPainter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fillCircle​(ej.microui.display.GraphicsContext gc, float x, float y, float diameter, int alpha)  
      void fillCircleArc​(ej.microui.display.GraphicsContext gc, float x, float y, float diameter, float thickness, float arcAngle, float startAngle, int alpha)  
      void fillRectangle​(ej.microui.display.GraphicsContext gc, float x, float y, float width, float height, float angle, int alpha)  
      void fillTriangle​(ej.microui.display.GraphicsContext gc, float x, float y, float width, float height, float angle, int alpha)  
      • Methods inherited from class java.lang.Object

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

      • INSTANCE

        public static final PathShapePainter INSTANCE
        Path shape painter singleton.
    • Method Detail

      • fillCircle

        public void fillCircle​(ej.microui.display.GraphicsContext gc,
                               float x,
                               float y,
                               float diameter,
                               int alpha)
        Specified by:
        fillCircle in interface com.microej.layout.painters.ShapePainter
      • fillRectangle

        public void fillRectangle​(ej.microui.display.GraphicsContext gc,
                                  float x,
                                  float y,
                                  float width,
                                  float height,
                                  float angle,
                                  int alpha)
        Specified by:
        fillRectangle in interface com.microej.layout.painters.ShapePainter
      • fillTriangle

        public void fillTriangle​(ej.microui.display.GraphicsContext gc,
                                 float x,
                                 float y,
                                 float width,
                                 float height,
                                 float angle,
                                 int alpha)
        Specified by:
        fillTriangle in interface com.microej.layout.painters.ShapePainter
      • fillCircleArc

        public void fillCircleArc​(ej.microui.display.GraphicsContext gc,
                                  float x,
                                  float y,
                                  float diameter,
                                  float thickness,
                                  float arcAngle,
                                  float startAngle,
                                  int alpha)
        Specified by:
        fillCircleArc in interface com.microej.layout.painters.ShapePainter