public void addAttribute(String attribute, Object... values) { attributeLock.lock(); wrappedElement.addAttribute(attribute, values); attributeLock.unlock(); }
public void addAttribute(String attribute, Object... values) { attributeLock.lock(); wrappedElement.addAttribute(attribute, values); attributeLock.unlock(); }
/** * Attach the sprite to a node with the given identifier. If needed the * sprite is first detached. If the given node identifier does not exist, * the sprite stays in detached state. * * @param id * Identifier of the node to attach to. */ public void attachToNode(String id) { if (attachment != null) detach(); attachment = manager.graph.getNode(id); if (attachment != null) attachment.addAttribute(completeId); }
/** * Attach the sprite to an edge with the given identifier. If needed the * sprite is first detached. If the given edge identifier does not exist, * the sprite stays in detached state. * * @param id * Identifier of the edge to attach to. */ public void attachToEdge(String id) { if (attachment != null) detach(); attachment = manager.graph.getEdge(id); if (attachment != null) attachment.addAttribute(completeId); }
/** * Attach the sprite to a node with the given identifier. If needed the * sprite is first detached. If the given node identifier does not exist, * the sprite stays in detached state. * * @param id * Identifier of the node to attach to. */ public void attachToNode(String id) { if (attachment != null) detach(); attachment = manager.graph.getNode(id); if (attachment != null) attachment.addAttribute(completeId); }
/** * Attach the sprite to an edge with the given identifier. If needed the * sprite is first detached. If the given edge identifier does not exist, * the sprite stays in detached state. * * @param id * Identifier of the edge to attach to. */ public void attachToEdge(String id) { if (attachment != null) detach(); attachment = manager.graph.getEdge(id); if (attachment != null) attachment.addAttribute(completeId); }