X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fbiojava%2Fdasobert%2Ffeature%2FSegment.java;h=78e28406c4682d1750aab3aa02178740b2702ade;hb=506d60f0e188723ddc91c26824b41ac7034df3fe;hp=f2a0bb6eb1783d4ab0205e2f58107e1d54c7387a;hpb=60f2d6c034560415fd0139c8bc7df0c19cae1186;p=jalview.git diff --git a/src/org/biojava/dasobert/feature/Segment.java b/src/org/biojava/dasobert/feature/Segment.java index f2a0bb6..78e2840 100644 --- a/src/org/biojava/dasobert/feature/Segment.java +++ b/src/org/biojava/dasobert/feature/Segment.java @@ -22,59 +22,63 @@ * */ -package org.biojava.dasobert.feature ; +package org.biojava.dasobert.feature; import java.awt.Color; - /** a class to keep track of location information for a feature */ -public interface Segment { - - public Object clone(); - - public String toString(); +public interface Segment +{ + + public Object clone(); + + public String toString(); - public String getNote(); + public String getNote(); - public void setNote(String note); + public void setNote(String note); - public void setStart(int strt); + public void setStart(int strt); - public int getStart(); + public int getStart(); - public void setEnd(int ed); + public void setEnd(int ed); - public int getEnd(); + public int getEnd(); - public void setName(String nam); + public void setName(String nam); - public String getName(); + public String getName(); - public void setColor(Color col); + public void setColor(Color col); - public Color getColor(); + public Color getColor(); - public void setParent(FeatureTrack f); + public void setParent(FeatureTrack f); - public FeatureTrack getParent(); + public FeatureTrack getParent(); - public void setTxtColor(String str); + public void setTxtColor(String str); - public String getTxtColor(); + public String getTxtColor(); - /** returns true if the specified sequence position is within the range of this Segment - * - * @param seqPosition the position to check - * @return true if seqPos >= start && seqPos <= end - */ - public boolean overlaps(int seqPosition); + /** + * returns true if the specified sequence position is within the range of this + * Segment + * + * @param seqPosition + * the position to check + * @return true if seqPos >= start && seqPos <= end + */ + public boolean overlaps(int seqPosition); - /** tests if two segments are overlapping - * - * @param segment to compare with - * @return true if segments overlap - */ - public boolean overlaps(Segment segment); + /** + * tests if two segments are overlapping + * + * @param segment + * to compare with + * @return true if segments overlap + */ + public boolean overlaps(Segment segment); - }