setColourSelected(ColourSchemeProperty.getColourName(av
.getGlobalColourScheme()));
- showSeqFeatures.setSelected(av.showSequenceFeatures);
+ showSeqFeatures.setSelected(av.isShowSequenceFeatures());
hiddenMarkers.setState(av.showHiddenMarkers);
applyToAllGroups.setState(av.getColourAppliesToAllGroups());
showNpFeatsMenuitem.setSelected(av.isShowNpFeats());
{
viewport.setShowSequenceFeaturesHeight(showSeqFeaturesHeight
.isSelected());
- if (viewport.getShowSequenceFeaturesHeight())
+ if (viewport.isShowSequenceFeaturesHeight())
{
// ensure we're actually displaying features
viewport.setShowSequenceFeatures(true);
@Override
public void annotationColumn_actionPerformed(ActionEvent e)
{
- new AnnotationColumnSelection(viewport, alignPanel);
+ new AnnotationColumnChooser(viewport, alignPanel);
}
@Override
{
featuresFile = new FeaturesFile(file, type).parse(viewport
.getAlignment().getDataset(), alignPanel.getSeqPanel().seqCanvas
- .getFeatureRenderer().featureColours, false,
+ .getFeatureRenderer().getFeatureColours(), false,
jalview.bin.Cache.getDefault("RELAXEDSEQIDMATCHING", false));
} catch (Exception ex)
{
if (featuresFile)
{
- viewport.showSequenceFeatures = true;
+ viewport.setShowSequenceFeatures(true);
showSeqFeatures.setSelected(true);
if (alignPanel.getSeqPanel().seqCanvas.fr != null)
{
boolean renderGaps = true;
- boolean showSequenceFeatures = false;
-
- private boolean showAnnotation = true;
-
SequenceAnnotationOrder sortAnnotationsBy = null;
int charHeight;
boolean cursorMode = false;
- /**
- * Keys are the feature types which are currently visible. Note: Values are
- * not used!
- */
- private Hashtable featuresDisplayed = null;
-
boolean antiAlias = false;
Rectangle explodedPosition;
Color textColour = Color.black;
Color textColour2 = Color.white;
-
private boolean rightAlignIds = false;
- private AnnotationColumnSelection currentAnnotationColumnSelectionState;
+ private AnnotationColumnChooser currentAnnotationColumnSelectionState;
/**
* Creates a new AlignViewport object.
*
}
/**
- * set the flag
- *
- * @param b
- * features are displayed if true
- */
- public void setShowSequenceFeatures(boolean b)
- {
- showSequenceFeatures = b;
- }
-
- public boolean getShowSequenceFeatures()
- {
- return showSequenceFeatures;
- }
-
- /**
* centre columnar annotation labels in displayed alignment annotation TODO:
* add to jalviewXML and annotation display settings
*/
*
* @return DOCUMENT ME!
*/
- public boolean getShowAnnotation()
- {
- return isShowAnnotation();
- }
-
- /**
- * DOCUMENT ME!
- *
- * @param b
- * DOCUMENT ME!
- */
- public void setShowAnnotation(boolean b)
- {
- showAnnotation = b;
- }
-
- /**
- * DOCUMENT ME!
- *
- * @return DOCUMENT ME!
- */
public boolean getScaleAboveWrapped()
{
return scaleAboveWrapped;
return followSelection;
}
- boolean showSeqFeaturesHeight;
-
public void sendSelection()
{
jalview.structure.StructureSelectionManager
new ColumnSelection(getColumnSelection()), this);
}
- public void setShowSequenceFeaturesHeight(boolean selected)
- {
- showSeqFeaturesHeight = selected;
- }
-
- public boolean getShowSequenceFeaturesHeight()
- {
- return showSeqFeaturesHeight;
- }
-
/**
* return the alignPanel containing the given viewport. Use this to get the
* components currently handling the given viewport.
}
}
-
- public Hashtable getFeaturesDisplayed()
- {
- return featuresDisplayed;
- }
-
- public void setFeaturesDisplayed(Hashtable featuresDisplayed)
- {
- this.featuresDisplayed = featuresDisplayed;
- }
protected SequenceAnnotationOrder getSortAnnotationsBy()
{
return sortAnnotationsBy;
this.showAutocalculatedAbove = showAutocalculatedAbove;
}
+
public boolean isShowAnnotation()
{
- return showAnnotation;
+ return super.isShowAnnotation();
}
public boolean isRightAlignIds()
this.rightAlignIds = rightAlignIds;
}
- public AnnotationColumnSelection getCurrentAnnotationColumnSelectionState()
+ public AnnotationColumnChooser getCurrentAnnotationColumnSelectionState()
{
return currentAnnotationColumnSelectionState;
}
public void setCurrentAnnotationColumnSelectionState(
- AnnotationColumnSelection currentAnnotationColumnSelectionState)
+ AnnotationColumnChooser currentAnnotationColumnSelectionState)
{
this.currentAnnotationColumnSelectionState = currentAnnotationColumnSelectionState;
}