- 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
- */
- public AlignViewport(AlignmentI al, ColumnSelection hiddenColumns)
- {
- setAlignment(al);
- if (hiddenColumns != null)
- {
- this.colSel = hiddenColumns;
- if (hiddenColumns.getHiddenColumns() != null)
- {
- hasHiddenColumns = true;
- }
- }
- init();
- }
-
- void init()
- {
- this.startRes = 0;
- this.endRes = alignment.getWidth() - 1;
- this.startSeq = 0;
- this.endSeq = alignment.getHeight() - 1;
-
- antiAlias = Cache.getDefault("ANTI_ALIAS", false);