Class NetworkLayoutDemoView

All Implemented Interfaces:
IFeedbackProvider, IFileDropHandler, ComponentListener, FocusListener, MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class NetworkLayoutDemoView extends BaseView
See Also:
  • Constructor Details

    • NetworkLayoutDemoView

      public NetworkLayoutDemoView()
      Construct the demo view using its canonical default properties.
  • Method Details

    • getConfiguration

      public static ViewConfiguration<NetworkLayoutDemoView> getConfiguration()
      Get the view configuration for lazy creation.
      Returns:
      the view configuration for lazy creation
    • showNames

      public boolean showNames()
      Whether to show the node names on the device items.
      Returns:
      true if node names should be shown, false otherwise
    • setShowNames

      public void setShowNames(boolean show)
      Set whether to show the node names on the device items.
      Parameters:
      show - true to show node names, false to hide them
    • getDeviceLayer

      public Layer getDeviceLayer()
      Get the device layer where device items are placed.
      Returns:
      the device layer
    • getFeedbackStrings

      public void getFeedbackStrings(IContainer container, Point pp, Point2D.Double wp, List<String> feedbackStrings)
      Description copied from class: BaseView
      Default feedback implementation: no-op. Subclasses override to provide coordinate or status strings.
      Specified by:
      getFeedbackStrings in interface IFeedbackProvider
      Overrides:
      getFeedbackStrings in class BaseView
      Parameters:
      container - the container.
      pp - the mouse location.
      wp - the corresponding world point.
      feedbackStrings - the List of feedback strings to add to.
    • getGridDrawer

      public GridDrawer getGridDrawer()
      Get the grid drawer used in this view.
      Returns:
      the grid drawer
    • getAllDevices

      public List<DeviceItem> getAllDevices()
      Get all the device items currently on the device layer.
      Returns:
      list of all device items