|
||||||||||
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.SequenceAlignmentPoint
SequenceAlignmentPoint.java Represents a point in an alignment, where X is the position in a sequence, and Y is the index of the sequence in the alignment. No checking is currently written into this object for the validity of the point, and the opportunity to use listeners is not seized (although this can easily be added later). Created: Mon Mar 27 11:16:19 2000
Constructor Summary | |
SequenceAlignmentPoint()
|
|
SequenceAlignmentPoint(int x,
int y)
|
|
SequenceAlignmentPoint(SequenceAlignmentPoint point)
|
Method Summary | |
Object |
clone()
|
int |
compareTo(Object obj)
Compares this point to another. |
boolean |
equals(Object obj)
Ascertains the equality of a given point to this object. |
SequenceAlignmentPoint |
getLocation()
Returns the location in the sequence alignment, represented by this object. |
int |
getX()
Returns the X index of the point. |
int |
getY()
Returns the Y index of the point. |
SequenceAlignmentPoint |
move(int x,
int y)
Allows the moving of a point to a new position. |
SequenceAlignmentPoint |
setLocation(int x,
int y)
Sets the location of the point. |
SequenceAlignmentPoint |
setLocation(SequenceAlignmentPoint point)
Sets the location of the point. |
SequenceAlignmentPoint |
setX(int x)
|
SequenceAlignmentPoint |
setY(int y)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SequenceAlignmentPoint()
public SequenceAlignmentPoint(int x, int y)
public SequenceAlignmentPoint(SequenceAlignmentPoint point)
Method Detail |
public boolean equals(Object obj)
equals
in class Object
obj
- the point
public int compareTo(Object obj)
compareTo
in interface Comparable
public SequenceAlignmentPoint setX(int x)
public SequenceAlignmentPoint setY(int y)
public SequenceAlignmentPoint setLocation(int x, int y)
x
- the x position of the pointy
- the y position of the pointpublic SequenceAlignmentPoint setLocation(SequenceAlignmentPoint point)
point
- the point in a sequence alignmentpublic SequenceAlignmentPoint move(int x, int y)
x
- the X indexy
- the Y indexpublic SequenceAlignmentPoint getLocation()
public int getX()
public int getY()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |