}
try {
// We do want the link object here... If another thread is
// using the link, wait.
ClientLink l = linkManager.getLink(true);
if (l == null) {
System.err.println("LinkLayer.drawingComplete: unable to get link.");
return;
}
synchronized (l) {
LinkActionList lal = new LinkActionList(l, new LinkProperties());
if (action.isMask(OMAction.ADD_GRAPHIC_MASK)
|| action.isMask(OMAction.UPDATE_GRAPHIC_MASK)) {
lal.writeGraphicGestureHeader(action.getValue());
LinkGraphic.write(omg, l);
} else {
// This shouldn't ever get called with a null lp
// properties object. If the object is new or
// doesn't have an ID, the upper paragraph will
// get called.
lal.modifyGraphic(action.getValue(), lp);
}
lal.end(Link.END_TOTAL);
}
l.readAndParse(getProjection(), currentGenerator);
linkManager.finLink();
} catch (UnknownHostException uhe) {
Debug.error("LinkLayer: unknown host!");
} catch (java.io.IOException ioe) {