import java.util.concurrent.ConcurrentHashMap;
import jalview.api.AlignViewportI;
+import jalview.api.AlignmentViewPanel;
import jalview.api.FeatureColourI;
import jalview.api.FeaturesDisplayedI;
import jalview.datamodel.AlignedCodonFrame;
}
@Override
- public List<SequenceFeature> findFeaturesAtColumn(SequenceI sequence, int column)
+ public List<SequenceFeature> findFeaturesAtColumn(SequenceI sequence,
+ int column)
{
/*
* include features at the position provided their feature type is
}
if (groupDisplayed)
{
- Set<String> types = asq.getFeatures().getFeatureTypesForGroups(
- true, group);
+ Set<String> types = asq.getFeatures()
+ .getFeatureTypesForGroups(true, group);
for (String type : types)
{
if (!allfeatures.contains(type)) // or use HashSet and no test?
}
}
}
+
protected Boolean firing = Boolean.FALSE;
/**
*/
public boolean showFeatureOfType(String type)
{
- return type == null ? false : (av.getFeaturesDisplayed() == null ? true
- : av.getFeaturesDisplayed().isVisible(type));
+ return type == null ? false
+ : (av.getFeaturesDisplayed() == null ? true
+ : av.getFeaturesDisplayed().isVisible(type));
}
@Override
}
/**
- * Sets the priority order for features, with the highest priority (displayed on
- * top) at the start of the data array
+ * Sets the priority order for features, with the highest priority (displayed
+ * on top) at the start of the data array
*
* @param data
* an array of { Type, Colour, Filter, Boolean }
* @param visibleNew
* when true current featureDisplay list will be cleared
- * @return true if any visible features have been reordered or recoloured, else
- * false (i.e. no need to repaint)
+ * @return true if any visible features have been reordered or recoloured,
+ * else false (i.e. no need to repaint)
*/
public boolean setFeaturePriority(FeatureSettingsBean[] data,
boolean visibleNew)
* @param listener
* @see java.beans.PropertyChangeSupport#addPropertyChangeListener(java.beans.PropertyChangeListener)
*/
+ @Override
public void addPropertyChangeListener(PropertyChangeListener listener)
{
changeSupport.addPropertyChangeListener(listener);
* @param listener
* @see java.beans.PropertyChangeSupport#removePropertyChangeListener(java.beans.PropertyChangeListener)
*/
+ @Override
public void removePropertyChangeListener(PropertyChangeListener listener)
{
changeSupport.removePropertyChangeListener(listener);
*/
public boolean featureGroupNotShown(final SequenceFeature sequenceFeature)
{
- return featureGroups != null
- && sequenceFeature.featureGroup != null
+ return featureGroups != null && sequenceFeature.featureGroup != null
&& sequenceFeature.featureGroup.length() != 0
&& featureGroups.containsKey(sequenceFeature.featureGroup)
&& !featureGroups.get(sequenceFeature.featureGroup)
List<String> visibleFeatures = getDisplayedFeatureTypes();
String[] visibleTypes = visibleFeatures
.toArray(new String[visibleFeatures.size()]);
- List<SequenceFeature> features = sequence.getFeatures().findFeatures(
- fromResNo, toResNo, visibleTypes);
-
+ List<SequenceFeature> features = sequence.getFeatures()
+ .findFeatures(fromResNo, toResNo, visibleTypes);
+
for (SequenceFeature sf : features)
{
if (!featureGroupNotShown(sf) && getColour(sf) != null)
* (checking type and isContactFeature as a fail-safe here, although
* currently they are guaranteed to match in this context)
*/
- if (lastFeature != null
- && sf.getBegin() == lastFeature.getBegin()
+ if (lastFeature != null && sf.getBegin() == lastFeature.getBegin()
&& sf.getEnd() == lastFeature.getEnd()
&& sf.isContactFeature() == lastFeature.isContactFeature()
&& sf.getType().equals(lastFeature.getType()))
}
@Override
- public void setFeatureFilter(String featureType, FeatureMatcherSetI filter)
+ public void setFeatureFilter(String featureType,
+ FeatureMatcherSetI filter)
{
if (filter == null || filter.isEmpty())
{
{
return null;
}
-
+
return fc.getColor(sf);
}
int fromRes = match.getStart();
int toRes = match.getEnd();
mapFrom = match.getSequence();
- List<SequenceFeature> fs = findFeaturesAtResidue(
- mapFrom, fromRes, toRes);
+ List<SequenceFeature> fs = findFeaturesAtResidue(mapFrom, fromRes,
+ toRes);
for (SequenceFeature sf : fs)
{
if (!found.contains(sf))
}
}
}
-
- return new MappedFeatures(mapping.getMapping(), mapFrom, pos, residue, result);
+
+ return new MappedFeatures(mapping.getMapping(), mapFrom, pos, residue,
+ result);
}
@Override
}
return true;
}
+
+ @Override
+ public AlignmentViewPanel getAlignPanel()
+ {
+ return null;
+ }
}