- All Implemented Interfaces:
Serializable
,Comparable<PanelGraphics.Mode>
- Enclosing class:
- PanelGraphics
PanelGraphics modes.
The term "drawing area" is described in the documentation
for
PanelGraphics
.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo not perform any scaling.Scale the drawing area in the horizontal and vertical directions so that it just fits inside a JPanel.Scale the drawing area equally in the horizontal and vertical directions so that it just fits inside a JPanel.Scale the drawing area equally in the horizontal and vertical directions so that it's horizontal dimensions just fits inside a JPanel.Scale the drawing area equally in the horizontal and vertical directions so that it's vertical dimensions just fits inside a JPanel. -
Method Summary
Modifier and TypeMethodDescriptionstatic PanelGraphics.Mode
Returns the enum constant of this type with the specified name.static PanelGraphics.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIT
Scale the drawing area equally in the horizontal and vertical directions so that it just fits inside a JPanel. -
FIT_HORIZONTAL
Scale the drawing area equally in the horizontal and vertical directions so that it's horizontal dimensions just fits inside a JPanel. -
FIT_VERTICAL
Scale the drawing area equally in the horizontal and vertical directions so that it's vertical dimensions just fits inside a JPanel. -
AS_IS
Do not perform any scaling. The drawing area will have an origin at (0, 0). -
FILL
Scale the drawing area in the horizontal and vertical directions so that it just fits inside a JPanel. If the dimensions of the area and JPanel are not consistent, the scaling may be unequal.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-