Other examples Interactive expanding/collapsing tree diagram Clicking nodes in the tree alters the value of a CSVG variable which in turn changes the visibility.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
XML III. Learning Objectives Formatting XML Documents: Overview Using Cascading Style Sheets to format XML documents Using XSL to format XML documents.
Applications of XSLT. generating Word documents WordML provides formatting and content elements Word 2003 can read WordML files XSLT can be used to transform.
Android UserInterfaces Nasrullah Niazi. overView All user interface elements in an Android app are built using View and ViewGroup objects. A View is an.
XML: Extensible Markup Language
Dawn Pedersen Art Institute. What is Spry? Spry is Dreamweaver’s version of JavaScript libraries. Spry effects alter the look of a page element—or of.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Spring /6.831 User Interface Design and Implementation1 Lecture 10: Layout.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
Rendering XML documents with XSL The most powerful approaches to rendering XML documents involve using XSL (eXtensible Stylesheet Language) XSL enables.
Introduction to SVG & Batik Presented by Shang-Ming Huang.
AJAX & By – Anupama Sharma. Defining Ajax Ajax isn’t a technology. It’s really several technologies, each flourishing in its own right, coming together.
Introduction To Form Builder
Chapter 1 Understanding the Web Design Environment
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Designing a Classroom Web Site Using NVU Beginning Level.
Poster Design & Printing by Graphic Arts Center Template Provided By Graphic Art Center Creative Services Replace This Text With Your Title John Smith,
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Chapter 1 Variables in the Web Design Environment
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
Helsinki University Of Technology X-Smiles Telecommunications Software and Multimedia Laboratory (TML) XForms in X-Smiles Mikko Honkala Helsinki University.
CSS Positioning Creating Special Effects with CSS CS202 Working with Cascading Style Sheets (Chapter 4) CS202 1.
Lesson 4 Access Lesson 4 Lesson Plans Michele Smith – North Buncombe High School, Weaverville, NC
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Extensible Stylesheet Language Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University XSL-FO XSLT.
XSLT Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Lecture 11 XSL Transformations (part 1: Introduction)
Object Oriented Software Development 9. Creating Graphical User Interfaces.
FYP: LYU0001 Wireless-based Mobile E-Commerce on the Web Supervisor: Prof. Michael R. Lyu By: Tony, Wat Hong Fai Harris, Yan Wai Keung.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
A Constraint Extension to Scalable Vector Graphics Greg J. Badros Jojada J. Tirtowidjojo Kim Marriott Bernd Meyer Will Portnoy Alan Borning May 1-5,2001,Hong.
HTML Form Teppo Räisänen LIIKE/OAMK Basic Structure of a HTML Form The element defining a form is ’form’ Form’s most important attributes are The.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Designer Basics.
ITB Web programming for E- Commerce 1 ITB6227 Programming for E-COMMERCE Lecture Presentation of XML Documents.
Return to Outline Copyright © 2011 by Maribeth H. Price 3-1 Labeling and annotation.
Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. HTML5 Evolving Standards JavaScript.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Layout How multiple components are composed to build interfaces.
Positioning Objects with CSS and Tables
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Niranjan Damera-Venkata HP Labs Design.
Chapter 10 Dynamic HTML (DHTML) JavaScript, Third Edition.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
Layouts To understand various layouts extjs provides, and overview of some commonly used layouts.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
LEARN TO FORMAT TABLES Unit 10: Lessons What is a Table? ◦ A table is an arrangement of data (words and/or numbers) in rows and columns. ◦ A table.
CSS Layouts: Grouping Elements
Positioning Objects with CSS and Tables
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
Web Programming– UFCFB Lecture 9
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Objectives Create a reset style sheet Explore page layout designs
Chapter 14 JavaFX Basics Dr. Clincy - Lecture.
Citation Map Visualizing citation data in the Web of Science
Cascading Style Sheets™ (CSS)
Web Programming– UFCFB Lecture 9
Positioning Objects with CSS and Tables
Presentation transcript:

