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

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

 

转载于:https://my.oschina.net/u/3279502/blog/1593309

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值