LogicException
$Author: bel70 $
$Revision: 1.1 $
248249250251252253254255256257258
double height = bounds.getHeight(); return new String[] { id, ""+width, ""+height, ""+connections }; } } throw new LogicException("Type not connected: "+o); } public String[] getHeaders() { return new String[] { "ID", "Width", "Height", "Connections" }; }
202122232425262728
this.id = createID(); } public AbstractIdentifiableDiagramElement(String id) { if (id==null) { throw new LogicException("Cannot create diagram element with null id"); } this.id = id; }
56575859606162
public X otherEnd(X end) { if (end == from) return to; if (end == to) return from; throw new LogicException("This is not an end: " + end + " of " + this); }