X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FShiftList.java;h=bcd8e7c24e9a58a1dbb54a43f65b5e6ece381afd;hb=c766c1829042b039ea2ff56fc05f4a0100c2a73d;hp=ca768ae5a5dcad4b17c8c3bbce175f2379ec5b15;hpb=7570956d4b58f313d402cdd0507737c0628f1544;p=jalview.git diff --git a/src/jalview/util/ShiftList.java b/src/jalview/util/ShiftList.java index ca768ae..bcd8e7c 100644 --- a/src/jalview/util/ShiftList.java +++ b/src/jalview/util/ShiftList.java @@ -1,74 +1,119 @@ -package jalview.util; - -import java.util.*; - -/** - * ShiftList - * Simple way of mapping a linear series to a new linear range with new points introduced. - * Use at your own risk! - *
Title: ShiftList
- * - *Description:
- * - *Copyright: Copyright (c) 2004
- * - *Company: Dundee University
- * - * @author not attributable - * @version 1.0 - */ -public class ShiftList -{ - Vector shifts; - public ShiftList() - { - shifts = new Vector(); - } - - /** - * addShift - * @param pos start position for shift (in original reference frame) - * @param shift length of shift - */ - public void addShift(int pos, int shift) - { - int sidx = 0; - int[] rshift=null; - while (sidx