Class DrawSimpleShape

    • Constructor Detail

      • DrawSimpleShape

        public DrawSimpleShape​(SimpleShape<?,​?> shape)
    • Method Detail

      • draw

        public void draw​(java.awt.Graphics2D graphics)
        Description copied from interface: Drawable
        Draw this shape into the supplied canvas
        Specified by:
        draw in interface Drawable
        Overrides:
        draw in class DrawShape
        Parameters:
        graphics - the graphics to draw into
      • drawDecoration

        protected void drawDecoration​(java.awt.Graphics2D graphics,
                                      java.awt.Paint line,
                                      java.awt.BasicStroke stroke)
      • getTailDecoration

        protected Outline getTailDecoration​(java.awt.Graphics2D graphics,
                                            LineDecoration deco,
                                            java.awt.BasicStroke stroke)
      • getHeadDecoration

        protected Outline getHeadDecoration​(java.awt.Graphics2D graphics,
                                            LineDecoration deco,
                                            java.awt.BasicStroke stroke)
      • getStroke

        public java.awt.BasicStroke getStroke()
      • drawShadow

        protected void drawShadow​(java.awt.Graphics2D graphics,
                                  java.util.Collection<Outline> outlines,
                                  java.awt.Paint fill,
                                  java.awt.Paint line)
      • getCustomGeometry

        protected static CustomGeometry getCustomGeometry​(java.lang.String name)
      • getCustomGeometry

        protected static CustomGeometry getCustomGeometry​(java.lang.String name,
                                                          java.awt.Graphics2D graphics)
      • computeOutlines

        protected java.util.Collection<Outline> computeOutlines​(java.awt.Graphics2D graphics)