31 |
AbstractMainNode2D.Render, |
AbstractMainNode2D.Render, |
32 |
AbstractMainNode2D.DoMouse |
AbstractMainNode2D.DoMouse |
33 |
{ |
{ |
34 |
public static boolean dbg = true; |
public static boolean dbg = false; |
35 |
private static void p(String s) { System.out.println("FenPDFContext:: "+s); } |
private static void p(String s) { System.out.println("FenPDFContext:: "+s); } |
36 |
|
|
37 |
private Fen fen; |
private Fen fen; |
94 |
rigthLink = false; |
rigthLink = false; |
95 |
setOrigin = false; |
setOrigin = false; |
96 |
unSetOrigin = false; |
unSetOrigin = false; |
97 |
|
|
98 |
|
if (main instanceof MainNode2D); |
99 |
|
else return; |
100 |
|
|
101 |
|
|
102 |
// what to do if accursed is NULL? |
// what to do if accursed is NULL? |
103 |
if (accursed==null) { |
if (accursed==null) { |
|
if (main instanceof MainNode2D) |
|
104 |
cursor = true; |
cursor = true; |
105 |
// fishey doesn't need cursor (currently) |
// fishey doesn't need cursor (currently) |
106 |
} |
} |
146 |
} |
} |
147 |
|
|
148 |
|
|
149 |
public boolean doMouse(MouseEvent e, VobScene oldVS) { |
public boolean doMouse(MouseEvent e, VobScene oldVS, |
150 |
|
AbstractMainNode2D main) { |
151 |
|
// only in canvas |
152 |
|
if (main instanceof MainNode2D); |
153 |
|
else return false; |
154 |
|
|
155 |
|
|
156 |
if (e.getID() != MouseEvent.MOUSE_CLICKED) return false; |
if (e.getID() != MouseEvent.MOUSE_CLICKED) return false; |
157 |
int cs = oldVS.coords.getCSAt(0, e.getX(), e.getY(), null); |
int cs = oldVS.coords.getCSAt(0, e.getX(), e.getY(), null); |
158 |
Object obKey = oldVS.matcher.getKey(cs); |
Object obKey = oldVS.matcher.getKey(cs); |