Package ca.cgjennings.ui.theme
Interface ThemedIcon
-
- All Superinterfaces:
javax.swing.Icon
- All Known Implementing Classes:
AbstractThemedIcon,BlankIcon,PaintSampleIcon,TaskIcon,ThemedCompoundIcon,ThemedGlyphIcon,ThemedImageIcon,ThemedSingleImageIcon
public interface ThemedIcon extends javax.swing.IconInterface implemented by all Strange Eons icons.- Author:
- Chris Jennings
-
-
Field Summary
Fields Modifier and Type Field Description static intGIGANTICstatic intLARGEstatic intMEDIUMstatic intMEDIUM_LARGEstatic intMEDIUM_SMALLstatic intSMALLstatic intTINYstatic intVERY_LARGE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ThemedIconcreate(java.io.File platformFile)Creates a themed icon based on the platform desktop icon for the specified icon.static ThemedIconcreate(javax.swing.Icon icon)Creates a themed icon from any arbitrary icon.default ThemedIconderive(int newSize)Returns a new icon that renders the same image as this icon, but at a different size.ThemedIconderive(int newWidth, int newHeight)Returns a new icon that renders the same image as this icon, but at a different size.ThemedIcondisabled()Returns a new icon that renders the same image as this icon, but as if for a permanently disabled component.default ThemedIcongigantic()default ThemedIconlarge()default ThemedIconmedium()default ThemedIconmediumLarge()default ThemedIconmediumSmall()default ThemedIconsmall()default ThemedIcontiny()default ThemedIconveryLarge()
-
-
-
Field Detail
-
TINY
static final int TINY
- See Also:
- Constant Field Values
-
SMALL
static final int SMALL
- See Also:
- Constant Field Values
-
MEDIUM_SMALL
static final int MEDIUM_SMALL
- See Also:
- Constant Field Values
-
MEDIUM
static final int MEDIUM
- See Also:
- Constant Field Values
-
MEDIUM_LARGE
static final int MEDIUM_LARGE
- See Also:
- Constant Field Values
-
LARGE
static final int LARGE
- See Also:
- Constant Field Values
-
VERY_LARGE
static final int VERY_LARGE
- See Also:
- Constant Field Values
-
GIGANTIC
static final int GIGANTIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
derive
ThemedIcon derive(int newWidth, int newHeight)
Returns a new icon that renders the same image as this icon, but at a different size.- Parameters:
newWidth- the new width ≥ 1newHeight- the new height ≥ 1- Returns:
- an icon with the revised dimensions
-
derive
default ThemedIcon derive(int newSize)
Returns a new icon that renders the same image as this icon, but at a different size.- Parameters:
newSize- the new width and height ≥ 1- Returns:
- an icon with the revised dimensions
-
disabled
ThemedIcon disabled()
Returns a new icon that renders the same image as this icon, but as if for a permanently disabled component.- Returns:
- a disabled verison of the icon
-
create
static ThemedIcon create(javax.swing.Icon icon)
Creates a themed icon from any arbitrary icon. If passed a themed icon, returns it unchanged. If passed null, returns null. If passed some other type of icon, it is converted to an equivalent themed icon.- Parameters:
icon- the icon to create a themed version for- Returns:
- a themed icon that renders the same graphic as the specified icon
-
create
static ThemedIcon create(java.io.File platformFile)
Creates a themed icon based on the platform desktop icon for the specified icon.- Parameters:
file- the non-null file to create an icon for
-
tiny
default ThemedIcon tiny()
-
small
default ThemedIcon small()
-
mediumSmall
default ThemedIcon mediumSmall()
-
medium
default ThemedIcon medium()
-
mediumLarge
default ThemedIcon mediumLarge()
-
large
default ThemedIcon large()
-
veryLarge
default ThemedIcon veryLarge()
-
gigantic
default ThemedIcon gigantic()
-
-