X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FHistoryItem.java;h=ed119e8d8c649eb6e0dbf1c950e81c955bbd2f7d;hb=588042b69abf8e60bcc950b24c283933c7dd422f;hp=bb18b661d40fb840c958b20c75febe8c44e5349e;hpb=5cd8e373c75fb348ecda4d94d8a46468fb92756d;p=jalview.git diff --git a/src/jalview/datamodel/HistoryItem.java b/src/jalview/datamodel/HistoryItem.java index bb18b66..ed119e8 100755 --- a/src/jalview/datamodel/HistoryItem.java +++ b/src/jalview/datamodel/HistoryItem.java @@ -16,56 +16,54 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ - package jalview.datamodel; import java.util.*; -public class HistoryItem -{ - public static final int EDIT = 0; - public static final int SORT = 1; - public static final int HIDE = 2; - public static final int PASTE= 3; - final int type; - Vector sequences; - Vector alignIndex; - String description; - Vector hiddenSeqs; +public class HistoryItem { + public static final int EDIT = 0; + public static final int SORT = 1; + public static final int HIDE = 2; + public static final int PASTE = 3; + final int type; + Vector sequences; + Vector alignIndex; + String description; + Vector hiddenSeqs; - public HistoryItem(String description, AlignmentI al, int type) - { - this.type = type; - this.description = description; - sequences = new Vector(); - alignIndex = new Vector(); - hiddenSeqs = new Vector(); + public HistoryItem(String description, AlignmentI al, int type) { + this.type = type; + this.description = description; + sequences = new Vector(); + alignIndex = new Vector(); + hiddenSeqs = new Vector(); - for (int i = 0; i < al.getHeight(); i++) - { - SequenceI seq = al.getSequenceAt(i); - sequences.addElement(seq); - alignIndex.addElement(i + ""); - hiddenSeqs.addElement(seq.getSequence().toString()); + for (int i = 0; i < al.getHeight(); i++) { + SequenceI seq = al.getSequenceAt(i); + sequences.addElement(seq); + alignIndex.addElement(i + ""); + hiddenSeqs.addElement(seq.getSequence().toString()); + } } - } - - public int getType() - {return type;} - public Vector getSequences() - {return sequences;} + public int getType() { + return type; + } - public String getDescription() - {return description; } + public Vector getSequences() { + return sequences; + } - public Vector getHidden() - { return hiddenSeqs; } + public String getDescription() { + return description; + } - public int getAlignIndex(int seq) - { - return Integer.parseInt(alignIndex.elementAt(seq).toString()); - } + public Vector getHidden() { + return hiddenSeqs; + } + public int getAlignIndex(int seq) { + return Integer.parseInt(alignIndex.elementAt(seq).toString()); + } }