限定符和类型 | 类和说明 |
---|---|
static class |
Cylinder.CylinderSide
再画内部侧面四边形, 需要排序,按角度排序
当是Start时, angle = start || angle = start + extend / Math.abs(extend);
当是End时,angle = end || angle = end - extend / Math.abs(extend);
排序:value = Math.abs(angle - 90) % 360, 如果value 大于180度,则为value = 360 - value
共有cylinder_list.size() * 2个这样的angle需要排序
|
限定符和类型 | 方法和说明 |
---|---|
java.awt.geom.Area |
back()
返回Cylinder的背面 分别独显 back部分的多个case情况.
|
java.awt.geom.Arc2D |
bottom()
返回Cylinder的底层
|
boolean |
equals(java.lang.Object ob)
比较和Object是否相等
|
java.awt.geom.Area |
front()
返回Cylinder的前面
|
java.awt.geom.Arc2D |
getArc2D(int depth) |
static java.awt.geom.Point2D |
getArcPoint(java.awt.geom.Arc2D arc,
double angle) |
java.awt.geom.Area |
getBack() |
Cylinder[] |
getBackPie3d() |
ColorInfo |
getColorInfo() |
java.awt.geom.GeneralPath |
getEndSide()
Cylinder的结束面
|
double |
getExtent() |
Cylinder[] |
getFrontPie3d() |
java.awt.geom.Area |
getNegtiveBack() |
Projection |
getProjection()
返回3D图表的投影
|
java.awt.Shape |
getShape() |
java.awt.geom.GeneralPath |
getStartSide()
返回Cylinder的起始面
|
boolean |
isEndEnable()
返回是否需要结束的那个侧面
|
boolean |
isStartEnable()
返回是否需要开始的那个侧面
|
void |
setAttrbute(double x,
double y,
double start,
double extent,
Projection projection) |
void |
setColorInfo(ColorInfo colorInfo) |
void |
setExtent(double extend) |
void |
setProjection(Projection projection)
设置3D图表的投影
|
void |
setStart(double start) |
void |
setX(double x) |
void |
setY(double y) |
java.awt.geom.Arc2D |
top()
返回Cylinder的顶层面
|
java.awt.geom.Point2D |
topCenterPoint(java.awt.geom.Point2D centerPoint)
cylinder的中心的点
|
java.awt.geom.Point2D |
topMiddleEdgePoint()
top的最边上的弧的中点
|
public void setAttrbute(double x, double y, double start, double extent, Projection projection)
public boolean isStartEnable()
public boolean isEndEnable()
public java.awt.geom.Arc2D bottom()
public Cylinder[] getFrontPie3d()
public Cylinder[] getBackPie3d()
public java.awt.geom.Area getBack()
public java.awt.geom.Area getNegtiveBack()
public java.awt.geom.Area back()
public java.awt.geom.Area front()
public java.awt.geom.Arc2D top()
public java.awt.geom.GeneralPath getStartSide()
public java.awt.geom.GeneralPath getEndSide()
public java.awt.geom.Arc2D getArc2D(int depth)
public java.awt.Shape getShape()
public void setProjection(Projection projection)
Object3D
setProjection
在接口中 Object3D
projection
- 投影public Projection getProjection()
Object3D
getProjection
在接口中 Object3D
public void setColorInfo(ColorInfo colorInfo)
public ColorInfo getColorInfo()
public void setX(double x)
public void setY(double y)
public void setStart(double start)
public void setExtent(double extend)
public double getExtent()
public static java.awt.geom.Point2D getArcPoint(java.awt.geom.Arc2D arc, double angle)
public java.awt.geom.Point2D topMiddleEdgePoint()
public java.awt.geom.Point2D topCenterPoint(java.awt.geom.Point2D centerPoint)
centerPoint
- 给定的开始的点public boolean equals(java.lang.Object ob)
equals
在类中 java.lang.Object
ob
- 用 于比较的Object