多比图形控件(Web版)教程(三):Javascript绘图的图元继承结构

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

3.1 图元继承结构

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

asp.net/jsp网页图形设计器中的基本图元

 我们首先看一看多比控件自带的图元,以及他们之间的继承关系。

命名空间

名称

父类

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

 


多比图形控件(Web版)教程(三):Javascript绘图的图元继承结构
标签:

来源:慧都

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年11月18日
下一篇 2017年11月18日

相关推荐

发表回复

登录后才能评论