Package limn.components
Enum Class Elevation
- All Implemented Interfaces:
Serializable,Comparable<Elevation>,Constable
How far a surface is lifted above what is around it. A widget says which of these it is, and
the theme says what that looks like:
Theme.elevation(Elevation).
Four, named for what the surface is and not numbered: a level that cannot be told from its neighbour on a screen is a level to get wrong.
A 1.x minor release may add constants to this enum: a switch over it needs a
default branch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIn the plane of what is around it: a pane, a window's content.Covers the window until it is answered: a dialog.Covers what is under it for a while: a menu, the list of a combo box, a calendar, a tooltip, a panel that slides in over content.A part of the page set a little above it: a card with no edge, a bar that floats. -
Method Summary
-
Enum Constant Details
-
FLAT
In the plane of what is around it: a pane, a window's content. Casts nothing. -
RAISED
A part of the page set a little above it: a card with no edge, a bar that floats. -
OVERLAY
Covers what is under it for a while: a menu, the list of a combo box, a calendar, a tooltip, a panel that slides in over content. -
MODAL
Covers the window until it is answered: a dialog.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-