| | |
| | | } |
| | | |
| | | tempString = tpclid.substring(0, 1); |
| | | int xmapid = Integer.parseInt(tpclid.substring(1, 2)); |
| | | int xmapid = Integer.parseInt(tpclid.substring(1, 3)); |
| | | |
| | | // Get the origin point |
| | | point = getOriginPoint(tempString, xmapid); |
| | |
| | | } |
| | | |
| | | |
| | | tempString = tpclid.substring(1, 4); |
| | | tempString = tpclid.substring(1, 5); |
| | | width = SX1200; |
| | | height = SY1200; |
| | | |
| | |
| | | |
| | | if (tpclid.length() >= 7) |
| | | { |
| | | tempString = (asciiToInt(tpclid.substring(5, 1)) - 65) + "" + (asciiToInt(tpclid.substring(6, 1)) - 65); |
| | | tempString = (asciiToInt(tpclid.substring(5, 6)) - 65) + "" + (asciiToInt(tpclid.substring(6, 7)) - 65); |
| | | tempPoint = twoNumberScale(tempString, 100); |
| | | if (tempPoint != null) |
| | | { |
| | |
| | | |
| | | if (tpclid.length() >= 9) |
| | | { |
| | | tempString = tpclid.substring(7, 2); |
| | | tempString = tpclid.substring(7, 8); |
| | | tempPoint = twoNumberScale(tempString, 10); |
| | | if (tempPoint != null) |
| | | { |
| | |
| | | |
| | | if (tpclid.length() >= 11) |
| | | { |
| | | tempString = tpclid.substring(9); |
| | | tempString = tpclid.substring(10); |
| | | tempPoint = twoNumberScale(tempString, 1); |
| | | if (tempPoint != null) |
| | | { |
| | |
| | | } |
| | | |
| | | tempString = tpclid.substring(0, 1); |
| | | int xmapid = Integer.parseInt(tpclid.substring(1, 2)); |
| | | int xmapid = Integer.parseInt(tpclid.substring(1, 3)); |
| | | |
| | | // Get the origin point |
| | | point = getOriginPoint(tempString, xmapid); |
| | |
| | | } |
| | | |
| | | |
| | | tempString = tpclid.substring(1, 4); |
| | | tempString = tpclid.substring(1, 5); |
| | | |
| | | tempPoint = twoNumberScale(tempString, 800, 500); |
| | | if (tempPoint != null) |
| | |
| | | |
| | | if (tpclid.length() >= 7) |
| | | { |
| | | tempString = (asciiToInt(tpclid.substring(5, 1)) - 65) + "" + (asciiToInt(tpclid.substring(6, 1)) - 65); |
| | | tempString = (asciiToInt(tpclid.substring(5, 6)) - 65) + "" + (asciiToInt(tpclid.substring(6, 7)) - 65); |
| | | tempPoint = twoNumberScale(tempString, 100); |
| | | if (tempPoint != null) |
| | | { |
| | |
| | | |
| | | if (tpclid.length() >= 9) |
| | | { |
| | | tempString = tpclid.substring(7, 2); |
| | | tempString = tpclid.substring(7, 9); |
| | | tempPoint = twoNumberScale(tempString, 10); |
| | | if (tempPoint != null) |
| | | { |
| | |
| | | |
| | | if (tpclid.length() >= 11) |
| | | { |
| | | tempString = tpclid.substring(9); |
| | | tempString = tpclid.substring(10); |
| | | tempPoint = twoNumberScale(tempString, 1); |
| | | if (tempPoint != null) |
| | | { |
| | |
| | | if (number.length() == 2) |
| | | { |
| | | tempPoint.x = Double.parseDouble(number.substring(0, 1)) * scaleX; |
| | | tempPoint.y = Double.parseDouble(number.substring(1, 1)) * scaleY; |
| | | tempPoint.y = Double.parseDouble(number.substring(1, 2)) * scaleY; |
| | | } else if (number.length() == 1) |
| | | { |
| | | tempPoint.x = Double.parseDouble(number.substring(0, 1)) * scaleX; |
| | |
| | | } else if (number.length() == 4) |
| | | { |
| | | tempPoint.x = Double.parseDouble(number.substring(0, 2)) * scaleX; |
| | | tempPoint.y = Double.parseDouble(number.substring(2, 2)) * scaleY; |
| | | tempPoint.y = Double.parseDouble(number.substring(2, 4)) * scaleY; |
| | | } else |
| | | { |
| | | tempPoint.x = 0; |