All Packages Class Hierarchy This Package Previous Next Index
Class PairwiseComparativeMap.PairwiseLocus
java.lang.Object
|
+----PairwiseComparativeMap.PairwiseLocus
- public class PairwiseLocus
- extends Object
This class is a data structure class that describes the concept of a locus on a
pairwise comparative map. Each locus has a name, the position on the map to which
it belongs and a database class from which it was derived, e.g. "Locus".
- Version:
- 1.0
- Author:
- Written by Jeremy Dickson for the UK Crop Plant Bioinformatics Network, October 1998.
- See Also:
- PCM_FileParser, PairwiseMap, PairwiseComparativeMapData, PairwiseHomologys
-
PairwiseLocus(String, float)
- Default constructor describing the minimum amount of data needed to create class
-
PairwiseLocus(String, float, String)
- This constructor takes in a bit more information.
-
getLabelScreenPsn()
- Gets the area of the label on screen.
-
getLocusDatabaseClass()
- Return the database class of the locus.
-
getLocusName()
- Returns the name of the locus.
-
getLocusPosition()
- Returns the position of the locus on the map.
-
getLocusTickScreenPsn()
- Gets the screen position of the tick on the map sausage.
-
getPosition_AsString()
- Returns a string representation of the locus position.
-
isHighlighted()
- Returns whether the locus is highlighted or not.
-
isMouseInLocus(int, int)
- Returns true if the x and y co-ordinates are within the rectangular area in which
the label is found.
-
setHighlighted(boolean)
- Sets whether the locus is highlighted or not.
-
setLabelScreenPsn(Rectangle)
- Sets the area of the label on screen.
-
setLocusTickScreenPsn(int)
- Sets the screen position of the tick on the map sausage.
PairwiseLocus
public PairwiseLocus(String locusName,
float locusPosition)
- Default constructor describing the minimum amount of data needed to create class
- Parameters:
- locusName - The name of the locus.
- locusPosition - The position of the locus on the map.
PairwiseLocus
public PairwiseLocus(String locusName,
float locusPosition,
String locusDatabaseClass)
- This constructor takes in a bit more information.
- Parameters:
- locusDatabaseClass - The database class to which the locus belongs, e.g. Locus or Clone.
isMouseInLocus
public boolean isMouseInLocus(int x,
int y)
- Returns true if the x and y co-ordinates are within the rectangular area in which
the label is found.
getPosition_AsString
public String getPosition_AsString()
- Returns a string representation of the locus position.
getLocusName
public String getLocusName()
- Returns the name of the locus.
getLocusPosition
public float getLocusPosition()
- Returns the position of the locus on the map.
getLocusDatabaseClass
public String getLocusDatabaseClass()
- Return the database class of the locus.
setLabelScreenPsn
public void setLabelScreenPsn(Rectangle labelScreenPsn)
- Sets the area of the label on screen.
getLabelScreenPsn
public Rectangle getLabelScreenPsn()
- Gets the area of the label on screen.
setLocusTickScreenPsn
public void setLocusTickScreenPsn(int locusTickScreenPsn)
- Sets the screen position of the tick on the map sausage.
getLocusTickScreenPsn
public int getLocusTickScreenPsn()
- Gets the screen position of the tick on the map sausage.
setHighlighted
public void setHighlighted(boolean highlighted)
- Sets whether the locus is highlighted or not.
isHighlighted
public boolean isHighlighted()
- Returns whether the locus is highlighted or not.
All Packages Class Hierarchy This Package Previous Next Index
|