com.ijchart.xychart.render.util
Class Shape3DSortUtil

java.lang.Object
  extended by com.ijchart.xychart.render.util.Shape3DSortUtil

public class Shape3DSortUtil
extends java.lang.Object

Title: IJChart

Description: a chart library for the Java(tm) platform.

A util class for sort 3d shape.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.

Constructor Summary
Shape3DSortUtil()
           A constructor.
 
Method Summary
 void addShape(double position, IChartShape shape)
           Add a shape.
 void clearShapes()
           Clear all shapes.
 java.util.List getAllShapes()
           Returns all shapes.
 void sort()
           Sort all shapes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape3DSortUtil

public Shape3DSortUtil()
A constructor.

Method Detail

addShape

public void addShape(double position,
                     IChartShape shape)
Add a shape.

Parameters:
position - double The shape position.
shape - IChartShape A shape (null permitted).

clearShapes

public void clearShapes()
Clear all shapes.


sort

public void sort()
Sort all shapes.


getAllShapes

public java.util.List getAllShapes()
Returns all shapes.

Returns:
List The shapes collection.