java.lang.Object
org.jpo.datamodel.NodeNavigator
org.jpo.datamodel.SingleNodeNavigator
- All Implemented Interfaces:
NodeNavigatorInterface
This class implements the ThumbnailBrowserInterface in the specific manner that is required for
displaying a single picture in the ThumbnailJScrollPane.
-
Constructor Summary
ConstructorDescriptionSingleNodeNavigator
(SortableDefaultMutableTreeNode singleNode) Constructor for a SingleNodeNavigator. -
Method Summary
Methods inherited from class org.jpo.datamodel.NodeNavigator
addNodeNavigatorListener, notifyNodeNavigatorListeners, removeNodeNavigatorListener
-
Constructor Details
-
SingleNodeNavigator
Constructor for a SingleNodeNavigator.- Parameters:
singleNode
- The Node which is to be "browsed".
-
-
Method Details
-
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
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 togetNumberOfNodes()
. If there are 3 nodes request getNode(0), getNode(1) and getNode(2).- Returns:
- The single note
-