Examples of toPosition()


Examples of com.opengamma.master.position.ManageablePosition.toPosition()

    ArgumentChecker.notNull(uniqueId, "uniqueId");
    final ManageablePosition manPos = getPositionMaster().get(uniqueId).getPosition();
    if (manPos == null) {
      throw new DataNotFoundException("Unable to find position: " + uniqueId);
    }
    return manPos.toPosition();
  }

  @Override
  public Position getPosition(final ObjectId objectId, final VersionCorrection versionCorrection) {
    ArgumentChecker.notNull(objectId, "objectId");
View Full Code Here

Examples of com.opengamma.master.position.ManageablePosition.toPosition()

    ArgumentChecker.notNull(versionCorrection, "versionCorrection");
    final ManageablePosition position = getPositionMaster().get(objectId, versionCorrection).getPosition();
    if (position == null) {
      throw new DataNotFoundException("Unable to find position: " + objectId + " at " + versionCorrection);
    }
    return position.toPosition();
  }

  @Override
  public Trade getTrade(final UniqueId uniqueId) {
    ArgumentChecker.notNull(uniqueId, "uniqueId");
View Full Code Here

Examples of net.sf.myway.edit.ui.editors.CoordinateSystem.toPosition()

    if (_relative) {
      final Point point = cs.toPoint(center.getPosition());
      pos.x += point.x;
      pos.y += point.y;
    }
    final Position position = cs.toPosition(pos);
    MapNode n = getBL().findNode(position);
    if (getBL().hasSingleReference(center)) {
      // there is only one reference to the current center node
      if (n == null)
        // at the move destination there is no node, so we can move it
View Full Code Here

Examples of net.sf.myway.edit.ui.editors.CoordinateSystem.toPosition()

   * @see org.eclipse.gef.commands.Command#execute()
   */
  @Override
  public void execute() {
    final CoordinateSystem cs = _target.getCoordinateSystem();
    final Position position = cs.toPosition(_location);
    MapNode n = EditPlugin.getBL().findNode(position);
    if (n == null) {
      n = new MapNode();
      n.setPosition(position);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.