Enum Event.OverlapRenderingMode
- java.lang.Object
-
- java.lang.Enum<Event.OverlapRenderingMode>
-
- com.metsci.glimpse.core.plot.timeline.event.Event.OverlapRenderingMode
-
- All Implemented Interfaces:
Serializable
,Comparable<Event.OverlapRenderingMode>
- Enclosing class:
- Event
public static enum Event.OverlapRenderingMode extends Enum<Event.OverlapRenderingMode>
Indicates what types of overlaps should be considered when determining whether to shorten Event box text.- Author:
- ulman
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Intersecting
Shorten the text when it overflows the box for this Event or overlaps with another Event.None
Don't try to detect overlaps.Overfull
Only shorten text when it overflows the box for this Event.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Event.OverlapRenderingMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Event.OverlapRenderingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final Event.OverlapRenderingMode None
Don't try to detect overlaps. When this mode is set, text will never be shortened regardless of theShortenMode
.
-
Overfull
public static final Event.OverlapRenderingMode Overfull
Only shorten text when it overflows the box for this Event. Don't try to detect overlaps with other Events.
-
Intersecting
public static final Event.OverlapRenderingMode Intersecting
Shorten the text when it overflows the box for this Event or overlaps with another Event.
-
-
Method Detail
-
values
public static Event.OverlapRenderingMode[] 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 (Event.OverlapRenderingMode c : Event.OverlapRenderingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Event.OverlapRenderingMode 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
-
-