Interface PathObjectImageViewers.ItemViewer<S,T extends Node>

Type Parameters:
S - generic type for the item to display
T - generic type for the node that displays the item; typically a Canvas or an ImageView.
Enclosing class:
PathObjectImageViewers

public static interface PathObjectImageViewers.ItemViewer<S,T extends Node>
Interface for managing a node that can display an item.

This is intended to display a PathObject, but is made generic so in the future it might handle something else.

  • Method Summary

    Modifier and Type
    Method
    Description
    Get the node to display
    void
    setItem(S item)
    Set the item to display
  • Method Details

    • setItem

      void setItem(S item)
      Set the item to display
      Parameters:
      item - the item
    • getNode

      T getNode()
      Get the node to display
      Returns:
      the node