Package org.cytoscape.view.layout
Enum Class WeightTypes
- All Implemented Interfaces:
Serializable
,Comparable<WeightTypes>
,java.lang.constant.Constable
An enum describing different weighting strategies.
Cytoscape Backwards Compatibility (Enum): This class is an enum therefore can't be extended by users. This means that we may add methods or enum values for minor version updates. Methods or enum values will only be removed for major version updates.
Module: layout-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>layout-api</artifactId> </dependency>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns the name of the weighting type.static WeightTypes
Returns the enum constant of this class with the specified name.static WeightTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GUESS
Use a heuristic to guess. -
LOG
Use the negative log value. -
DISTANCE
Use 1 minus the normalized value. -
WEIGHT
Use the normalized value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Returns the name of the weighting type.- Overrides:
toString
in classEnum<WeightTypes>
- Returns:
- the name of the weighting type.
-