Class PaintableShape

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.awt.Color color  
      protected java.awt.Shape shape  
      protected boolean shapeFinished  
      protected java.awt.Stroke stroke  
      protected double tx  
      protected double ty  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PaintableShape​(double tx, double ty)  
        PaintableShape​(java.awt.Shape s)  
        PaintableShape​(java.awt.Shape s, java.awt.Color c)  
        PaintableShape​(java.awt.Shape s, java.awt.Color c, java.awt.Stroke stroke)  
    • Field Detail

      • shape

        protected java.awt.Shape shape
      • color

        protected java.awt.Color color
      • stroke

        protected java.awt.Stroke stroke
      • tx

        protected double tx
      • ty

        protected double ty
      • shapeFinished

        protected boolean shapeFinished
    • Constructor Detail

      • PaintableShape

        protected PaintableShape​(double tx,
                                 double ty)
      • PaintableShape

        public PaintableShape​(java.awt.Shape s)
      • PaintableShape

        public PaintableShape​(java.awt.Shape s,
                              java.awt.Color c)
      • PaintableShape

        public PaintableShape​(java.awt.Shape s,
                              java.awt.Color c,
                              java.awt.Stroke stroke)
    • Method Detail

      • getTx

        public double getTx()
      • getTy

        public double getTy()
      • getShape

        public java.awt.Shape getShape()
      • getColor

        public java.awt.Color getColor()
      • getStroke

        public java.awt.Stroke getStroke()
      • shapeFinished

        public void shapeFinished()
      • isShapeFinished

        public boolean isShapeFinished()
      • paint

        public void paint​(java.awt.Graphics2D g)