|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.sequence.geom.SequenceAlignmentRectangle
SequenceAlignmentRectangle.java Defines a rectangular region in a sequence alignment. NB: objects of this class perform no checks as to the validity of the region defined. Created: Mon Mar 27 12:41:18 2000
Constructor Summary | |
SequenceAlignmentRectangle()
|
|
SequenceAlignmentRectangle(int x,
int y,
int width,
int height)
|
|
SequenceAlignmentRectangle(int x,
int y,
SequenceAlignmentDimension dim)
|
|
SequenceAlignmentRectangle(SequenceAlignmentPoint point,
int width,
int height)
|
|
SequenceAlignmentRectangle(SequenceAlignmentRectangle rect)
|
Method Summary | |
void |
add(int newx,
int newy)
|
void |
add(SequenceAlignmentPoint point)
|
int |
compareTo(Object obj)
Compares another rectangle to this one. |
boolean |
contains(int x,
int y)
Determines whether a point is contained in this region. |
boolean |
contains(SequenceAlignmentPoint point)
Determines whether a point is contained in this region. |
boolean |
equals(Object obj)
Compares two SARectangles for equality (ie: whether they have the same dimension and location). |
SequenceAlignmentRectangle |
getBounds()
Returns the rectangle which defines the boundries of the region defined by this object. |
int |
getHeight()
|
SequenceAlignmentPoint |
getLocation()
Returns the location of the rectangle |
SequenceAlignmentDimension |
getSize()
Returns the size of the rectangle. |
int |
getWidth()
|
int |
getX()
|
int |
getY()
|
void |
setBounds(int x,
int y,
int width,
int height)
Sets the boundry defined by this region. |
void |
setBounds(SequenceAlignmentPoint point,
SequenceAlignmentDimension dim)
Sets the boundry defined by this region. |
void |
setBounds(SequenceAlignmentRectangle rect)
Sets the boundry defined by this region. |
void |
setLocation(int x,
int y)
Sets the progom location of the rectangle. |
void |
setLocation(SequenceAlignmentPoint point)
Sets the origin location of the rectangle. |
void |
setSize(int width,
int height)
Sets the size of the rectangle. |
void |
setSize(SequenceAlignmentDimension dim)
Sets the size of the rectangle. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SequenceAlignmentRectangle()
public SequenceAlignmentRectangle(int x, int y, int width, int height)
public SequenceAlignmentRectangle(SequenceAlignmentRectangle rect)
public SequenceAlignmentRectangle(int x, int y, SequenceAlignmentDimension dim)
public SequenceAlignmentRectangle(SequenceAlignmentPoint point, int width, int height)
Method Detail |
public boolean contains(int x, int y)
x
- the position in the sequencey
- the sequence index in the alignment
public boolean contains(SequenceAlignmentPoint point)
point
- the point
public boolean equals(Object obj)
equals
in class Object
obj
- the SARectangle for comparison
public int compareTo(Object obj)
compareTo
in interface Comparable
public void setBounds(int x, int y, int width, int height)
x
- the position in the sequencey
- the sequence index in the alignmentwidth
- the width of the SARectangleheight
- the height of the SARectanglepublic void setBounds(SequenceAlignmentPoint point, SequenceAlignmentDimension dim)
point
- the origin location of the new SARectangledim
- the size of the new SARectanglepublic void setBounds(SequenceAlignmentRectangle rect)
rect
- the rectanglepublic SequenceAlignmentRectangle getBounds()
getBounds
in interface SequenceAlignmentShape
SequenceAlignmentShape
public void setLocation(int x, int y)
x
- the new X location of the rectangley
- the new Y location of the rectanglepublic void setLocation(SequenceAlignmentPoint point)
point
- the new locationpublic SequenceAlignmentPoint getLocation()
public void setSize(int width, int height)
width
- the width of the new rectangleheight
- the height of the new rectanglepublic void setSize(SequenceAlignmentDimension dim)
dim
- the new dimensionpublic SequenceAlignmentDimension getSize()
public int getX()
public int getY()
public int getHeight()
public int getWidth()
public void add(SequenceAlignmentPoint point)
public void add(int newx, int newy)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |