com.tensegrity.composite.util
Class CompositeViewRegionUpdateInfo

java.lang.Object
  extended bycom.tensegrity.composite.util.CompositeViewRegionUpdateInfo

public class CompositeViewRegionUpdateInfo
extends java.lang.Object

This class is useful for translations of bounding boxes from coordinatesystem-space to boundingbox (view)-space and vice versa. This functionality is used by the classes SwingGraphPanel and NavigatorPanel in the gui-package.

Version:
$Id: CompositeViewRegionUpdateInfo.java,v 1.4 2004/01/27 16:49:22 AndreasEbbert Exp $
Author:
MichaelKegel

Constructor Summary
CompositeViewRegionUpdateInfo(Boundary regionInCoordinateSystemSpace, Boundary regionInBoundingBoxSpace)
          Constructor specifying a boundary in CoordinateSystem-space and one in BoundingBox-space.
CompositeViewRegionUpdateInfo(Boundary regionInCoordinateSystemSpace, Boundary regionInBoundingBoxSpace, boolean coordinateSystemChanged)
          Constructor specifying a boundary in CoordinateSystem-space and one in BoundingBox-space.
 
Method Summary
 Boundary getRegionInBoundingBoxSpace()
          Returns a Boundary for the region in boundingbox-space.
 Boundary getRegionInCoordinateSystemSpace()
          Returns a Boundary for the region in coordinatesystem-space.
 boolean hasCoordinateSystemChanged()
          Indicating whether the CoordinateSystem changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeViewRegionUpdateInfo

public CompositeViewRegionUpdateInfo(Boundary regionInCoordinateSystemSpace,
                                     Boundary regionInBoundingBoxSpace)
Constructor specifying a boundary in CoordinateSystem-space and one in BoundingBox-space.

Parameters:
regionInCoordinateSystemSpace - a Boundary in coordinatesystem-space.
regionInBoundingBoxSpace - a Boundary in boundingbox (view)-space.

CompositeViewRegionUpdateInfo

public CompositeViewRegionUpdateInfo(Boundary regionInCoordinateSystemSpace,
                                     Boundary regionInBoundingBoxSpace,
                                     boolean coordinateSystemChanged)
Constructor specifying a boundary in CoordinateSystem-space and one in BoundingBox-space.

Parameters:
regionInCoordinateSystemSpace - a Boundary in coordinatesystem-space.
regionInBoundingBoxSpace - a Boundary in boundingbox (view)-space.
coordinateSystemChanged - indicates whether the CoordinateSystem has changed.
Method Detail

getRegionInCoordinateSystemSpace

public Boundary getRegionInCoordinateSystemSpace()
Returns a Boundary for the region in coordinatesystem-space.

Returns:
a Boundary for the region in coordinatesystem-space.

getRegionInBoundingBoxSpace

public Boundary getRegionInBoundingBoxSpace()
Returns a Boundary for the region in boundingbox-space.

Returns:
a Boundary for the region in boundingbox-space.

hasCoordinateSystemChanged

public boolean hasCoordinateSystemChanged()
Indicating whether the CoordinateSystem changed.

Returns:
true, if the CoordinateSystem changed.


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