ilog.views.diagrammer.application
Class IlvDiagrammerHashFunction
java.lang.Object
ilog.views.diagrammer.application.IlvDiagrammerHashFunction
public class IlvDiagrammerHashFunction
- extends Object
This class is used to determine which nodes of the diagram
are considered "equal" for Diagrammer application components.
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.
- See Also:
IlvDiagrammerTree.setIconHashFunction(ilog.views.diagrammer.application.IlvDiagrammerHashFunction),
IlvDiagrammerTree.getIconHashFunction(),
IlvDiagrammerPaletteBar.setAutomatic(boolean)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IlvDiagrammerHashFunction
public IlvDiagrammerHashFunction()
hashCode
public Object hashCode(IlvDiagrammer diagrammer,
Object obj)
- Returns the hash code for a node or a link in a diagram component.
Two nodes or links will be considered equivalent by Diagrammer application
components (for example the tree or the palette bar) if the hash codes
returned by this method are equal (in terms of the
Object.equals method).
- Parameters:
diagrammer - The diagram component that contains the object.obj - The node or link for which the hash code is requested.
Copyright © 1996-2007 ILOG S.A. All rights reserved. Documentation homepage.