oracle.cabo.ui.laf.icon
Class ResourceImageIcon
java.lang.Object
|
+--oracle.cabo.ui.laf.icon.Icon
|
+--oracle.cabo.ui.laf.icon.BaseImageIcon
|
+--oracle.cabo.ui.laf.icon.ResourceImageIcon
- public class ResourceImageIcon
- extends BaseImageIcon
An ImageIcon implementation which loads the icon data off the class path as a resource.
Constructor Summary |
ResourceImageIcon(java.lang.String uri, java.lang.Integer width, java.lang.Integer height)
Creates a ResourceImageIcon which uses the specified image uri regardless of the reading direction. |
ResourceImageIcon(java.lang.String uri, java.lang.String rtlURI, java.lang.Integer width, java.lang.Integer height)
Creates a ResourceImageIcon which has a different image URI depending on the reading direction. |
ResourceImageIcon(java.lang.String uri, java.lang.String rtlURI, java.lang.Integer width, java.lang.Integer height, java.lang.String styleClass, Style inlineStyle)
Creates a ResourceImageIcon which has a different image URI depending on the reading direction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceImageIcon
public ResourceImageIcon(java.lang.String uri,
java.lang.Integer width,
java.lang.Integer height)
- Creates a ResourceImageIcon which uses the specified image uri regardless of the reading direction.
-
- Parameters:
uri
- The URI that is passed to ClassLoader.getResourceAsStream() to retrieve the image data.
width
- An Integer representing the width of the icon, or null if the width is not known.
height
- An Integer representing the height of the icon, or null if the height is not known.
ResourceImageIcon
public ResourceImageIcon(java.lang.String uri,
java.lang.String rtlURI,
java.lang.Integer width,
java.lang.Integer height)
- Creates a ResourceImageIcon which has a different image URI depending on the reading direction.
-
- Parameters:
uri
- The URI of the left-to-right version of the image.
rtlURI
- The URI of the right-to-left version of the image
width
- An Integer representing the width of the icon, or null if the width is not known.
height
- An Integer representing the height of the icon, or null if the height is not known.
ResourceImageIcon
public ResourceImageIcon(java.lang.String uri,
java.lang.String rtlURI,
java.lang.Integer width,
java.lang.Integer height,
java.lang.String styleClass,
Style inlineStyle)
- Creates a ResourceImageIcon which has a different image URI depending on the reading direction.
-
- Parameters:
uri
- The URI of the left-to-right version of the image.
rtlURI
- The URI of the right-to-left version of the image
width
- An Integer representing the width of the icon, or null if the width is not known.
height
- An Integer representing the height of the icon, or null if the height is not known.
styleClass
- The style class for the image icon
inlineStyle
- The inline style for the image icon
getRelativeURI
protected java.lang.String getRelativeURI(RenderingContext context)
- Override of BaseImageIcon.getRelativeURI().
-
- Overrides:
getRelativeURI
in class BaseImageIcon
getBaseURI
protected java.lang.String getBaseURI(RenderingContext context)
- Implementation of BaseImageIcon.getBaseURI().
-
- Overrides:
getBaseURI
in class BaseImageIcon
getImageData
public InputStreamProvider getImageData(RenderingContext context)
throws java.io.IOException
- Override of Icon.getImageIcon().
-
- Overrides:
getImageData
in class Icon