Other examples Interactive expanding/collapsing tree diagram Clicking nodes in the tree alters the value of a CSVG variable which in turn changes the visibility and positions of other nodes. Table-based UI widget layout The table layout is achieved using constraints generated by the XSLT definition of the grid custom element. Simple graph Each node and arc is created using custom elements with XSLT definitions. <c:variable name="horizontal" value="c:width(c:viewport()) >= $boxWidth * 3 + $desiredGap * 2 + $margin * 2"/> <c:variable name="boxWidth" value="c:max($t1w, $t2w, $t3w) + $boxPadding * 2"/> <c:variable name="boxHeight" value="c:max($t1h, $t2h, $t3h) + $boxPadding * 2"/> <c:variable name="b1x" value="c:if($horizontal, $margin, c:width(c:viewport()) div 2 - $boxWidth div 2)"/> <c:variable name="b1y" value="c:if($horizontal, c:height(c:viewport()) div 2 - $boxHeight div 2, $margin)"/>...other box coordinate variables (b2x, b2y, b3x, b3y)......other text coordinate variables (t2x, t2y, t3x, t3y)......other text dimension variables (t2w, t2h, t3w, t3h)... XML file...other boxes and arrows... <c:variable name="horizontal" value="c:width(c:viewport()) >= $boxWidth * 3 + $desiredGap * 2 + $margin * 2"/> <c:variable name="boxWidth" value="c:max($t1w, $t2w, $t3w) + $boxPadding * 2"/> <c:variable name="boxHeight" value="c:max($t1h, $t2h, $t3h) + $boxPadding * 2"/> <c:variable name="b1x" value="c:if($horizontal, $margin, c:width(c:viewport()) div 2 - $boxWidth div 2)"/> <c:variable name="b1y" value="c:if($horizontal, c:height(c:viewport()) div 2 - $boxHeight div 2, $margin)"/>...other box coordinate variables (b2x, b2y, b3x, b3y)......other text coordinate variables (t2x, t2y, t3x, t3y)......other text dimension variables (t2w, t2h, t3w, t3h)... XML file...other boxes and arrows... Why is it needed? > SVG 1.1 supports only simple adaptation to viewing environment > Linear scaling to fit the viewport not always appropriate > Internationalisation via switch element is primitive > User CSS stylesheets could cause problems with the layout, e.g. by specifying different font sizes > Scripting is required if serious adaptation is to take place > A declarative means of specifying adaptation would be superior With CSVG one can easily create documents that adapt to > Canvas size > User CSS preferences > Internationalised text > The result of user interaction or direct manipulation Features of CSVG > Uses XPath 1.0 expressions > Backwards compatible SMIL-like syntax > Automatic dependency tracking > Constraints propagated in real time > Custom elements defined using XSLT + constraints > Minimises the need for layout script Implementation status > CSVG implemented as an extension to Apache's Batik > Implementation supports constraints on all animatable attributes and properties > Pure ECMAScript version of constraint extensions under development, for use in other SVG browsers What is Constraint SVG? Constraint SVG (CSVG) is an extension to SVG 1.1 that supports expression-based attribute specification. Its SMIL-like syntax allows document authors to use XPath expressions to determine the values of SVG element attributes and CSS properties. Constraint SVG Cameron McCormack, Kim Marriott, Bernd Meyer School of Computer Science and Software Engineering, Monash University 2 A simple example Here is a simple example of a diagram that adapts to canvas size and text size. resize 1 3 $horizontal == true $horizontal == false 4 Text positioning The text of each box is centered in its corresponding rectangle. 3 Horizontal or vertical If there is enough space to lay out the three boxes horizontally then $horizontal == true. This variable dictates the values the box coordinate variables will take. 1 Box width and height For all three boxes to have the same dimensions and to be large enough to fit the biggest text label, the $boxWidth and $boxHeight variables compute the maximum text dimensions based on the bounding boxes of the text elements. 2 Constraints on SVG objects The constraints on the relevant attributes of the SVG objects that make up the boxes and arrows simply refer to the variables defined previously. 4 Project website: