public enum PixmapRatioMode extends Enum<PixmapRatioMode>
Pixmap
for proper display with text (character) e.g. when printing an
RgbPixmap
on the console with ASCII art using the
AsciiArtBuilder
.Enum Constant and Description |
---|
CONSOLE
The width to height ration is adjusted to look good on a console /
terminal.
|
NONE
The pixmap will not be scaled at all.
|
ONE_HALF
The width to height ration is one to one half (1:1/2).
|
THREE_QUARTERS
The width to height ration is one to three quarters (1:3/4).
|
TWO_THIRDS
The width to height ration is one to two thirds (1:2/3).
|
Modifier and Type | Method and Description |
---|---|
float |
getRatio()
Gets the ratio.
|
static PixmapRatioMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PixmapRatioMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PixmapRatioMode NONE
public static final PixmapRatioMode ONE_HALF
public static final PixmapRatioMode TWO_THIRDS
public static final PixmapRatioMode THREE_QUARTERS
public static final PixmapRatioMode CONSOLE
public static PixmapRatioMode[] values()
for (PixmapRatioMode c : PixmapRatioMode.values()) System.out.println(c);
public static PixmapRatioMode 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 float getRatio()
Copyright © 2017. All rights reserved.