多比图形控件(Web版)的自带有20多个图元,例如长方形,正方形,椭圆,图片和google地图等。我们也可以自定义更多图元,以便于复用。
3.1 图元继承结构
多比图形控件(Web版)的自带有20多个图元,例如长方形,正方形,椭圆,图片和google地图等。我们也可以自定义更多图元,以便于复用。 多比图形控件(Web版)下载>>>

我们首先看一看多比控件自带的图元,以及他们之间的继承关系。
命名空间 |
名称 |
父类 |
BaseShapes |
Shape |
所有图元的父类,相当于Java中的Object |
StandardShapes |
Rectangle |
BaseShapes.Shape |
StandardShapes |
Square |
StandardShapes.Rectangle |
StandardShapes |
Text |
StandardShapes.Rectangle |
StandardShapes |
Circle |
BaseShapes.Shape |
StandardShapes |
DoubleCircle |
StandardShapes.Circle |
StandardShapes |
Connector |
BaseShapes.Shape |
StandardShapes |
Line |
StandardShapes.Connector |
StandardShapes |
Curve |
StandardShapes.Line |
StandardShapes |
Image |
StandardShapes.Rectangle |
StandardShapes |
Group |
StandardShapes.Rectangle |
StandardShapes |
RightAngledTriangle |
StandardShapes.Rectangle |
StandardShapes |
RoundRectangle |
StandardShapes.Rectangle |
StandardShapes |
Ellipse |
StandardShapes.Rectangle |
Connectors |
OneDimensionalLine |
StandardShapes.Line |
Connectors |
SingleArrow |
Connectors.OneDimensionalLine |
Connectors |
DoubleArrow |
Connectors.SingleArrow |
Connectors |
BaseTopConnector |
StandardShapes.Curve |
Connectors |
SideSideConnector |
StandardShapes.Curve |
Callouts |
Callout |
StandardShapes.Connector |
Callouts |
Note |
StandardShapes.Text |
Callouts |
BigNote |
Callouts.Note |
GoogleMaps |
Map |
StandardShapes.Image |
GoogleMaps |
Satellite |
GoogleMaps.Map |

标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!