Protege-2000 1.7

edu.stanford.smi.protegex.layout
Class ActorLocation

java.lang.Object
  |
  +--edu.stanford.smi.protegex.layout.ActorLocation
All Implemented Interfaces:
Copyable

public final class ActorLocation
extends Object
implements Copyable

"Fancy Rectangle"

Author:
William Grosso

Field Summary
protected  Rectangle _coordinateSystem
           
 
Constructor Summary
ActorLocation(Point basePoint, int height, int width, Rectangle coordinateSystem)
           
 
Method Summary
 boolean contains(Point point)
           
 Object copy()
           
 void getBasePoint(Point returnValue)
           
 int getBaseX()
           
 int getBaseY()
           
 void getBounds(Rectangle returnValue)
           
 void getCenterPoint(Point returnValue)
           
 int getCenterX()
           
 int getCenterY()
           
 void getExtensionPoint(Point returnValue)
           
 int getExtensionX()
           
 int getExtensionY()
           
 int getHeight()
           
 int getWidth()
           
 boolean intersects(ActorLocation location)
           
 boolean intersects(Rectangle location)
           
 boolean isInside(Rectangle rectangle)
           
 boolean isInsideCoordinateSystem()
           
 void move(int x, int y)
           
 void moveInsideCoordinateSystem()
           
 void reflectIntoCoordinateSystem()
           
 void setBasePoint(Point basePoint)
           
 void setCoordinateSystem(Rectangle coordinateSystem)
           
 void setExtensionPoint(Point extensionPoint)
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 String toString()
           
 void translate(int deltaX, int deltaY)
           
 boolean translationStaysInCoordinateSystem(int deltaX, int deltaY)
           
 void wrapIntoCoordinateSystem()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_coordinateSystem

protected Rectangle _coordinateSystem
Constructor Detail

ActorLocation

public ActorLocation(Point basePoint,
                     int height,
                     int width,
                     Rectangle coordinateSystem)
Method Detail

contains

public boolean contains(Point point)

copy

public Object copy()
Specified by:
copy in interface Copyable

getBasePoint

public void getBasePoint(Point returnValue)

getBaseX

public int getBaseX()

getBaseY

public int getBaseY()

getBounds

public void getBounds(Rectangle returnValue)

getCenterPoint

public void getCenterPoint(Point returnValue)

getCenterX

public int getCenterX()

getCenterY

public int getCenterY()

getExtensionPoint

public void getExtensionPoint(Point returnValue)

getExtensionX

public int getExtensionX()

getExtensionY

public int getExtensionY()

getHeight

public int getHeight()

getWidth

public int getWidth()

intersects

public boolean intersects(ActorLocation location)

intersects

public boolean intersects(Rectangle location)

isInside

public boolean isInside(Rectangle rectangle)

isInsideCoordinateSystem

public boolean isInsideCoordinateSystem()

move

public void move(int x,
                 int y)

moveInsideCoordinateSystem

public void moveInsideCoordinateSystem()

reflectIntoCoordinateSystem

public void reflectIntoCoordinateSystem()

setBasePoint

public void setBasePoint(Point basePoint)

setCoordinateSystem

public void setCoordinateSystem(Rectangle coordinateSystem)

setExtensionPoint

public void setExtensionPoint(Point extensionPoint)

setHeight

public void setHeight(int height)

setWidth

public void setWidth(int width)

toString

public String toString()
Overrides:
toString in class Object

translate

public void translate(int deltaX,
                      int deltaY)

translationStaysInCoordinateSystem

public boolean translationStaysInCoordinateSystem(int deltaX,
                                                  int deltaY)

wrapIntoCoordinateSystem

public void wrapIntoCoordinateSystem()

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.