dk.vajhoej.model.graphic.adv
Class GUISupport

java.lang.Object
  extended by dk.vajhoej.model.graphic.adv.GUISupport

public class GUISupport
extends java.lang.Object

Class GUISupport contains static utility methods to setup context menus plus drop and drag.


Constructor Summary
GUISupport()
           
 
Method Summary
static void setupContextMenus(javax.swing.JComponent gui, CommonGraphicWrapper supp, AllGraphicConfig cfg)
          Setup component with context menus.
static void setupDropAndDrag(javax.swing.JComponent gui, CommonGraphicWrapper supp, AllGraphicConfig cfg)
          Setup component for drag and drop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUISupport

public GUISupport()
Method Detail

setupDropAndDrag

public static void setupDropAndDrag(javax.swing.JComponent gui,
                                    CommonGraphicWrapper supp,
                                    AllGraphicConfig cfg)
Setup component for drag and drop.

Parameters:
gui - component as Swing component
supp - component as VSMA component
cfg - all graphic configurations

setupContextMenus

public static void setupContextMenus(javax.swing.JComponent gui,
                                     CommonGraphicWrapper supp,
                                     AllGraphicConfig cfg)
Setup component with context menus.

Parameters:
gui - component as Swing component
supp - component as VSMA component
cfg - all graphic configurations