沒有找到合適的產(chǎn)品?
聯(lián)系客服協(xié)助選型:023-68661681
提供3000多款全球軟件/控件產(chǎn)品
針對軟件研發(fā)的各個階段提供專業(yè)培訓與技術咨詢
根據(jù)客戶需求提供定制化的軟件開發(fā)服務
全球知名設計軟件,顯著提升設計質(zhì)量
打造以經(jīng)營為中心,實現(xiàn)生產(chǎn)過程透明化管理
幫助企業(yè)合理產(chǎn)能分配,提高資源利用率
快速打造數(shù)字化生產(chǎn)線,實現(xiàn)全流程追溯
生產(chǎn)過程精準追溯,滿足企業(yè)合規(guī)要求
以六西格瑪為理論基礎,實現(xiàn)產(chǎn)品質(zhì)量全數(shù)字化管理
通過大屏電子看板,實現(xiàn)車間透明化管理
對設備進行全生命周期管理,提高設備綜合利用率
實現(xiàn)設備數(shù)據(jù)的實時采集與監(jiān)控
打通數(shù)據(jù)孤島 實現(xiàn)生產(chǎn)過程全透明化
實現(xiàn)產(chǎn)品全生命周期的質(zhì)量管理與追溯
精準制定生產(chǎn)計劃 合理配置生產(chǎn)資源
全面可視的生產(chǎn)質(zhì)量統(tǒng)計與追溯
一鍵生成排產(chǎn)計劃,有效提升資源利用率
打通生產(chǎn)過程數(shù)字化全鏈路,提高生產(chǎn)效率
幫助企業(yè)大幅降低因改裝質(zhì)量問題帶來的損失
打造數(shù)字化工廠,全面提升產(chǎn)品質(zhì)量
快速應對訂單變化,大幅減少企業(yè)資源浪費
實現(xiàn)產(chǎn)品報價快速精準,全面實現(xiàn)生產(chǎn)透明化
打造生產(chǎn)計劃自動排產(chǎn)信息化平臺
一款能通過使用AJAX技術在網(wǎng)頁上顯示動態(tài)實時圖片的瘦客戶端解決方案
標簽:JavaAJAX工業(yè)4.0開發(fā)商: Generic Logic
當前版本: v4.0
產(chǎn)品類型:控件
產(chǎn)品功能:圖表
平臺語言:JAVA
開源水平:不提供源碼
本產(chǎn)品的分類與介紹僅供參考,具體以商家網(wǎng)站介紹為準,如有疑問請來電 023-68661681 咨詢。
GLG圖片服務器是一款瘦客戶端解決方案,它能通過使用AJAX技術在網(wǎng)頁上顯示動態(tài)實時圖片。并且能代替胖客戶端操作方法,只需使用客戶端上最小限度的功能。
通過基于瘦客戶端方法的AJAX,當大部分應用程序進程在中心服務器上運行時,客戶端能實現(xiàn)只需使用行業(yè)標準HTML與JavaScript顯示前臺的功能。為顯示基于輸入數(shù)據(jù)而動態(tài)更新的圖片,服務器需要根據(jù)每個圖像需求轉(zhuǎn)化圖片的圖像。
The GLG Graphics Server is a thin-client solution for displaying dynamic real-time graphics on a web page using AJAX technology. It is an alternative to the thick client approach and requires only minimal capabilities on the client.
With the AJAX-based thin client approach, the client side serves as a display front end that uses only the industry-standard HTML and JavaScript, while most of the application processing is performed on the central server. To display graphics that update dynamically based on the input data, the server needs to render the image of the graphics on each image request.
聲明:本產(chǎn)品中文介紹為慧都網(wǎng)版權所有,未經(jīng)慧都公司書面許可,嚴禁拷貝、轉(zhuǎn)載!
* 關于本產(chǎn)品的分類與介紹僅供參考,精準產(chǎn)品資料以官網(wǎng)介紹為準,如需購買請先行測試。
網(wǎng)頁上的動態(tài)圖形界面就是使用—GLG Graphics Builder圖形編輯器創(chuàng)建的。通過該創(chuàng)建程序,開發(fā)人員能繪制圖片對象、定義屬性以及為使用實時數(shù)據(jù)進行動態(tài)化的繪圖添加動態(tài)效果和定義資源。
除了能從零開始創(chuàng)建繪圖外,圖片創(chuàng)建程序還能提供預定義部件調(diào)色板,如dials and meters, graphs以及process control symbols,這些都能通過拖放功能添加到繪制中。創(chuàng)建程序還能使用戶定義自定義的圖標,并把它們作為可重復使用的控件添加到調(diào)色板中。
通過創(chuàng)建程序的幫助,創(chuàng)建與維護圖片的工作(從簡單的數(shù)字化報表到復雜的視覺化操作與自定義HMI屏幕顯示)可在一個交互式的點選環(huán)境中完成??稍诓簧婕叭魏纬绦虻那闆r下在創(chuàng)建程序中簡單地編輯圖片。當更新的繪圖被保存時,它就已經(jīng)準備好在不重新編譯源代碼的情況下被圖片服務器使用。
如演示文件所說,GLG繪制為獨立的屏幕分辨率并能在運行時調(diào)整大小。根據(jù)客戶端屏幕的大小,相同的繪制能用于轉(zhuǎn)化不同分辨率的圖像。
使用圖片創(chuàng)建程序制作的繪圖可展現(xiàn)運行時在應用程序網(wǎng)頁上顯示的圖片。例如,創(chuàng)建自定義AJAX數(shù)字報表顯示圖片與儀表,你能簡單地在圖片創(chuàng)建程序中打開新繪圖,從調(diào)色板中添加圖片與儀表,為運行時的數(shù)據(jù)訪問命名以及保存繪圖。
當在圖片創(chuàng)建程序中時,你同樣能更改對象屬性、在頁面上編輯對象布局、添加自定義標簽和注釋或使用創(chuàng)建程序的傾斜、陰影與透明效果制作自定義裝飾。
另一種創(chuàng)建AJAX數(shù)字報表的方法是在單一的HTML頁面上結(jié)合多個widget,就象在GLG AJAX數(shù)字報表演示文件中展示的那樣。每一完備的widget都使用它們自己的服務器端的servlet以及它能在多網(wǎng)頁上以能重復使用的控件的模式進行部署。
除了簡單的數(shù)字報表,精細的自定義圖片顯示能在創(chuàng)建程序中制作并能在網(wǎng)頁上進行部署,就如演示文件所說。
運行時,圖片服務器會加載GLG繪圖并使用它生成動態(tài)圖像,在處理每個圖像請求前用當前數(shù)據(jù)更新繪圖。繪圖包含了所有圖片對象的定義與它們的動態(tài)操作。當加載繪圖時,它被反復用來在沒有重新制作圖片請求的情況下生成網(wǎng)頁圖像。
當一個客戶端處理一個圖像請求時,圖片服務器使用當前數(shù)據(jù)創(chuàng)建了一個繪圖的截圖。一個圖像請求可能包含能定義圖像大小的參數(shù)、在刻度盤中顯示的值、圖片的標題或其它自定義屬性。例如,在進程控制演示文件中圖像請求包含show_pipes參數(shù)。如果該參數(shù)被設置為1,生成的圖像會顯示連接到罐子的管道。圖像生成參數(shù)會使用標準的URL參數(shù)語法傳送到圖片服務器。
生成圖像之前,圖片服務器會通過設置繪圖資源使用當前數(shù)據(jù)更新該繪圖。當在運行中使用SetResource() API程序通過servlet創(chuàng)建與訪問繪圖時,資源將在圖片創(chuàng)建程序中定義。
當更新繪圖時,servlet可通過觸發(fā)CreateImage() API程序生成圖像。這個簡單的圖片服務器程序會在所有對象的當前動態(tài)狀態(tài)下監(jiān)控轉(zhuǎn)化所有對象的復雜任務。
點擊這里查看一個顯示動態(tài)生成的圖像的URL范例。重新加載以查看新數(shù)據(jù)或更改URL的寬度/高度參數(shù)以更改圖像大小。一個"&show_pipes=1"參數(shù)可添加到URL以激活管道顯示。在一個應用程序中,如演示文件所說,一個JaveScript記時程序會用于定時地重新加載圖像以顯示新數(shù)據(jù)。
在JSP環(huán)境中,將圖片服務器作為GLG Servlet進行部署—一個100%純正的可與任何Java2EE應用程序服務器兼容的Java servlet。
會提供Servlet的源代碼并且應用程序開發(fā)人員能根據(jù)應用程序的要求將這些代碼進行自定義操作。例如,servlet能分享所有servlet示例中的繪圖或為每一個單一的servlet會話創(chuàng)建一個獨立的繪圖示例。
當使用自定義繪圖時,servlet代碼可能會被修改以設置在繪圖中定義的應用程序資源,也會處理特定的應用程序的用戶互動。
GLG Servlet采用包含GLG工具包對象以及轉(zhuǎn)化引擎的GlgServer.jar類庫。類庫既提供GLG標準又提供在GLG Java類文檔中描述的擴展API。GLG標準API為訪問資源提供程序以運用實時數(shù)據(jù)更新繪圖。擴展API為高級功能提供程序,功能包括創(chuàng)建對象或請求在繪圖中定義的資源列表。例如,擴展API會在運行時用于創(chuàng)建大量的動態(tài)圖標以詳解航空信息。
在應用程序中,servlet能從任何數(shù)據(jù)源中請求數(shù)據(jù),如PLC或進程數(shù)據(jù)庫,它還能使用JDBC、Java OPC或任何其它喜歡的數(shù)據(jù)連接API。除此之外,還可運用HTML或JavaScript通過圖像URL參數(shù)提供數(shù)據(jù)。
Servlet可通過設置使用GLG SetResource程序的繪圖資源用新數(shù)據(jù)更新繪圖。當創(chuàng)建繪圖時,用于動態(tài)化具備數(shù)據(jù)的繪圖的資源將在圖片創(chuàng)建程序中進行定義。
例如,在進程控制演示文件中使用的繪圖里,一個名為"Heater"的對象擁有一個名為"HeaterLevel"能控制加熱罐填充度的資源。當繪圖被用于servlet中時,servlet可通過使用名為"Heater/HeaterLevel"的資源更新填充度。操作如下:
SetDResource( "Heater/HeaterLevel", heater_level_var );
資源的使用可幫助您將圖片從程序邏輯中分離出來。應用程序可簡單地設置一個名為"Heater/HeaterLevel"邏輯資源,并且GLG圖片引擎會監(jiān)控對象圖片轉(zhuǎn)化的所有低級別詳細信息。
除了生成動態(tài)圖像,servlet可通過處理基于AJAX的請求以處理用戶互動。這些請求通常用于對象選擇、消息提示以及用戶輸入,如使用鼠標在繪圖中點擊按鍵。這些功能都在進程控制與其它演示文件中進行了說明。
處理用戶互動,JavaScript被用于應用程序的網(wǎng)頁中以將onclick and onmousemove事件添加到圖像中。當用戶點擊圖像或?qū)⑹髽酥羔樢苿拥綀D像之上時,在腳本中會觸發(fā)事件處理程序。事件處理程序會將對象選擇的AJAX請求發(fā)送到圖片服務器,并將鼠標坐標作為請求參數(shù)進行傳送。圖片服務器會根據(jù)鼠標坐標通過尋找選定對象處理請求。Servlet會在服務器端處理選項或?qū)⑦x項信息返回給客戶端用于處理。
客戶端可使用選擇請求到彈出消息提示的輸出、顯示選定對象的名稱或執(zhí)行數(shù)據(jù)下鉆操作。例如,當使用鼠標選定對象時,進程控制演示可顯示具有對象數(shù)據(jù)的對話。當鼠標移動到繪圖中已命名對象時,可顯示消息提示。如果按下繪圖底部的Show 3D Pipes鍵,可在圖像中顯示連接到罐與閥門的管道。
消息提示與對象選擇事件通過在服務器端的GLG圖片服務器引擎進行處理,并且不需要在客戶端的瀏覽器中創(chuàng)建的圖像地圖或矢量對象。此項技術可在忽略與已使用圖像地圖相關的HTML運行限制的情況下處理大量矢量對象。
點擊這里查看生成圖像與處理用戶互動請求的GLG Servlet的所有源代碼。
因為在沒有圖像地圖內(nèi)置到HTML的情況下將在服務器端處理選擇與消息提示事件,所以當繪圖中對象的幾何外形被改變時,不需重新生成HTML頁面。
當繪圖包含動態(tài)移動圖標時(如航空交通控制演示的展示),服務器端對選擇事件的處理只是實用性選項。在這種情況下,不可能為圖標選擇生成的靜態(tài)圖像地圖,因為圖標改變了它們的位置。由于運行限制,每當圖標移動時使用AJAX動態(tài)地生成圖像地圖將是不切實際的。這就使服務器端選擇處理成為了唯一的實用選項。
Interactive Graphical Editor
The dynamic graphical screens displayed on web pages are created interactively using a graphical editor - the GLG Graphics Builder. Using the Builder, a developer can draw graphical objects, define their properties, as well as attach dynamics and define resources for animating the drawing with real-time data. The drawing is saved into a file and used by the Graphics Server for image generation.
In addition to creating drawings from scratch, the Graphics Builder provides palettes of pre-built widgets, such as dials and meters, graphs and process control symbols, which can be added to the drawing using Drag and Drop. The Builder also allows the user to define custom symbols and add them to a palette as reusable components.
With the help of the Builder, the job of creating and maintaining graphics, from simple dashboards to complex visualizations and custom HMI screens, is done in an interactive, point-and-click environment. The graphics may be easily edited in the Builder with no programming involved. Once the updated drawing is saved, it is ready to be used by the Graphics Server without recompiling the source code.
The GLG drawings are screen-resolution independent and may be scaled at run-time, as shown in the demos. The same drawing may be used to render images of various resolutions depending on the size of the client's screen.
Custom AJAX Dashboards
The drawings created using the Graphics Builder represent the dynamic graphics displayed on the application's web pages at run time. For example, to create a custom AJAX Dashboard displaying a few graphs and meters you can simply open a new drawing in the Graphics Builder, add a few graphs and meters to it from a palette, name them for run-time data access and save the drawing.
While in the Graphics Builder, you can also change object properties, edit the object layout on the page, add custom labels and annotations or draw custom decorations using the Builder's gradient, shadow and transparency effects.
An alternative way to build an AJAX Dashboard is to combine several widgets on a single HTML page, as shown in the GLG AJAX Dashboard demo. Each self-contained widget is using its own server-side servlet and it may be deployed as a reusable component on multiple web pages.
In addition to simple dashboards, elaborate custom graphical displays may be created in the Builder and deployed on a web page, as shown in the demos.
Run-Time Image Generation
At run-time, the Graphics Server loads the GLG drawing and uses it to generate dynamic images, updating the drawing with the current data before processing each image request. The drawing contains definitions of all graphical objects and their dynamic actions. Once the drawing is loaded, it is used to generate web images over and over without the overhead of recreating the graphics on every request, resulting in superior server performance.
When a client issues an image request, the Graphics Server creates a snapshot image of the drawing using the current data. An image request may contain parameters that define an image size, a value to be displayed in a dial, a title for a graph or other custom attributes. For example, in the process control demo the image request contains the show_pipes parameter. If this parameter is set to 1, the generated image will display pipes connecting the tanks. The image generation parameters are passed to the Graphics Server using the standard URL parameter syntax.
Before generating an image, the Graphics Server updates the drawing with the current data by setting the drawing's resources. The resources are defined in the Graphics Builder when the drawing is created and accessed by the servlet at run time using the SetResource() API method.
When the drawing is updated, the servlet generates an image by simply invoking the CreateImage() API method. This single method of the Graphics Server takes care of the complicated task of rendering all objects in the drawing in their current dynamic state.
Click here to see an example of a URL showing a dynamically generated image. Reload the page to see new data or change the width/height parameters of the URL to change image size. A "&show_pipes=1" parameter may be appended to the URL to activate the pipe display. In an application, a JavaScript timer may be used to reload the image periodically to display new data as shown in the demos.
Servlet Customization
In the JSP environment, the Graphics Server is deployed as a GLG Servlet - a 100% pure Java servlet that may be used with any compliant Java2EE Application server.
The source code of the servlet is provided and may be customized by the application developers according to the application requirements. For example, the servlet may share one drawing between all servlet instances or create a separate instance of the drawing for each servlet session.
When a custom drawing is used, the servlet code may be modified to set the application-specific resources defined in the drawing, as well as handle an application-specific user interaction.
The GLG Servlet uses the GlgServer.jar class library that contains GLG Toolkit's object and rendering engine. The class library provides both the GLG Standard and Extended APIs described in the documentation of the GLG Java classes. The GLG Standard API provides methods for accessing resources to update the drawing with real-time data. The Extended API provides methods for advanced features, such as creating objects programmatically or querying a list of all resources defined in the drawing. For example, the Extended API may be used at run time to create a variable number of dynamic icons representing airplanes as shown in the GIS and AirTraffic Control demos.
Dynamic Data Supply
In an application, the servlet can query data from any data source, such as a PLC or process database, using JDBC, Java OPC or any other preferred data connectivity API. Alternatively, the data may be supplied by the HTML or JavaScript via the parameters of the image URL.
The servlet updates the drawing with the new data by setting the drawing's resources using GLG's SetResource methods. The resources for animating the drawing with data are defined in the Graphics Builder when the drawing is created.
For example, in the drawing used in the process control demo, an object named "Heater" has a resource named "HeaterLevel" that controls the fill level of the heater's tank. When the drawing is used in the servlet, the servlet updates the fill level by using the "Heater/HeaterLevel" resource name as follows:
SetDResource( "Heater/HeaterLevel", heater_level_var );The use of resources helps to separate graphics from the programming logic. The application simply sets a logical resource named "Heater/HeaterLevel", and the GLG's graphics engine takes care of all low-level details of rendering the objects' graphics.
AJAX-Based User Interaction
In addition to generating dynamic images, the servlet may handle user interaction by processing AJAX-based requests for object selection, tooltips and user input, such as pressing buttons in the drawing with the mouse. These features are demonstrated in the process control and other demos.
To handle user interaction, JavaScript is used in the application's web pages to add onclick and onmousemove event handlers to the image. When the user clicks on the image or moves the mouse over it, an event handler is invoked in the script. The event handler sends an object selection AJAX request to the Graphics Server, passing the mouse coordinates as parameters of the request. The Graphics Server processes the request by finding an object selected by the mouse coordinates. The servlet may process the selection on the server side or return the selection information back to the client for processing.
The client may use the output of the selection request to popup a tooltip, display the name of the selected object or execute a drill-down action. For example, the process control demo displays a dialog with the object's data when the object is selected with the mouse. A tooltip is displayed when the mouse is moved over a named object in the drawing. If the Show 3D Pipes button at the bottom of the drawing is pressed, the pipes connecting the tanks and valves will be displayed in the image.
The tooltips and object selection events are processed by the GLG Graphics Server's engine on the server side, with no image maps or vector objects created in the browser on the client side. This technique handles a large number of vector objects in the drawing without the HTML performance limitations related to a number of used image maps.
Click here to see the full source code of the GLG Servlet for generating images and handling user interaction requests.
Since the selection and tooltip events are processed on the server side with no image maps embedded in HTML, the HTML pages do not need to be regenerated when the geometry of the objects in the drawing is changed.
The server-side processing of selection events is the only practical option when the drawing contains dynamic moving icons, as shown in the Airtraffic Control Demo. In this case, generating static image maps for the icon selection is simply impossible, since the icons change their position. Using AJAX to generate image maps dynamically every time the icon moves, would be also impractical due to the performance limitations. This leaves the server-side selection processing as the only practical alternative.
更新時間:2018-02-28 17:01:26.000 | 錄入時間:2008-09-11 13:41:21.000 | 責任編輯:何家巧
為開發(fā)高級圖形的動態(tài)界面而設計的框架,是完全動畫的圖形對象。智能制造推薦產(chǎn)品,幫助企業(yè)領跑工業(yè)4.0。
控件DHTMLX旗下Diagram、Sute、Pivot、Gantt等插件正版授權合集
控件JointJS 是一款基于 JavaScript 的開源庫,用于創(chuàng)建基于 HTML5 的交互式圖表
控件一款實時、高性能的WPF 圖表庫
控件高性能WPF和Winforms圖表,可以實時可視化多達1萬億個數(shù)據(jù)點。
官方微信
官方微博
服務電話
重慶/ 023-68661681
華東/ 13452821722
華南/ 18100878085
華北/ 17382392642
客戶支持
技術支持咨詢服務
服務熱線:400-700-1020
郵箱:sales@evget.com
關注我們
地址 : 重慶市九龍坡區(qū)火炬大道69號6幢
慧都科技 版權所有 Copyright 2003- 2024 渝ICP備12000582號-13 渝公網(wǎng)安備 50010702500608號