Package org.openstreetmap.josm.tools
Enum Class ImageProvider.ImageSizes
- All Implemented Interfaces:
Serializable,Comparable<ImageProvider.ImageSizes>,Constable
- Enclosing class:
- ImageProvider
Supported image sizes
- Since:
- 7687
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbout dialog logo sizecursor icon sizecursor overlay icon sizeThe default image sizeHTML inline imageLARGE_ICON_KEY value of an ActionLayer list icon sizemap iconmap icon maximum sizemenu icon sizeNotification icon maximum sizemenu icon size in popup menusSettings tab icon sizeSide button maximum heightSMALL_ICON value of an ActionSplash dialog logo sizeStatus line logo sizeTable icon sizeToolbar button icon size -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImageSizes(int imageSize) privateImageSizes(int width, int height) private -
Method Summary
Modifier and TypeMethodDescriptionintReturns the image height in pixels to use for displayintReturns the image width in pixels to use for displayReturns the image size as dimensionintReturns the image height in virtual pixelsintReturns the image width in virtual pixelsstatic ImageProvider.ImageSizesReturns the enum constant of this class with the specified name.static ImageProvider.ImageSizes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMALLICON
SMALL_ICON value of an Action -
LARGEICON
LARGE_ICON_KEY value of an Action -
MAP
map icon -
MAPMAX
map icon maximum size -
CURSOR
cursor icon size -
CURSOROVERLAY
cursor overlay icon size -
MENU
menu icon size -
POPUPMENU
menu icon size in popup menus- Since:
- 8323
-
LAYER
Layer list icon size- Since:
- 8323
-
TABLE
Table icon size- Since:
- 15049
-
TOOLBAR
Toolbar button icon size- Since:
- 9253
-
SIDEBUTTON
Side button maximum height- Since:
- 9253
-
SETTINGS_TAB
Settings tab icon size- Since:
- 9253
-
DEFAULT
The default image size- Since:
- 9705
-
SPLASH_LOGO
Splash dialog logo size- Since:
- 10358
-
ABOUT_LOGO
About dialog logo size- Since:
- 10358
-
STATUSLINE
Status line logo size- Since:
- 13369
-
HTMLINLINE
HTML inline image- Since:
- 16872
-
NOTIFICATION
Notification icon maximum size- Since:
- 19643
-
-
Field Details
-
virtualWidth
-
virtualHeight
-
-
Constructor Details
-
ImageSizes
-
ImageSizes
-
ImageSizes
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getVirtualWidth
Returns the image width in virtual pixels- Returns:
- the image width in virtual pixels
- Since:
- 9705
-
getVirtualHeight
Returns the image height in virtual pixels- Returns:
- the image height in virtual pixels
- Since:
- 9705
-
getAdjustedWidth
Returns the image width in pixels to use for display- Returns:
- the image width in pixels to use for display
- Since:
- 10484
-
getAdjustedHeight
Returns the image height in pixels to use for display- Returns:
- the image height in pixels to use for display
- Since:
- 10484
-
getImageDimension
Returns the image size as dimension- Returns:
- the image size as dimension
- Since:
- 9705
-