public class IlvDiagrammerHashFunction extends Object
For example, the IlvDiagrammerTree
uses the same icon for tree items
that represent nodes or links for which the hash function returns the same
code.
The default icon key returns the tag of the object
(IlvSDMModel.getTag(java.lang.Object)
) concatenated with all its
CSS classes (that is, the value of the "CSSclass"
property).
So, for example, all objects that have the same tag and CSS classes will be
displayed with the same icon in the tree.
Constructor and Description |
---|
IlvDiagrammerHashFunction()
Creates a new
IlvDiagrammerHashFunction |
Modifier and Type | Method and Description |
---|---|
Object |
hashCode(IlvDiagrammer diagrammer,
Object obj)
Returns the hash code for a node or a link in a diagram component.
|
public IlvDiagrammerHashFunction()
IlvDiagrammerHashFunction
public Object hashCode(IlvDiagrammer diagrammer, Object obj)
Object.equals
method).diagrammer
- The diagram component that contains the object.obj
- The node or link for which the hash code is requested.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.