Package com.structurizr.view
Enum PaperSize
java.lang.Object
java.lang.Enum<PaperSize>
com.structurizr.view.PaperSize
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PaperSize>
,java.lang.constant.Constable
public enum PaperSize extends java.lang.Enum<PaperSize>
These represent paper sizes in pixels at 300dpi.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaperSize.Orientation
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description int
getHeight()
java.lang.String
getName()
static java.util.List<PaperSize>
getOrderedPaperSizes()
static java.util.List<PaperSize>
getOrderedPaperSizes(PaperSize.Orientation orientation)
PaperSize.Orientation
getOrientation()
int
getWidth()
static PaperSize
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PaperSize[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName() -
getOrientation
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getOrderedPaperSizes
-
getOrderedPaperSizes
-