Search this API

y.option
Interface ImageOptionItem.ImageProvider

Enclosing class:
ImageOptionItem

public static interface ImageOptionItem.ImageProvider

Utility interface that serves as "universe" of available image descriptions.

 
Your browser does not support SVG content.

Method Summary
 void addImage(java.awt.Image i)
          Add an Image instance directly.
 void addImage(java.net.URL u)
          Add an URL instance that describes an image resource.
 void addImage(URLImageWrapper w)
          Add a wrapper object directly that wraps both image object and URL resource together
 java.util.Collection getAvailableImages()
          Retrieve all registered image descriptions
 

Method Detail

getAvailableImages

java.util.Collection getAvailableImages()
Retrieve all registered image descriptions

Returns:
all registered image descriptions

addImage

void addImage(java.awt.Image i)
Add an Image instance directly. No URL or other resource is associated with this instance

Parameters:
i - an Image instance to register.

addImage

void addImage(java.net.URL u)
Add an URL instance that describes an image resource.

Parameters:
u - an URL instance to register.

addImage

void addImage(URLImageWrapper w)
Add a wrapper object directly that wraps both image object and URL resource together

Parameters:
w - wrapper object that should be registered.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.