public enum Filling extends Enum<Filling>
size of the object will be expanded
horizontally and/or vertically if there is more space available.| Enum Constant and Description |
|---|
BOTH
Both width and height of the object will be expanded.
|
HORIZONTAL
The width of the object will be expanded while the height is kept.
|
NONE
The object will keep its
size. |
VERTICAL
The height of the object will be expanded while the width is kept.
|
| Modifier and Type | Method and Description |
|---|---|
Filling |
getMirrored()
This method returns the mirrored filling.
|
Filling |
getPart(Orientation orientation)
This method extracts the horizontal or vertical part of this filling.
|
static Filling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Filling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Filling HORIZONTAL
public static final Filling VERTICAL
public static final Filling BOTH
public static Filling[] values()
for (Filling c : Filling.values()) System.out.println(c);
public static Filling valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Filling getMirrored()
(NONE.mirror == NONE
(HORIZONTAL.mirror == VERTICAL
(VERTICAL.mirror == HORIZONTAL
(BOTH.mirror == BOTHpublic Filling getPart(Orientation orientation)
Copyright © 2001–2016 mmm-Team. All rights reserved.