public class IltComponentUtilities extends Object
When an image is requested, it is stored in a local cache for
future use. To regenerate the image, call clearObjectImage(IlpGraphicView, IlpRepresentationObject)
first and then call getTinyImage(IlpGraphicView, IlpRepresentationObject)
.
Modifier | Constructor and Description |
---|---|
protected |
IltComponentUtilities()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
clearImage(IlpGraphicView view,
IlpRepresentationObject ro)
Removes the image that has been generated for the given representation object.
|
void |
clearObjectImage(IlpGraphicView view)
Removes all images that have been created for the given view.
|
void |
clearObjectImage(IlpGraphicView view,
IlpRepresentationObject ro)
Removes the image that has been generated for the given representation object.
|
static IltComponentUtilities |
getSingleton()
Returns the single instance of this class.
|
static Image |
getTinyImage(IlpGraphicView view,
IlpRepresentationObject ro)
Returns an image displaying the tiny representation of the given predefined
business object.
|
public static IltComponentUtilities getSingleton()
public void clearObjectImage(IlpGraphicView view, IlpRepresentationObject ro)
This method should be called to clear the image cache when the object attribute is changed or if any aspect of the graphic configuration is changed.
This method should also be called if the representation object is removed from the view.
view
- View where the object is representedro
- Representation objectpublic void clearObjectImage(IlpGraphicView view)
This method should be called to clear the image cache when the object attribute is changed or if any aspect of the graphic configuration is changed.
This method should also be called if the representation object is removed from the view.
view
- View where the objects are representedpublic static Image getTinyImage(IlpGraphicView view, IlpRepresentationObject ro)
This method creates an image that displays the tiny representation
of a predefined business object (See IltObject
) in
a given view.
view
- Graphic view where the object will be displayedro
- Representation objectnull
if the business object is from a custom
business class.IllegalArgumentException
- if the given representation object
is not valid or is representing an object that is not an IltObject
public static void clearImage(IlpGraphicView view, IlpRepresentationObject ro)
This method should be called to clear the image cache when the object attribute is changed or if any aspect of the graphic configuration is changed.
This method should also be called if the representation object is removed from the view.
view
- View where the object is representedro
- Representation object whose image will be removed, if this
argument is null
all images from the given view
will be removed.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.