@Retention(value=RUNTIME) @Target(value=FIELD) public @interface ContainsTunables
Tunable
annotation.
The goal is to allow rich tunable collections to be created by
combining the tunables found in fields annotated with ContainsTunables.
public class A {
@Tunable
public int value = 5;
}
public class B {
@ContainsTunable
public A a = new A();
@Tunable
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:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
Modifier and Type | Optional Element and Description |
---|---|
double |
offset
Returns the offset to the gravity used to place the tunable in the panel.
|
public abstract double offset
Tunable
s
are sorted in ascending order based on their gravity values. The first Tunable
to show will be the one with lowest value.Tunable
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.