com.davisor.graphics.chart
Class TypedAxisMarkerComparator

java.lang.Object
  extended bycom.davisor.graphics.chart.TypedAxisMarkerComparator
All Implemented Interfaces:
java.util.Comparator

public class TypedAxisMarkerComparator
extends java.lang.Object
implements java.util.Comparator

A comparator which compares AxisMarker positions. It first resolves the positions to DataValues using the given type.


Field Summary
protected  Type M_type
           
 
Constructor Summary
TypedAxisMarkerComparator(Type type)
          Uses the given type to compare AxisMarker postions.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares given two arguments for order.
 boolean equals(java.lang.Object obj)
          Compares this object to another for equality.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

M_type

protected Type M_type
Constructor Detail

TypedAxisMarkerComparator

public TypedAxisMarkerComparator(Type type)
Uses the given type to compare AxisMarker postions.

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares given two arguments for order.

Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Compares this object to another for equality. This object is equal to given object if it is an instance of TypedAxisMarkerComparator and if their types are equal (or both NULL).

Specified by:
equals in interface java.util.Comparator


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.