JHotDraw 7.4.1

org.jhotdraw.draw
Class FigureLayerComparator

java.lang.Object
  extended by org.jhotdraw.draw.FigureLayerComparator
All Implemented Interfaces:
java.util.Comparator<Figure>

public class FigureLayerComparator
extends java.lang.Object
implements java.util.Comparator<Figure>

A Comparator used to sort figures by their layer property.

Version:
$Id: FigureLayerComparator.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer

Field Summary
static FigureLayerComparator INSTANCE
           
 
Method Summary
 int compare(Figure f1, Figure f2)
           
 
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
 

Field Detail

INSTANCE

public static final FigureLayerComparator INSTANCE
Method Detail

compare

public int compare(Figure f1,
                   Figure f2)
Specified by:
compare in interface java.util.Comparator<Figure>

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.