Ontimize 5.2072EN

com.ontimize.util.swing.text
Class ComponentTextPane.ComparatorLabelsPosition

java.lang.Object
  extended bycom.ontimize.util.swing.text.ComponentTextPane.ComparatorLabelsPosition
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ComponentTextPane

protected static class ComponentTextPane.ComparatorLabelsPosition
extends java.lang.Object
implements java.util.Comparator

Compare two objects. If the objects are instance of CustomLabel then compare the start offset of this components, in other case return -1


Constructor Summary
protected ComponentTextPane.ComparatorLabelsPosition()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ComponentTextPane.ComparatorLabelsPosition

protected ComponentTextPane.ComparatorLabelsPosition()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

Ontimize