Enum DiagramType
- java.lang.Object
-
- java.lang.Enum<DiagramType>
-
- edu.kit.ipd.sdq.eventsim.rvisualization.model.DiagramType
-
- All Implemented Interfaces:
Serializable
,Comparable<DiagramType>
public enum DiagramType extends Enum<DiagramType>
Diagram types for plotting.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAR
CDF
HISTOGRAM
LINE
POINT_GRAPH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Aesthetic[]
getAesthetics()
String
getName()
String
getShortName()
boolean
isAggregating()
returnstrue
, if this diagram type aggregates simulation results (like a histogram);false
, if not (like a point chart).static DiagramType
valueOf(String name)
Returns the enum constant of this type with the specified name.static DiagramType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HISTOGRAM
public static final DiagramType HISTOGRAM
-
POINT_GRAPH
public static final DiagramType POINT_GRAPH
-
CDF
public static final DiagramType CDF
-
BAR
public static final DiagramType BAR
-
LINE
public static final DiagramType LINE
-
-
Method Detail
-
values
public static DiagramType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DiagramType c : DiagramType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiagramType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
getShortName
public String getShortName()
-
isAggregating
public boolean isAggregating()
returnstrue
, if this diagram type aggregates simulation results (like a histogram);false
, if not (like a point chart).
-
getAesthetics
public Aesthetic[] getAesthetics()
-
-