public enum Position extends Enum<Position>
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 and Description |
---|
CENTER |
EAST |
NONE |
NORTH |
NORTH_EAST |
NORTH_WEST |
SOUTH |
SOUTH_EAST |
SOUTH_WEST |
WEST |
Modifier and Type | Method and Description |
---|---|
static SortedSet<String> |
getDisplayNames()
Return a sorted list containing all of the display
names for all of the Position anchors.
|
String |
getName()
Return the display name of this anchor position.
|
String |
getShortName()
Return the short name of this anchor position.
|
static Position |
parse(String value)
Parse a string that contains either the short name or
the display name for an anchor and return the
corresponding enum value
|
static Position |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Position[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Position NORTH_WEST
public static final Position NORTH
public static final Position NORTH_EAST
public static final Position WEST
public static final Position CENTER
public static final Position EAST
public static final Position NONE
public static final Position SOUTH_WEST
public static final Position SOUTH
public static final Position SOUTH_EAST
public static Position[] values()
for (Position c : Position.values()) System.out.println(c);
public static Position valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
public String getShortName()
public static Position parse(String value)
value
- the String containing the text to be parsedCopyright 2011-2015 Cytoscape Consortium. All rights reserved.