Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.jboogie.util

Class NewPositioner

com.gentleware.jboogie.util.NewPositioner

public class NewPositioner


Objects of this class help determining the position of a new node in class "CommandAddNode".

you may parametrize this by two ways - either with a position (for example when you click somewhere in the diagram), or by suppliying locators. you then call getNewPosition() [passing the new graphNode], and depending on how this object was initialized, the stored Point is returned, OR the locators are being asked on how to find a new Point.

NOTE: This class replaces the former passing of two parameters: position AND a locator - now just use the constructor. also, it is necessary for the iterativePolarLocator - we may call that locator only if we already have created the new node - so this object is used to store the locators until they are used in commandAddNode. (formerly, the locators were called in the PRapidButtons already, but there the new node had not been created yet) Created: 28.04.2003

Authors:
Per Fragemann


 Attribute Summary
private String  _diagramDiIdSerial
 
private String  _fixedNodeDiIdSerial
 
arrow_up
 

 Association Summary
private DiId  _diagramDiId
 
private DiId  _fixedNodeDiId
 
private GraphNodePointLocator  _fixedNodeLocator
 
private GraphNodePointLocator  _newNodeLocator
 
private Point2D  _newPosition
 
private SPoint2DDouble  _newPositionSerial
 
arrow_up
 

 Constructor Summary
public   NewPositioner(Point2D newPosition, GraphNodePointLocator fixedNodeLocator, GraphNodePointLocator newNodeLocator, DiId fixedNodeDiId, DiId diagramDiId)
Constructor for internal use only - for the enterprise edition to be precise  
public   NewPositioner(Point2D newPosition)
 
public   NewPositioner(Point2D newPosition, GraphNodePointLocator newNodeLocator)
 
public   NewPositioner(GraphNodePointLocator fixedNodeLocator, GraphNodePointLocator newNodeLocator, DiId fixedNodeDiId, DiId diagramDiId)
 
arrow_up
 

 Method Summary
public void   deserialize(ProjectImpl project)
 
public DiId   getInternalDiagramDiId()
 
public DiId   getInternalFixedNodeDiID()
 
public GraphNodePointLocator   getInternalFixedNodeLocator()
 
public GraphNodePointLocator   getInternalNewNodeLocator()
 
public Point2D   getInternalNewPosition()
 
public Point2D   getNewPosition(GraphNodeImpl newGraphNode)
 
public void   serialize()
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

_diagramDiIdSerial

private String _diagramDiIdSerial

arrow_up


_fixedNodeDiIdSerial

private String _fixedNodeDiIdSerial

arrow_up
 Association Detail

_diagramDiId

private DiId _diagramDiId

arrow_up


_fixedNodeDiId

private DiId _fixedNodeDiId

arrow_up


_fixedNodeLocator

private GraphNodePointLocator _fixedNodeLocator

arrow_up


_newNodeLocator

private GraphNodePointLocator _newNodeLocator

arrow_up


_newPosition

private Point2D _newPosition

arrow_up


_newPositionSerial

private SPoint2DDouble _newPositionSerial

arrow_up
 Constructor Detail

NewPositioner

public NewPositioner NewPositioner(Point2D newPosition, GraphNodePointLocator fixedNodeLocator, GraphNodePointLocator newNodeLocator, DiId fixedNodeDiId, DiId diagramDiId)


Constructor for internal use only - for the enterprise edition to be precise  
Parameters:
newPosition -
fixedNodeLocator -
newNodeLocator -
fixedNodeDiId -
diagramDiId -
Returns:
arrow_up


NewPositioner

public NewPositioner NewPositioner(Point2D newPosition)

Parameters:
newPosition -
Returns:
arrow_up


NewPositioner

public NewPositioner NewPositioner(Point2D newPosition, GraphNodePointLocator newNodeLocator)

Parameters:
newPosition -
newNodeLocator -
Returns:
arrow_up


NewPositioner

public NewPositioner NewPositioner(GraphNodePointLocator fixedNodeLocator, GraphNodePointLocator newNodeLocator, DiId fixedNodeDiId, DiId diagramDiId)

Parameters:
fixedNodeLocator -
newNodeLocator -
fixedNodeDiId -
diagramDiId -
Returns:
arrow_up
 Method Detail

deserialize

public void deserialize(ProjectImpl project)

Parameters:
project -
arrow_up


getInternalDiagramDiId

public DiId getInternalDiagramDiId()

Returns:
arrow_up


getInternalFixedNodeDiID

public DiId getInternalFixedNodeDiID()

Returns:
arrow_up


getInternalFixedNodeLocator

public GraphNodePointLocator getInternalFixedNodeLocator()

Returns:
arrow_up


getInternalNewNodeLocator

public GraphNodePointLocator getInternalNewNodeLocator()

Returns:
arrow_up


getInternalNewPosition

public Point2D getInternalNewPosition()

Returns:
arrow_up


getNewPosition

public Point2D getNewPosition(GraphNodeImpl newGraphNode)

Parameters:
newGraphNode -
Returns:
arrow_up


serialize

public void serialize()

arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.