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 IterativePolarLocatorDecorator

com.gentleware.jboogie.util.GraphNodePointLocator
    inheritcom.gentleware.jboogie.util.IterativePolarLocatorDecorator

public class IterativePolarLocatorDecorator


Created: 24.03.2003


 Attribute Summary
private double  _angle
 
private double  _angleMax
 
private double  _delta
 
private double  _deltaStep
 
arrow_up
 

 Association Summary
private GraphNodePointLocator  _locator
 
private GraphNodeBoundsLocator  _newNodeLocator
 
public NewNodePlacement  newNodePlacement
 
public NewNodePlacement  newNodePlacement_1
 
public NewNodePlacement  newNodePlacement_2
 
public NewNodePlacement  newNodePlacement_3
 
arrow_up
 

 Constructor Summary
public   IterativePolarLocatorDecorator(GraphNodePointLocator locator, double delta, double angle, double angleMax, double deltaStep, GraphNodeBoundsLocator newNodeLocator)
 
arrow_up
 

 Method Summary
private Point2D   check(GraphNodeImpl newNode, GraphNodeImpl fixedNode, DiId diagramDiId, double currAngle, double currDistance, GeneralPath genPath)
 
private void   generatePath(GraphElement containerElement, int border, GeneralPath genPath, GraphElement ignoreElement)
this method generates a GeneralPath for a given GraphElement and all its subcomponents (recursively)  
public Point2D   locatePoint(GraphNodeImpl fixedGraphNode, GraphNodeImpl newNode, DiId diagramDiId)
 
public double   locateX(GraphNodeImpl fixedNode, GraphNodeImpl newNode, DiId diagramDiId)
 
public double   locateY(GraphNodeImpl fixedNode, GraphNodeImpl newNode, DiId diagramDiId)
 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 26
gentleware-imported-package-statement-line-number 5
 

 Attribute Detail

_angle

private double _angle

arrow_up


_angleMax

private double _angleMax

arrow_up


_delta

private double _delta

arrow_up


_deltaStep

private double _deltaStep

arrow_up
 Association Detail

_locator

private GraphNodePointLocator _locator

arrow_up


_newNodeLocator

private GraphNodeBoundsLocator _newNodeLocator

arrow_up


newNodePlacement

public NewNodePlacement newNodePlacement

arrow_up


newNodePlacement_1

public NewNodePlacement newNodePlacement_1

arrow_up


newNodePlacement_2

public NewNodePlacement newNodePlacement_2

arrow_up


newNodePlacement_3

public NewNodePlacement newNodePlacement_3

arrow_up
 Constructor Detail

IterativePolarLocatorDecorator

public com.gentleware.jboogie.util.IterativePolarLocatorDecorator IterativePolarLocatorDecorator(GraphNodePointLocator locator, double delta, double angle, double angleMax, double deltaStep, GraphNodeBoundsLocator newNodeLocator)

Parameters:
locator - the locator that determines the corner of the current graphnode, from which we want to offset the new graphnode
delta -
angle -
angleMax -
deltaStep -
newNodeLocator - after determinint the absolute position from the corner, this is the locator that will be applied to the new node so that it is not centered on the position, but moved so that it fits nicely.
Returns:
arrow_up
 Method Detail

check

private Point2D check(GraphNodeImpl newNode, GraphNodeImpl fixedNode, DiId diagramDiId, double currAngle, double currDistance, GeneralPath genPath)

Parameters:
newNode -
fixedNode -
diagramDiId -
currAngle -
currDistance -
genPath -
Returns:
arrow_up


generatePath

private void generatePath(GraphElement containerElement, int border, GeneralPath genPath, GraphElement ignoreElement)


this method generates a GeneralPath for a given GraphElement and all its subcomponents (recursively)  
Parameters:
containerElement - the GraphElement to start with
border - each contained element is made bigger by this border to prevent elements from getting too close
genPath - the path that is generated recursively
ignoreElement - the new element that is already inside the container, but which should be ignored for finding the correct place
arrow_up


locatePoint

public Point2D locatePoint(GraphNodeImpl fixedGraphNode, GraphNodeImpl newNode, DiId diagramDiId)

Parameters:
fixedGraphNode -
newNode -
diagramDiId -
Returns:
arrow_up


locateX

public double locateX(GraphNodeImpl fixedNode, GraphNodeImpl newNode, DiId diagramDiId)

Parameters:
fixedNode -
newNode -
diagramDiId -
Returns:
arrow_up


locateY

public double locateY(GraphNodeImpl fixedNode, GraphNodeImpl newNode, DiId diagramDiId)

Parameters:
fixedNode -
newNode -
diagramDiId -
Returns:
arrow_up
Created  2004 - 12 - 1

    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.