Package org.fife.ui.rtextarea
Enum FoldIndicatorStyle
- java.lang.Object
-
- java.lang.Enum<FoldIndicatorStyle>
-
- org.fife.ui.rtextarea.FoldIndicatorStyle
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FoldIndicatorStyle>
public enum FoldIndicatorStyle extends java.lang.Enum<FoldIndicatorStyle>
Different rendering styles for the fold indicator inside aGutter
.- Version:
- 1.0
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FoldIndicatorStyle()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FoldIndicatorStyle
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FoldIndicatorStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASSIC
public static final FoldIndicatorStyle CLASSIC
Fold icons are rendered as +/- symbols in boxes. When the user hovers over an expanded fold's icon, a line is drawn to indicate the range of lines in the editor that belong to that fold's region.
-
MODERN
public static final FoldIndicatorStyle MODERN
Fold icons are rendered as a chevron indicating the fold's collapsed or expanded state. There is no visual indication of a fold's line range.
-
-
Method Detail
-
values
public static FoldIndicatorStyle[] 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 (FoldIndicatorStyle c : FoldIndicatorStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FoldIndicatorStyle valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-