Annotation Type ContainsTunables

  • @Retention(RUNTIME)
    public @interface ContainsTunables
    An annotation designed to signal that the annotated field contains fields and methods that are annotated with the Tunable annotation. The goal is to allow rich tunable collections to be created by combining the tunables found in fields annotated with ContainsTunables.
    For example, given classes A and B:

     public class A {
        public int value = 5;
     public class B {
        public A a = new A(); 
        public String name = "homer";

    When class B is evaluated for Tunables, it should display a tunable for both the "name" and "value" fields.

    Module: work-api

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


    Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      double offset
      Returns the offset to the gravity used to place the tunable in the panel.
    • Element Detail

      • offset

        double offset
        Returns the offset to the gravity used to place the tunable in the panel. Gravity is a numeric value associated with each tunable item. Tunables are sorted in ascending order based on their gravity values. The first Tunable to show will be the one with lowest value.
        The gravity of the Tunable