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.layout

Class LayoutableNodes

com.gentleware.jboogie.layout.LayoutableNodes

public class LayoutableNodes



 Constructor Summary
private   LayoutableNodes()
 
arrow_up
 

 Method Summary
static Point2D   clipAtAdornments(Project project, LayoutableNode node, Point2D nodePoint, Point2D otherPoint)
 
public static Point2D   getClosestPointOnEllipse(LayoutableNode node, double otherX, double otherY)
 
public static Point2D   getClosestPointOnRoundRectangle(LayoutableNode node, double arcWidthScale, double arcWidthMinimum, double arcHeightScale, double arcHeightMinimum, double otherX, double otherY)
 
public static Point2D   getClosestPointOnRoundRectangle(LayoutableNode node, double arcScale, double arcMinimum, double otherX, double otherY)
 
public static Segment   getShortestSegmentBetweenNodes(Project project, LayoutableNode nodeA, LayoutableNode nodeB, boolean snapToBorder)
Calculates the shortest segment between two nodes. 
public static Segment   getShortestSegmentBetweenNodes(Project project, LayoutableElement elementA, Point2D initialPointA, LayoutableElement elementB, Point2D initialPointB)
Calculates the shortest segment between two nodes. 
arrow_up
 

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

 Constructor Detail

LayoutableNodes

private com.gentleware.jboogie.layout.LayoutableNodes LayoutableNodes()

Returns:
arrow_up
 Method Detail

clipAtAdornments

static Point2D clipAtAdornments(Project project, LayoutableNode node, Point2D nodePoint, Point2D otherPoint)

Parameters:
project -
node -
nodePoint -
otherPoint -
Returns:
arrow_up


getClosestPointOnEllipse

public static Point2D getClosestPointOnEllipse(LayoutableNode node, double otherX, double otherY)

Parameters:
node - must be an ellipse
otherX -
otherY -
Returns:
the closest point on the border of node from otherPoint
arrow_up


getClosestPointOnRoundRectangle

public static Point2D getClosestPointOnRoundRectangle(LayoutableNode node, double arcWidthScale, double arcWidthMinimum, double arcHeightScale, double arcHeightMinimum, double otherX, double otherY)

Parameters:
node -
arcWidthScale -
arcWidthMinimum -
arcHeightScale -
arcHeightMinimum -
otherX -
otherY -
Returns:
arrow_up


getClosestPointOnRoundRectangle

public static Point2D getClosestPointOnRoundRectangle(LayoutableNode node, double arcScale, double arcMinimum, double otherX, double otherY)

Parameters:
node -
arcScale -
arcMinimum -
otherX -
otherY -
Returns:
arrow_up


getShortestSegmentBetweenNodes

public static Segment getShortestSegmentBetweenNodes(Project project, LayoutableNode nodeA, LayoutableNode nodeB, boolean snapToBorder)


Calculates the shortest segment between two nodes. The initial points must be non-null and in global coordinate system.  
Parameters:
project -
nodeA -
nodeB -
snapToBorder - true: the segment's start and end point will be positioned on the border of the nodes
false: they will only be in the rectangular bounds containing the node, so they may be outside of the node (if the node isn't rectangular) or even on the inside (if the two nodes overlap) (used for adornments)
Returns:
the shortest line segment between the two node in GLOBAL coordinates
arrow_up


getShortestSegmentBetweenNodes

public static Segment getShortestSegmentBetweenNodes(Project project, LayoutableElement elementA, Point2D initialPointA, LayoutableElement elementB, Point2D initialPointB)


Calculates the shortest segment between two nodes. The initial points must non-null and in global coordinate system.  
Parameters:
project -
elementA -
initialPointA -
elementB -
initialPointB -
Returns:
the shortest line segment between the two node in GLOBAL coordinates
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.