Module org.jpo

Class SingleNodeNavigator

java.lang.Object
org.jpo.datamodel.NodeNavigator
org.jpo.datamodel.SingleNodeNavigator
All Implemented Interfaces:
NodeNavigatorInterface

public class SingleNodeNavigator extends NodeNavigator
This class implements the ThumbnailBrowserInterface in the specific manner that is required for displaying a single picture in the ThumbnailJScrollPane.
  • Constructor Details

    • SingleNodeNavigator

      public SingleNodeNavigator(SortableDefaultMutableTreeNode singleNode)
      Constructor for a SingleNodeNavigator.
      Parameters:
      singleNode - The Node which is to be "browsed".
  • Method Details

    • getTitle

      public String getTitle()
      returns the description of the picture or "Single picture"
      Returns:
      returns the description of the picture or "Single picture"
    • getNumberOfNodes

      public int getNumberOfNodes()
      Returns the number of pictures in this group. The number is 0 to the number of pictures minus 1 because counting starts at 0. So 3 nodes in the group returns 2 meaning node0, node1, node2
      Returns:
      0
    • getNode

      public SortableDefaultMutableTreeNode getNode(int index)
      This method returns the node for the indicated position in the group.
      Parameters:
      index - The component index that is to be returned. The number is from 0 to getNumberOfNodes(). If there are 3 nodes request getNode(0), getNode(1) and getNode(2).
      Returns:
      The single note