com.tensegrity.graph.view
Interface VisualPortDenotation


public interface VisualPortDenotation

Instances of this class describe the characteristics of a VisualPort. One instance of VisualPortDenotation is associated with each VisualPort.

A VisualPortDenotation defines the angular interval where incoming and outgoing edges are allowed to connect to the associated VisualPort.

Version:
$Id: VisualPortDenotation.java,v 1.4 2005/01/27 11:02:56 KevinCVS Exp $
Author:
MichaelKegel, Stepan Rutz
See Also:
VisualPort

Method Summary
 VisualPortDenotation deepCopy()
          Returns a deep independent copy of this VisualPortDenotation object.
 double[] getBoundedInterval()
          Return the angular interval which this denotation accepts as incoming directions for VisualEdges.
 boolean isDirectionAccepted(double direction)
          Tests whether the given direction is accepted by this VisualPortDenotation.
 

Method Detail

getBoundedInterval

public double[] getBoundedInterval()
Return the angular interval which this denotation accepts as incoming directions for VisualEdges.

Returns:
a double array of length two, where the value stored at index 0 denotes the beginning of the interval and the value stored at index 1 denotes the end of the interval.

isDirectionAccepted

public boolean isDirectionAccepted(double direction)
Tests whether the given direction is accepted by this VisualPortDenotation.

Parameters:
direction - the direction to check (in degrees).
Returns:
true when the direction is within the interval of this VisualPortDenotation, otherwise false.

deepCopy

public VisualPortDenotation deepCopy()
Returns a deep independent copy of this VisualPortDenotation object.

Returns:
a deep independent copy of this VisualPortDenotation object.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.