Class: UI

ov. UI

new ov.UI()

webgl/ov-BestCommentatorUI.js, line 5

oview UI類命名空間

Classes

ColorGroupDialog
Form
FormDialog
ListItem
ListPanel
Mask
PropertyPanel

Methods

staticov.UI.BubbleUI(parameter)

common/PilotGaea-UI.js, line 278

新增UI物件會隨著ov.TerrainView的攝影機狀態投影得到氣泡的位置,可以用來放html元素,ex:iframe、ov.chart生成的圖表等等

Name Type Description
parameter Object

氣泡UI設定參數

Name Type Description
x number

氣泡UI的起始x位置,註:這裡位置是地圖的位置

y number

氣泡UI的起始y位置,註:這裡位置是地圖的位置

z number

氣泡UI的起始z位置,註:這裡位置是地圖的位置

width number

氣泡UI的寬

height number

氣泡UI的高

lockPointHorizontal string

鎖點的橫位置,可以設置left、middle、right

lockPointVertical string

鎖點的縱位置,可以設置top、middle、bottom

offsetX number

氣泡UI的偏移x位置

offsetY number

氣泡UI的偏移y位置

title string

標題的內容文字,若沒有設置則不會出現標題

haveButton boolean

是否有按鈕

onClose function

關閉時的回呼事件

Example

var bubbleUI = new ov.UI.BubbleUI(parameter);

staticov.UI.Container(parameter)

common/PilotGaea-UI.js, line 23

UI物件父類別,可以用來放html元素,ex:iframe、ov.chart生成的圖表等等

Name Type Description
parameter Object

UI設定參數

Name Type Description
x number

UI的起始x位置

y number

UI的起始y位置

width number

UI的寬

height number

UI的高

lockPointHorizontal string

鎖點的橫位置,可以設置left、middle、right

lockPointVertical string

鎖點的縱位置,可以設置top、middle、bottom

offsetX number

UI的偏移x位置

offsetY number

UI的偏移y位置

title string

標題的內容文字,若沒有設置則不會出現標題

closeButton boolean

是否有關閉按鈕

onClose function

關閉時的回呼事件

Example

不要使用此父類別來生成UI

staticov.UI.UIContext(updateCallback, div)

common/PilotGaea-UI.js, line 487

建一個容器來存放管理UI

Name Type Description
updateCallback function

update需要執行的function

div Node

UI物件的父元素(節點)

staticov.UI.WindowUI(parameter)

common/PilotGaea-UI.js, line 476

新增UI物件固定在畫面的某一位置上,可以用來放html元素,ex:iframe、ov.chart生成的圖表等等

Name Type Description
parameter Object

UI設定參數

Name Type Description
x number

UI的起始x位置,註:位置為螢幕位置

y number

UI的起始y位置,註:位置為螢幕位置

width number

UI的寬

height number

UI的高

lockPointHorizontal string

鎖點的橫位置,可以設置left、middle、right

lockPointVertical string

鎖點的縱位置,可以設置top、middle、bottom

offsetX number

UI的偏移x位置

offsetY number

UI的偏移y位置

title string

標題的內容文字,若沒有設置則不會出現標題

haveButton boolean

是否有按鈕

onClose function

關閉時的回呼事件

Example

var windowUI = new ov.UI.WindowUI(parameter);