|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.render.DefaultIconFactory
public class DefaultIconFactory
Implements IconFactory and additionally provides functionality to set the default icons.
| Constructor Summary | |
|---|---|
DefaultIconFactory()
|
|
| Method Summary | |
|---|---|
Color |
getColorFor(Classification classification,
float selectionLevel)
|
Color |
getColorFor(Object object,
float selectionLevel)
|
Image |
getDefaultLabelImage(Classification classification,
float selectionLevel)
|
Image |
getGraphNodeImage(Classification classification,
double diameter,
float selectionLevel)
Returns the Image used to render the graph node of a Classification. |
int |
getGraphNodeImageDiameter()
Returns the diameter of the graph node images at normal magnification. |
Image |
getLabelImage(Classification classification,
double diameter,
float selectionLevel)
Returns the Image used in the label of the Classification. |
int |
getLabelImageDiameter()
Returns the diameter of the label images at normal magnification. |
Image |
getObjectImage(Object object,
double diameter,
float selectionLevel)
Returns the Image used to render an Object contained in a Cluster. |
int |
getObjectImageDiameter()
Returns the diameter of the object images at normal magnification. |
Image |
getScaledImage(Image image,
double diameter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIconFactory()
| Method Detail |
|---|
public int getObjectImageDiameter()
IconFactory
getObjectImageDiameter in interface IconFactory
public Image getObjectImage(Object object,
double diameter,
float selectionLevel)
IconFactoryThis method should respond fast, as retrieved Images will not be cached.
getObjectImage in interface IconFactoryobject - The Object for which a representative Image should be returned.diameter - The diameter the image should have. The image is assumed to depect
a more-or-less round shape with transparent corners, hence
'diameter' instead of 'width. The diameter is encoded as a double
to allow continuous scaling.selectionLevel - A number indicating the level to which the Object is considered to
be selected. This is a number between 0 and 1. Typically only
these two values are used, future version of the software may also
use intermediate values.
public Color getColorFor(Object object,
float selectionLevel)
public int getGraphNodeImageDiameter()
IconFactory
getGraphNodeImageDiameter in interface IconFactory
public Image getGraphNodeImage(Classification classification,
double diameter,
float selectionLevel)
IconFactoryThis Image may be null.
getGraphNodeImage in interface IconFactoryclassification - The Classification for which a representative Image should be
returned.diameter - The diameter the image should have, encoded as a double to allow
continuous scaling.selectionLevel - A number indicating the level to which the Classification is
considered to be selected. This is a number between 0 and 1.
public Color getColorFor(Classification classification,
float selectionLevel)
public int getLabelImageDiameter()
IconFactory
getLabelImageDiameter in interface IconFactory
public Image getLabelImage(Classification classification,
double diameter,
float selectionLevel)
IconFactoryUnlike the graph node image, the label image is always displayed by the Cluster Map, as it may contain vital semantics of the Classification that is necessary to correctly interpret the graph.
This Image may be null.
getLabelImage in interface IconFactoryclassification - The Classification for which a representative Image should be
returned.diameter - The diameter the image should have, encoded as a double to enable
continuous scaling.selectionLevel - A number indicating the level to which the Classification is
considered to be selected. This is a number between 0 and 1.
public Image getDefaultLabelImage(Classification classification,
float selectionLevel)
public Image getScaledImage(Image image,
double diameter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||