*/
public boolean mouseClicked(MouseEvent e) {
int descriptor = MOUSE_CLICKED_MASK;
LinkOMGraphicList graphics = getGraphicList();
if (graphics == null) {
Debug.message("link",
"DrawLinkLayer.mouseClicked: null LinkOMGraphicList, making new one...");
// If the graphic list is null then LinkLayer::mouseClicked will
// not report the mouse click to the server. Set it to an empty
// list to continue processing.
graphics = new LinkOMGraphicList();
setGraphicList(graphics);
}
Debug.message("link", "DrawLinkLayer mouseClicked");
OMGraphic gesGraphic = null;
LinkOMGraphicList selectableList = new LinkOMGraphicList();
OMGraphic g;
Properties p;
String selectable;
for (Iterator it = graphics.iterator(); it.hasNext();) {
g = (OMGraphic) it.next();
p = (Properties) g.getAppObject();
selectable = p.getProperty(LPC_SELECTABLE);
if (selectable.equals("true")) {
selectableList.add(g);
}
}
gesGraphic = selectableList.findClosest(e.getX(),
e.getY(),
distanceLimit);
try {