Class VariationTree


  • public class VariationTree
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      VariationTree()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void draw​(java.awt.Graphics2D g, int posx, int posy, int width, int height)  
      java.util.Optional<BoardHistoryNode> draw​(java.awt.Graphics2D g, int posx, int posy, int width, int height, boolean calc)  
      java.util.Optional<BoardHistoryNode> drawTree​(java.awt.Graphics2D g, int posx, int posy, int startLane, int maxposy, int minposx, BoardHistoryNode startNode, int variationNumber, boolean isMain, boolean calc)  
      boolean inNode​(int x, int y)  
      void onClicked​(int x, int y)  
      • Methods inherited from class java.lang.Object

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

      • VariationTree

        public VariationTree()
    • Method Detail

      • drawTree

        public java.util.Optional<BoardHistoryNode> drawTree​(java.awt.Graphics2D g,
                                                             int posx,
                                                             int posy,
                                                             int startLane,
                                                             int maxposy,
                                                             int minposx,
                                                             BoardHistoryNode startNode,
                                                             int variationNumber,
                                                             boolean isMain,
                                                             boolean calc)
      • draw

        public void draw​(java.awt.Graphics2D g,
                         int posx,
                         int posy,
                         int width,
                         int height)
      • draw

        public java.util.Optional<BoardHistoryNode> draw​(java.awt.Graphics2D g,
                                                         int posx,
                                                         int posy,
                                                         int width,
                                                         int height,
                                                         boolean calc)
      • inNode

        public boolean inNode​(int x,
                              int y)
      • onClicked

        public void onClicked​(int x,
                              int y)