Class StringDndPanel<T>

    • Constructor Detail

      • StringDndPanel

        public StringDndPanel(T data,
                              boolean isSource,
                              boolean isDestination)
        Parameters:
        data - the data to represent initially.
        isSource - whether this panel can be used as a source for dragging.
        isDestination - whether this panel can be used as a destination for dragging.
    • Method Detail

      • getComponent

        public JComponent getComponent()
        Description copied from class: DndPanel
        Override this method to provide a component to visualize the data represented.
        Specified by:
        getComponent in class  DndPanel<T>
        Returns:
        the component displayed within this panel.
      • setup

        public void setup(T data)
        Description copied from class: DndPanel
        Setup the panel to represent the denoted geometryIndex.
        Specified by:
        setup in class  DndPanel<T>
        Parameters:
        data - the data to represent.
      • getLabelString

        public abstract String getLabelString(T t)
        Implement this to decide about the information displayed by the label.
        Parameters:
        t - the data to represent.
        Returns:
        the String to represent the denoted data.