Class HopPerspectiveManager


  • public class HopPerspectiveManager
    extends Object
    This class helps the perspective plugins to keep track of their visualisation. The main principle is that a perspective has it's own composite and draws on it. It's shown or not depending on what is selected.
    • Constructor Detail

      • HopPerspectiveManager

        public HopPerspectiveManager​(HopGui hopGui)
    • Method Detail

      • addPerspective

        public void addPerspective​(IHopPerspective perspective)
      • showPerspective

        public void showPerspective​(Class<? extends IHopPerspective> perspectiveClass)
      • findFileTypeHandler

        public IHopFileType findFileTypeHandler​(IHasFilename fileMetadata)
        Loop over all perspectives and see if any one of them recognises the object
        Parameters:
        fileMetadata -
        Returns:
      • getPerspectives

        public List<IHopPerspective> getPerspectives()
        Get a copy of all the handled/registered perspectives
        Returns:
        All perspectives copied over in a new list
      • notifyPerspectiveActiviated

        public void notifyPerspectiveActiviated​(IHopPerspective perspective)
      • showPreviousPerspective

        public void showPreviousPerspective​(IHopPerspective currentPerspective)
      • showNextPerspective

        public void showNextPerspective​(IHopPerspective currentPerspective)