Skip to content

Commit

Permalink
Delete space
Browse files Browse the repository at this point in the history
  • Loading branch information
phiming committed Oct 5, 2018
1 parent 2a22123 commit e97db1a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/featurecat/lizzie/gui/VariationTree.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public class VariationTree {

private ArrayList<Integer> laneUsageList, laneUsageList1; //laneUsageList1 is lane used to cacalate (x,y)
private BoardHistoryNode curMove, curMove1;

private int posx1, posy1, width1, height1; //Reserve a copy of varaition window axis
private int posx1, posy1, width1, height1; //Reserve a copy of varaition window axis

public VariationTree()
{
Expand Down Expand Up @@ -151,8 +150,7 @@ public void draw(Graphics2D g, int posx, int posy, int width, int height) {
drawTree(g, posx + xoffset, curposy, 0, posy + height, node, 0,true);
}
//Clone from drawTree() method but draw nothing, just caculate (x,y)->BoardNode
public BoardHistoryNode inSubtree(int posx, int posy, int mouseX, int mouseY, int startLane, int maxposy, BoardHistoryNode startNode, int variationNumber)
{
public BoardHistoryNode inSubtree(int posx, int posy, int mouseX, int mouseY, int startLane, int maxposy, BoardHistoryNode startNode, int variationNumber) {
// Finds depth on leftmost variation of this tree
int depth = BoardHistoryList.getDepth(startNode) + 1;
int lane = startLane;
Expand Down

0 comments on commit e97db1a

Please sign in to comment.