// For Real Primitive public void setPrimitiveText(final Primitive prime) { this.setCoordsText(prime.getVertices(), ""); String info_str; info_str = prime.toInfoBoxString().trim(); if (info_str.length() > 0) { strbuf.append("\n" + info_str); num_rows++; } Drawable prime_parent; prime_parent = prime.getParent(); if (prime_parent != null) { info_str = prime_parent.toInfoBoxString().trim(); if (info_str.length() > 0) { strbuf.append("\n" + info_str); num_rows++; } } }
// For Real Composite public void setCompositeText(final Composite cmplx) { Coord[] cmplx_coords; cmplx_coords = new Coord[] {cmplx.getStartVertex(), cmplx.getFinalVertex()}; this.setCoordsText(cmplx_coords, ""); String info_str; info_str = cmplx.toInfoBoxString().trim(); if (info_str.length() > 0) { strbuf.append("\n" + info_str); num_rows++; } Drawable cmplx_parent; cmplx_parent = cmplx.getParent(); if (cmplx_parent != null) { info_str = cmplx_parent.toInfoBoxString().trim(); if (info_str.length() > 0) { strbuf.append("\n" + info_str); num_rows++; } } }