Package swingtree
Enum Class UI.ComponentArea
- All Implemented Interfaces:
Serializable
,Comparable<UI.ComponentArea>
,Constable
,UIEnum<UI.ComponentArea>
- Enclosing class:
- UI
@Immutable
public static enum UI.ComponentArea
extends Enum<UI.ComponentArea>
implements UIEnum<UI.ComponentArea>
Defines the areas of a component, which is used
to by the
The following list describes what each enum instance represents:
ImageConf
to determine if and how an image should be clipped.
Pass instances of this to ImageConf.clipTo(ComponentArea)
to configure the clipping behaviour
as part of the style API (see UIForAnySwing.withStyle(Styler)
). The following list describes what each enum instance represents:
ALL
- The entire component, which is the union of all other clip areas (INTERIOR + EXTERIOR + BORDER + CONTENT
).INTERIOR
- The inner component area, which is defined asALL - EXTERIOR - BORDER
.EXTERIOR
- The outer component area, which can be expressed asALL - INTERIOR - BORDER
, orALL - CONTENT
.BORDER
- The border of the component, which is the area between the inner and outer component area and which can be expressed asALL - INTERIOR - EXTERIOR
.BODY
- The body of the component is the inner component area including the border area. It can be expressed asALL - EXTERIOR
, orINTERIOR + BORDER
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UI.ComponentArea
Returns the enum constant of this class with the specified name.static UI.ComponentArea[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
-
EXTERIOR
-
BORDER
-
INTERIOR
-
BODY
-
-
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
-