- int startRes;
- int endRes;
- int startSeq;
- int endSeq;
- boolean showJVSuffix = true;
- boolean showText = true;
- boolean showColourText = false;
- boolean showBoxes = true;
- boolean wrapAlignment = false;
- boolean renderGaps = true;
- boolean showSequenceFeatures = false;
- boolean showAnnotation = true;
- boolean colourAppliesToAllGroups = true;
- ColourSchemeI globalColourScheme = null;
- boolean conservationColourSelected = false;
- boolean abovePIDThreshold = false;
- SequenceGroup selectionGroup;
- int charHeight;
- int charWidth;
- boolean validCharWidth;
- int wrappedWidth;
- Font font;
- boolean seqNameItalics;
- AlignmentI alignment;
- ColumnSelection colSel = new ColumnSelection();
- int threshold;
- int increment;
- NJTree currentTree = null;
- boolean scaleAboveWrapped = false;
- boolean scaleLeftWrapped = true;
- boolean scaleRightWrapped = true;
- boolean hasHiddenColumns = false;
- boolean hasHiddenRows = false;
- boolean showHiddenMarkers = true;
-
- boolean cursorMode = false;
-
- // The following vector holds the features which are
- // currently visible, in the correct order or rendering
- Hashtable featuresDisplayed = null;
-
-
- /** DOCUMENT ME!! */
- public Hashtable [] hconsensus;
- AlignmentAnnotation consensus;
- AlignmentAnnotation conservation;
- AlignmentAnnotation quality;
- boolean autoCalculateConsensus = true;
-
- /** DOCUMENT ME!! */
- public int ConsPercGaps = 25; // JBPNote : This should be a scalable property!
-
- // JBPNote Prolly only need this in the applet version.
- private java.beans.PropertyChangeSupport changeSupport = new java.beans.
- PropertyChangeSupport(this);
-
- boolean ignoreGapsInConsensusCalculation = false;
-
- boolean isDataset = false;
-
- boolean antiAlias = false;
-
- boolean padGaps = false;
-
- Rectangle explodedPosition;
-
- String viewName;
-
- String sequenceSetID;
-
- boolean gatherViewsHere = false;
-
- Stack historyList = new Stack();
- Stack redoList = new Stack();
-
- Hashtable sequenceColours;
-
- int thresholdTextColour = 0;
- Color textColour = Color.black;
- Color textColour2 = Color.white;
-
- boolean rightAlignIds = false;
-
- Hashtable hiddenRepSequences;
-
-
- /**
- * Creates a new AlignViewport object.
- *
- * @param al DOCUMENT ME!
- */
- public AlignViewport(AlignmentI al)
- {
- setAlignment(al);
- init();
- }
- /**
- * Create a new AlignViewport with hidden regions
- * @param al AlignmentI
- * @param hiddenColumns ColumnSelection
- */
+ private static final int RIGHT_JUSTIFY = 1;
+
+ int startRes;
+
+ int endRes;
+
+ int startSeq;
+
+ int endSeq;
+
+ boolean showJVSuffix = true;
+
+ boolean showText = true;
+
+ boolean showColourText = false;
+
+ boolean showBoxes = true;
+
+ boolean wrapAlignment = false;
+
+ boolean renderGaps = true;
+
+ boolean showSequenceFeatures = false;
+
+ boolean showAnnotation = true;
+
+ boolean colourAppliesToAllGroups = true;
+
+ ColourSchemeI globalColourScheme = null;
+
+ boolean conservationColourSelected = false;
+
+ boolean abovePIDThreshold = false;
+
+ SequenceGroup selectionGroup;
+
+ int charHeight;
+
+ int charWidth;
+
+ boolean validCharWidth;
+
+ int wrappedWidth;
+
+ Font font;
+
+ boolean seqNameItalics;
+
+ AlignmentI alignment;
+
+ ColumnSelection colSel = new ColumnSelection();
+
+ int threshold;
+
+ int increment;
+
+ NJTree currentTree = null;
+
+ boolean scaleAboveWrapped = false;
+
+ boolean scaleLeftWrapped = true;
+
+ boolean scaleRightWrapped = true;
+
+ boolean hasHiddenColumns = false;
+
+ boolean hasHiddenRows = false;
+
+ boolean showHiddenMarkers = true;
+
+ boolean cursorMode = false;
+
+ // The following vector holds the features which are
+ // currently visible, in the correct order or rendering
+ Hashtable featuresDisplayed = null;
+
+ /** DOCUMENT ME!! */
+ public Hashtable[] hconsensus;
+
+ AlignmentAnnotation consensus;
+
+ AlignmentAnnotation conservation;
+
+ AlignmentAnnotation quality;
+
+ boolean autoCalculateConsensus = true;
+
+ /** DOCUMENT ME!! */
+ public int ConsPercGaps = 25; // JBPNote : This should be a scalable property!
+
+ // JBPNote Prolly only need this in the applet version.
+ private java.beans.PropertyChangeSupport changeSupport = new java.beans.PropertyChangeSupport(
+ this);
+
+ boolean ignoreGapsInConsensusCalculation = false;
+
+ boolean isDataset = false;
+
+ boolean antiAlias = false;
+
+ boolean padGaps = false;
+
+ Rectangle explodedPosition;
+
+ String viewName;
+
+ String sequenceSetID;
+
+ boolean gatherViewsHere = false;
+
+ Stack historyList = new Stack();
+
+ Stack redoList = new Stack();
+
+ Hashtable sequenceColours;
+
+ int thresholdTextColour = 0;
+
+ Color textColour = Color.black;
+
+ Color textColour2 = Color.white;
+
+ boolean rightAlignIds = false;
+
+ Hashtable hiddenRepSequences;
+
+ boolean sortByTree;
+
+ /**
+ * Creates a new AlignViewport object.
+ *
+ * @param al alignment to view
+ */
+ public AlignViewport(AlignmentI al)
+ {
+ setAlignment(al);
+ init();
+ }
+ /**
+ * Create a new AlignViewport object with a specific sequence set ID
+ * @param al
+ * @param seqsetid (may be null - but potential for ambiguous constructor exception)
+ */
+ public AlignViewport(AlignmentI al, String seqsetid)
+ {
+ this(al,seqsetid,null);
+ }
+ public AlignViewport(AlignmentI al, String seqsetid, String viewid)
+ {
+ sequenceSetID = seqsetid;
+ viewId = viewid;
+ // TODO remove these once 2.4.VAMSAS release finished
+ if (Cache.log!=null && Cache.log.isDebugEnabled() && seqsetid!=null) { Cache.log.debug("Setting viewport's sequence set id : "+sequenceSetID); }
+ if (Cache.log!=null && Cache.log.isDebugEnabled() && viewId!=null) { Cache.log.debug("Setting viewport's view id : "+viewId); }
+ setAlignment(al);
+ init();
+ }
+
+ /**
+ * Create a new AlignViewport with hidden regions
+ *
+ * @param al
+ * AlignmentI
+ * @param hiddenColumns
+ * ColumnSelection
+ */