Class CalculableTimer

All Implemented Interfaces:
Cloneable

public class CalculableTimer extends AbstractTimer<Calculable>
Author:
Federico Vera <[email protected]>
  • Constructor Details

    • CalculableTimer

      public CalculableTimer(Calculable calculable)
  • Method Details

    • getThread

      protected PThread getThread(Calculable calculable, int threadNumber, int threadsTotal, boolean drawPen)
      Specified by:
      getThread in class AbstractTimer<Calculable>
    • traslate

      public void traslate(int x, int y)
      Description copied from class: GraphicE
      Traslates this element on X and Y
      Specified by:
      traslate in class GraphicE
      Parameters:
      x - size in px of the horizontal translation
      y - size in px of the vertical translation
    • draw

      public void draw(Graphics2D g)
      Description copied from class: GraphicE
      Draws the component on the given graphics
      Specified by:
      draw in class GraphicE
      Parameters:
      g - where to draw
    • clone

      public GraphicE clone()
      Specified by:
      clone in class GraphicE