borland Packages Class Hierarchy jbcl.view Package Index
java.lang.Object +----borland.jbcl.view.ImageItemPainter +----borland.jbcl.view.ImageArrayItemPainter +----borland.jbcl.view.StateImageItemPainter
Variables Constructors Properties Methods
Implements ItemPainter, Serializable
The ImageArrayItemPainter class paints an image as an item in a list for display in a model-view control. It includes the functionality to insert and remove images from the array of images ImageArrayItemPainter maintains.
protected transient int imageCountThe number of images held in the array.
protected transient Image[] imagesThe array of images maintained by this class.
public ImageArrayItemPainter()Creates an ImageArrayItemPainter class.
public ImageArrayItemPainter(java.awt.Component component, int alignment, java.awt.Image[] images)Creates an ImageArrayItemPainter class with the specified component, alignment, and images.
Parameters:
public ImageArrayItemPainter(java.awt.Image[] images)Creates an ImageArrayItemPainter class with the specified array of images.
Parameters:
public int add(java.awt.Image image)Adds an image to the array of images and returns the new number of images in the array.
Parameters:
protected void assureSpace(int count)If the number specified with the count paramter is greater than the length of the array, the assureSpace() method increases the size of the array. assureSpace() is used by the add() method.
Parameters:
public int find(java.awt.Image image)Returns the location in the array of images of the specified image. The array is zero-based, so the first image in the array has a position of zero.
Parameters:
public int insert(java.awt.Image image, int index)Inserts the specified image in the array of images at the specified position within the array.
Parameters:
public boolean remove(int index)Removes the image at the specified position in the array and returns true if the image is successfully removed.
Parameters:
public boolean remove(java.awt.Image image)Removes the specified image from the array of images. If the image is successfully removed, remove() returns true.
Parameters: