public class Ring3D extends SpecialGlyph implements Object3D
构造器和说明 |
---|
Ring3D() |
限定符和类型 | 方法和说明 |
---|---|
void |
addCylinder(Cylinder outerCylinder,
Cylinder innerCylinder)
肯定是同时加的两个cylinder
|
void |
addOrigin(Cylinder origin)
增加没有别分割的还原的形状
|
Ring3D |
calculateBackHalf()
计算后一半的圆环
|
Ring3D |
calculateFrontHalf()
计算圆环的前一半的形状
|
void |
clearCylinder()
清除所有cylinder
|
void |
draw(java.awt.Graphics g,
int resolution)
画法
|
void |
drawBack(java.awt.Graphics2D g2d)
画背面
|
void |
drawPositive(java.awt.Graphics2D g2d)
画正面
|
void |
drawSide(java.awt.Graphics2D g2d)
画边上
|
void |
drawTop(java.awt.Graphics2D g2d)
画上面
|
boolean |
equals(java.lang.Object ob)
对象是否相等
|
int |
getCylinderCount()
总共的cylinder
|
Cylinder |
getInnerCylinder(int index)
里层的cylinder
|
Cylinder |
getOuterCylinder(int index)
外层的cylinder
|
Projection |
getProjection()
返回3D图表的投影
|
java.awt.Shape |
getShape()
外形
|
java.awt.geom.Point2D |
getTopCenterPoint()
返回还原的中间的点
|
void |
paintEndSide(java.awt.Graphics2D g2d) |
void |
paintStartSide(java.awt.Graphics2D g2d) |
void |
setProjection(Projection projection)
设置3D图表的投影
|
clone, selectableChildren, toJSONObject
public void draw(java.awt.Graphics g, int resolution)
public void drawPositive(java.awt.Graphics2D g2d)
g2d
- 画图对象public void drawTop(java.awt.Graphics2D g2d)
g2d
- 画图对象public void drawSide(java.awt.Graphics2D g2d)
g2d
- 画图对象public void paintStartSide(java.awt.Graphics2D g2d)
public void paintEndSide(java.awt.Graphics2D g2d)
public void drawBack(java.awt.Graphics2D g2d)
g2d
- 画图对象public Ring3D calculateFrontHalf()
public Ring3D calculateBackHalf()
public Projection getProjection()
getProjection
在接口中 Object3D
public void setProjection(Projection projection)
setProjection
在接口中 Object3D
projection
- 投影public void addCylinder(Cylinder outerCylinder, Cylinder innerCylinder)
outerCylinder
- 外层的cylinderinnerCylinder
- 里层decylinderpublic void addOrigin(Cylinder origin)
origin
- 没有被分割的圆环的形状public Cylinder getOuterCylinder(int index)
index
- 所引public Cylinder getInnerCylinder(int index)
index
- 所引public int getCylinderCount()
public void clearCylinder()
public java.awt.geom.Point2D getTopCenterPoint()
public boolean equals(java.lang.Object ob)
equals
在类中 java.lang.Object
ob
- 对象