Class AbstractCySwingApp

  • @Deprecated
    public abstract class AbstractCySwingApp
    extends AbstractCyApp
    (As of Cytoscape 3.7) Support for simple apps will be removed in a future version of Cytoscape, please provide an OSGi bundle app instead.
    The primary Swing-based app interface for Cytoscape that all Swing-based apps must extend. This extension to AbstractCyApp simply provides access to CySwingAppAdapter, which provides access to Swing specific services. All other services from CyAppAdapter will still be available.

    Module: swing-app-api

    To use this in your app, include the following dependency in your POM:


    Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
    • Field Detail

      • swingAdapter

        protected final CySwingAppAdapter swingAdapter
        Reference to access Cytoscape functionality -- various managers and factories that are normally available as OSGi services.
    • Constructor Detail

      • AbstractCySwingApp

        public AbstractCySwingApp​(CySwingAppAdapter swingAdapter)
        The constructor that all apps must call using "super(adapter);" where the "adapter" is a CySwingAppAdapter reference provided as an argument to the constructor. Cytoscape's app loader will execute the constructor and provide the proper CySwingAppAdapter reference.
         public class MySwingApp extends AbstractCySwingApp {
            public MySwingApp(CySwingAppAdapter adapter) {
               // app code here
        adapter - a CySwingAppAdapter reference provided as an argument to the constructor.