Package org.openstreetmap.josm.tools
Enum ImageProvider.ImageSizes
- java.lang.Object
-
- java.lang.Enum<ImageProvider.ImageSizes>
-
- org.openstreetmap.josm.tools.ImageProvider.ImageSizes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ImageProvider.ImageSizes>
- Enclosing class:
- ImageProvider
public static enum ImageProvider.ImageSizes extends java.lang.Enum<ImageProvider.ImageSizes>
Supported image sizes- Since:
- 7687
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABOUT_LOGO
About dialog logo sizeCURSOR
cursor icon sizeCURSOROVERLAY
cursor overlay icon sizeDEFAULT
The default image sizeHTMLINLINE
HTML inline imageLARGEICON
LARGE_ICON_KEY value of an ActionLAYER
Layer list icon sizeMAP
map iconMAPMAX
map icon maximum sizeMENU
menu icon sizePOPUPMENU
menu icon size in popup menusSETTINGS_TAB
Settings tab icon sizeSIDEBUTTON
Side button maximum heightSMALLICON
SMALL_ICON value of an ActionSPLASH_LOGO
Splash dialog logo sizeSTATUSLINE
Status line logo sizeTABLE
Table icon sizeTOOLBAR
Toolbar button icon size
-
Field Summary
Fields Modifier and Type Field Description private int
virtualHeight
private int
virtualWidth
-
Constructor Summary
Constructors Modifier Constructor Description private
ImageSizes(int imageSize)
private
ImageSizes(int width, int height)
private
ImageSizes(ImageProvider.ImageSizes that)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAdjustedHeight()
Returns the image height in pixels to use for displayint
getAdjustedWidth()
Returns the image width in pixels to use for displayjava.awt.Dimension
getImageDimension()
Returns the image size as dimensionint
getVirtualHeight()
Returns the image height in virtual pixelsint
getVirtualWidth()
Returns the image width in virtual pixelsstatic ImageProvider.ImageSizes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ImageProvider.ImageSizes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMALLICON
public static final ImageProvider.ImageSizes SMALLICON
SMALL_ICON value of an Action
-
LARGEICON
public static final ImageProvider.ImageSizes LARGEICON
LARGE_ICON_KEY value of an Action
-
MAP
public static final ImageProvider.ImageSizes MAP
map icon
-
MAPMAX
public static final ImageProvider.ImageSizes MAPMAX
map icon maximum size
-
CURSOR
public static final ImageProvider.ImageSizes CURSOR
cursor icon size
-
CURSOROVERLAY
public static final ImageProvider.ImageSizes CURSOROVERLAY
cursor overlay icon size
-
MENU
public static final ImageProvider.ImageSizes MENU
menu icon size
-
POPUPMENU
public static final ImageProvider.ImageSizes POPUPMENU
menu icon size in popup menus- Since:
- 8323
-
LAYER
public static final ImageProvider.ImageSizes LAYER
Layer list icon size- Since:
- 8323
-
TABLE
public static final ImageProvider.ImageSizes TABLE
Table icon size- Since:
- 15049
-
TOOLBAR
public static final ImageProvider.ImageSizes TOOLBAR
Toolbar button icon size- Since:
- 9253
-
SIDEBUTTON
public static final ImageProvider.ImageSizes SIDEBUTTON
Side button maximum height- Since:
- 9253
-
SETTINGS_TAB
public static final ImageProvider.ImageSizes SETTINGS_TAB
Settings tab icon size- Since:
- 9253
-
DEFAULT
public static final ImageProvider.ImageSizes DEFAULT
The default image size- Since:
- 9705
-
SPLASH_LOGO
public static final ImageProvider.ImageSizes SPLASH_LOGO
Splash dialog logo size- Since:
- 10358
-
ABOUT_LOGO
public static final ImageProvider.ImageSizes ABOUT_LOGO
About dialog logo size- Since:
- 10358
-
STATUSLINE
public static final ImageProvider.ImageSizes STATUSLINE
Status line logo size- Since:
- 13369
-
HTMLINLINE
public static final ImageProvider.ImageSizes HTMLINLINE
HTML inline image- Since:
- 16872
-
-
Field Detail
-
virtualWidth
private final int virtualWidth
-
virtualHeight
private final int virtualHeight
-
-
Constructor Detail
-
ImageSizes
private ImageSizes(int imageSize)
-
ImageSizes
private ImageSizes(int width, int height)
-
ImageSizes
private ImageSizes(ImageProvider.ImageSizes that)
-
-
Method Detail
-
values
public static ImageProvider.ImageSizes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageProvider.ImageSizes c : ImageProvider.ImageSizes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageProvider.ImageSizes valueOf(java.lang.String name)
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
-
getVirtualWidth
public int getVirtualWidth()
Returns the image width in virtual pixels- Returns:
- the image width in virtual pixels
- Since:
- 9705
-
getVirtualHeight
public int getVirtualHeight()
Returns the image height in virtual pixels- Returns:
- the image height in virtual pixels
- Since:
- 9705
-
getAdjustedWidth
public int getAdjustedWidth()
Returns the image width in pixels to use for display- Returns:
- the image width in pixels to use for display
- Since:
- 10484
-
getAdjustedHeight
public int getAdjustedHeight()
Returns the image height in pixels to use for display- Returns:
- the image height in pixels to use for display
- Since:
- 10484
-
getImageDimension
public java.awt.Dimension getImageDimension()
Returns the image size as dimension- Returns:
- the image size as dimension
- Since:
- 9705
-
-