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.

对于3D图形,因为绘制顺序的不同,有可能造成图形显示不正确,需要按位置排序.

Copyright: Copyright (c) 2013

Company:

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

Constructor Summary
Shape3DSortUtil()
          构造器.
 
Method Summary
 void addShape(double position, IChartShape shape)
          增加一个图形.
 void clearShapes()
          删除所有的图形.
 java.util.List getAllShapes()
          返回所有的图形.
 void sort()
          对所有的图形进行排序.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape3DSortUtil

public Shape3DSortUtil()
构造器.

Method Detail

addShape

public void addShape(double position,
                     IChartShape shape)
增加一个图形.

Parameters:
position - double 位置坐标.
shape - IChartShape 图形对象 (可为null).

clearShapes

public void clearShapes()
删除所有的图形.


sort

public void sort()
对所有的图形进行排序.


getAllShapes

public java.util.List getAllShapes()
返回所有的图形.

Returns:
List 图形集合 (不为null).