Class PaintableShape

    • Field Summary

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

      Constructors 
      ChangeModifier 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 NEW

        protected java.awt.Shape shape
      • color NEW

        protected java.awt.Color color
      • stroke NEW

        protected java.awt.Stroke stroke
      • tx NEW

        protected double tx
      • ty NEW

        protected double ty
      • shapeFinished NEW

        protected boolean shapeFinished

Constructor Detail

  • 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)