Enum Class Justification

java.lang.Object
java.lang.Enum<Justification>
org.cytoscape.view.presentation.property.values.Justification
All Implemented Interfaces:
Serializable, Comparable<Justification>, java.lang.constant.Constable

public enum Justification extends Enum<Justification>
An ENUM that provides information about text justification.

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: presentation-api

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

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>presentation-api</artifactId>
</dependency>
  • Enum Constant Details

  • Method Details

    • values

      public static Justification[] 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

      public static Justification valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      Return the display name of this justification type.
      Returns:
      display name
    • getShortName

      public String getShortName()
      Return the short name of this justification type
      Returns:
      short name
    • parse

      public static Justification parse(String value)
      Parse a string that contains either the short name or the display name for a justifcation and return the corresponding enum value
      Parameters:
      value - the String containing the text to be parsed
      Returns:
      Justification corresponding to the string
    • getNames

      public static String[] getNames()
      Return the display names for all of the Justifcation values
      Returns:
      array of display names