* want the graphic to change according to the grab points.
*/
public void setGrabPoints() {
int renderType = text.getRenderType();
LatLonPoint llp1;
Debug.message("eomt", "EditableOMText.setGrabPoints()");
// Do center point for lat/lon or offset points
if (renderType == OMGraphic.RENDERTYPE_LATLON) {
if (projection != null) {
// movingPoint == gpc
llp1 = projection.inverse(gpc.getX(), gpc.getY());
text.setLat(llp1.getLatitude());
text.setLon(llp1.getLongitude());
// text.setNeedToRegenerate set
}
}
boolean settingOffset = getStateMachine().getState() instanceof GraphicSetOffsetState
&& movingPoint == gpo;
// If the center point is moving, the offset distance changes
if (renderType == OMGraphic.RENDERTYPE_OFFSET) {
llp1 = projection.inverse(gpo.getX(), gpo.getY());
text.setLat(llp1.getLatitude());
text.setLon(llp1.getLongitude());
if (settingOffset || movingPoint == gpc) {
// Don't call point.setLocation because we only want
// to
// setNeedToRegenerate if !settingOffset.