| | |
| | | return new Coordinate(dstPt[0], dstPt[1]); |
| | | } |
| | | |
| | | public Object clone() throws CloneNotSupportedException |
| | | { |
| | | int pos = this.rawBuffer.position(); |
| | | this.rawBuffer.position(0); |
| | | byte[] rawBytes = this.rawBuffer.array(); |
| | | byte[] otherRaw = new byte[rawBytes.length]; |
| | | System.arraycopy(rawBytes, 0, otherRaw, 0, rawBytes.length); |
| | | this.rawBuffer.position(pos); |
| | | |
| | | TextElement other = new TextElement(otherRaw); |
| | | return other; |
| | | } |
| | | |
| | | public static class ElementHandler extends Element.ElementHandler |
| | | { |
| | | private static ElementHandler instance = null; |