Class FeatureTree

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class FeatureTree extends JTree
FeatureTree is GUI tree to display the features and annotations of the sequences in a SequenceDB Nested Features are displayed as expandable leaves.

Copyright: Copyright (c) 2002

Company: AgResearch

Version:
1.0
Author:
Mark Schreiber
See Also:
  • Constructor Details

    • FeatureTree

      public FeatureTree()
      Create a new FeatureTree
  • Method Details

    • setSequenceDB

      public void setSequenceDB(SequenceDB db) throws BioException
      Use this method to provide the sequences for the tree to work with.
      Parameters:
      db - A database of Sequences to display
      Throws:
      BioException - if information cannot be retrieved from db
    • convertValueToText

      public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
      Labels Sequence objects with their name, Annotations with the tag Annotations, Features with the tag Features and other objects with the toString value.
      Overrides:
      convertValueToText in class JTree