コード例 #1
0
  protected void setGrabPoint(MouseEvent e) {
    OffsetGrabPoint ogb =
        (OffsetGrabPoint) graphic.getGrabPoint(EditableOMPoint.OFFSET_POINT_INDEX);
    ogb.set(e.getX(), e.getY());
    ogb.updateOffsets();

    graphic.setMovingPoint(graphic.getGrabPoint(EditableOMPoint.OFFSET_POINT_INDEX));
    graphic.redraw(e);
    graphic.fireEvent(
        EOMGCursors.PUTNODE,
        i18n.get(
            PointSetOffsetState.class,
            "Click_to_place_offset_point.",
            "Click to place offset point."));
  }