void setRelateLabel(JLabel lbl, int imValue) { buf.setCharAt(0, org.locationtech.jts.geom.Dimension.toDimensionSymbol(imValue)); lbl.setText(buf.toString()); }
/** * Returns a nine-character <code>String</code> representation of this <code>IntersectionMatrix</code> * . * *@return the nine dimension symbols of this <code>IntersectionMatrix</code> * in row-major order. */ public String toString() { StringBuilder builder = new StringBuilder("123456789"); for (int ai = 0; ai < 3; ai++) { for (int bi = 0; bi < 3; bi++) { builder.setCharAt(3 * ai + bi, Dimension.toDimensionSymbol(matrix[ai][bi])); } } return builder.toString(); } }