Class UnitContextFactory

  • All Implemented Interfaces:
    ContextFactory

    public class UnitContextFactory
    extends java.lang.Object
    implements ContextFactory
    Context Factory for unit contexts.
    Version:
    1.0
    Author:
    Andreas
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.JPopupMenu createContextMenu​(EventDispatcher dispatcher, GameData data, java.lang.Object argument, SelectionEvent selectedObjects, javax.swing.tree.DefaultMutableTreeNode node)
      Creates an appropriate context menu
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnitContextFactory

        public UnitContextFactory()
    • Method Detail

      • createContextMenu

        public javax.swing.JPopupMenu createContextMenu​(EventDispatcher dispatcher,
                                                        GameData data,
                                                        java.lang.Object argument,
                                                        SelectionEvent selectedObjects,
                                                        javax.swing.tree.DefaultMutableTreeNode node)
        Description copied from interface: ContextFactory
        Creates an appropriate context menu
        Specified by:
        createContextMenu in interface ContextFactory
        Parameters:
        dispatcher - The responsible event dispatcher.
        data - The data
        argument - The object for which the context menu should be created
        selectedObjects - Additional selected objects
        Returns:
        A context menu