06 May 2003Stylable CGM XML Europe 2003, London Stylable CGM Dave Cruikshank The Boeing Company Lofton Henderson Henderson Consulting.

Slides:



Advertisements
Similar presentations
WebCGM Interoperability for industrial- strength CGM graphics John C. Gebhardt.
Advertisements

WebCGM and SVG: a comparison (Dieter Weidenbruck, CGM Open) Lofton Henderson, CGM Open Chris Lilley, W3C.
XML Europe 2002 Barcelona, May WebCGM DOM - External Control for Web Graphics Dave Cruikshank Technical Fellow, The Boeing Company CTO, CGM Open.
Graphical Hotspot Definition A Common ATA/AECMA Approach Spec April 1999 / Page Graphical.
Table, List, Blocks, Inline Style
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
AD Intermediate Computer Graphics | spring 2008 | Daria Tsoupikova | School of Art and Design | UIC CSS Cascading Style Sheets.
Cascading Style Sheets. Slide 2 Lecture Overview Overview of Cascading Style Sheets (CSS) Ways to declare a CSS CSS formatting capabilities New features.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
Using Styles and Style Sheets for Design
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
Lab 3: Language Structures User Interface Lab: GUI Lab Sep. 9 th, 2014.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
© ITEDO Software 2004 S1000D and CGM Dieter Weidenbrueck Paris July 21, 2004.
Internet Web Publishing III. Intro to Cascading Style Sheets Patricia Roberts.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, 4 th Edition.
Building Optimised Web Sites with CSS Folkert Klemme.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Web Development 101 Presented by John Valance
Cascading Style Sheets CSS. Source W3Schools
1 Working with Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size,
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Kyle Zimmermann.  What are CSS?  History  The Box Model  CSS Styles  Rules and Selectors  Cascade & Specificity  Inheritance  Video  Demo.
CSS FOUNDATIONS IN-DEPTH The nitty-gritty of css...
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, Third Edition.
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
Working with Cascading Style Sheets
DHTML.
Getting Started with CSS
Bare boned notes.
Cascading Style Sheets
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
>> CSS Rules Selection
Intro to CSS CS 1150 Fall 2016.
Cascading Style Sheets
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
IS 360 Understanding CSS Selectors
Using Cascading Style Sheets (CSS)
Interoperability for industrial-strength CGM graphics John C. Gebhardt
Chapter 6 Introducing Cascading Style Sheets
Cascading Style Sheets - Building a stylesheet
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

06 May 2003Stylable CGM XML Europe 2003, London Stylable CGM Dave Cruikshank The Boeing Company Lofton Henderson Henderson Consulting

06 May 2003Stylable CGM XML Europe 2003, London CGM Version 4 The CGM standard (ISO 8632:1999) –CGM V4 - Application Structuring Syntax to define application structures (APS) as graphical groups Syntax to associate attributes to APS Definition of Semantics accomplished through profiles

06 May 2003Stylable CGM XML Europe 2003, London WebCGM Functionality WebCGM developed by CGM Open in collaboration with W3C graphics experts WebCGM profile approved by W3C – 1999 WebCGM Release 2 published

06 May 2003Stylable CGM XML Europe 2003, London WebCGM Functionality Requirements –Navigation Graphical object to graphical object within a CGM file Graphical object to graphical object in another CGM file Graphical object to a text objet –Query Search for a graphical object based on an attribute –Data extraction Retrieve non-graphical metadata from a graphical object

06 May 2003Stylable CGM XML Europe 2003, London WebCGM Functionality IG requirements Navigation Query Extraction Graphical Format Capabilities Structuring -- hierarchical object tagging Non-graphical properties Object id/naming Begin APS... APS Attribute... Begin APS Body...graphics to draw object......and/or, nested ApS... End Application Structure CGMCapability

06 May 2003Stylable CGM XML Europe 2003, London WebCGM Functionality Semantics 4 APS types: grobject layer para subpara APS Attributes: Region LinkURI ViewContext LayerName LayerDescription ScreenTip Name Content

06 May 2003Stylable CGM XML Europe 2003, London WebCGM Structure Picture body layergrobject para grobject para subpara grobject para subpara

06 May 2003Stylable CGM XML Europe 2003, London Motivation for Stylability Interoperability among vendors demonstrated several times Proprietary DOM implementations being developed for external browser control

06 May 2003Stylable CGM XML Europe 2003, London Approach CGM has inherent style, but… –WebCGM profile says: While WebCGM is a binary file format and is not stylable, nevertheless WebCGM follows published W3C requirements for scalable graphics format where such are applicable –CSS2 says: CSS can be used with any structured document format … –WebCGM is a structured document format

06 May 2003Stylable CGM XML Europe 2003, London Approach Application of CSS2 to WebCGM much the way CSS1 was applied to legacy HTML Use of attribute selectors for specifying a style scheme to WebCGM

06 May 2003Stylable CGM XML Europe 2003, London Requirements Scope –Granularity of application Picture APS –Control of individual graphical primitives out of scope

06 May 2003Stylable CGM XML Europe 2003, London Requirements - color Functions –PictureScopeLineColor - RBG or relative scale –PictureScopeEdgeColor - RBG or relative scale –PictureScopeFillColor - RBG or relative scale –PictureScopeMarkerColor - RBG or relative scale –APSScopeLineColor - RBG or relative scale –APSScopeEdgeColor - RBG or relative scale –APSFillColor - RBG or relative scale –APSScopeMarkerColor - RBG or relative scale –PictureScopeRasterIntensity – relative scale –APSScopeRasterIntensity - relative scale

06 May 2003Stylable CGM XML Europe 2003, London Requirements - color

06 May 2003Stylable CGM XML Europe 2003, London Requirements - color

06 May 2003Stylable CGM XML Europe 2003, London Requirements – line/edge weight Functions –PictureScopeLineWeight – absolute mm or relative scale –PictureScopeEdgeWeight – absolute mm or relative scale –APSScopeLineWeight – absolute mm or relative scale –APSScopeEdgeWeight – absolute mm or relative scale

06 May 2003Stylable CGM XML Europe 2003, London Requirements – line/edge weight

06 May 2003Stylable CGM XML Europe 2003, London Requirements – line/edge weight

06 May 2003Stylable CGM XML Europe 2003, London Requirements – character height Functions –PictureScopeCharacterHeight – absolute mm or relative scale –APSScopeCharacterHeight – absolute mm or relative scale

06 May 2003Stylable CGM XML Europe 2003, London Requirements – character height

06 May 2003Stylable CGM XML Europe 2003, London Requirements – character height

06 May 2003Stylable CGM XML Europe 2003, London Requirements Caveats –Applying style using CSS2 deviates from the actual CGM attribute model Character height scaling does not exist Line weight scaling behaves differently –Undoing style requires special handling Remembering attributes of various primitives, or Re-interpreting a picture or APS

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution Binary/clear text –CGM is binary format –Style sheet should be ASCII text APSScopelinecolor grobject#xyz {color: red} – turn the lines in grobject with an apsid of xyz to red –CGM Structured Data Record (SDR) An issue for the WebCGM DOM when we deal with multiple fields for attribute values of APS attributes

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution WebCGM tree model –Pictures contain: APS elements (nested) contain: –Graphical primitives (leaf nodes) –Nodes at the APS level | | | Simplest with a tree with four kinds of element nodes

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution Alignment with CSS –Possible to align element names with SVG CSS style sheet parsing might be reusable But not much else –Appropriate solution Borrow principles from CSS, including matching mechanisms Customize solution for WebCGM DOM requirements

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution CSS selectors –Minimal selector pattern matching set * – matches any element (universal selector) grobject – matches any grobject APS (type selector) grobject#xyz – matches any grobject APS with an apsid of xyz –Attribute selectors grobject[name] – matches any grobject APS whose name attribute is set grobject[name=bolt] – matches any grobject APS whose name attribute is set to bolt

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution WebCGM element names –For styling solution Elements selectors –picturelayer –grobjectpara –subpara Attrubute selectors –Linkuriname –screentipviewcontext –regioncontent –layerdescriptionlayername

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution Style rules declaration –Attribute types deviate LineColour is a CGM attribute applying to individual line primitives PictureScopeLineColor would apply to all lines in a picture –Attribute values deviate LineColour specified in WebCGM as an index into a color table, or an RGB n-tuple, or an sRGB n-tuple PictureScopeLinecolor would have an RGB n-tuple, or a relative scale –Align with CSS data types (RBG, scale, mm)

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution CSS inheritance model –Styling attributes should inherit Nested APS are affected by styling

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution Cascading precedence –Opposite of CSS User agent supplied style overrides author style Specificity –CSS rules apply In clashes, most specific rules

06 May 2003Stylable CGM XML Europe 2003, London Issues/Resolution Processing model –Open questions How are styling rules communicated to the viewer? Is there some sort of rule-by-rule interface? Or, so you have to pass an entire style sheet at a time? How do you turn off a style sheet after it has been applied and return to author rules? (unapply rules) How the the styling interface relate to the DOM? (DOM will get and set all APSattr parameters)

06 May 2003Stylable CGM XML Europe 2003, London Conclusions Preliminary design completed ACSII text style sheet Align with principles from CSS Use a subset of CSS selectors Use CGM clear text APS types and attributes Apply CSS inheritance model Override CSS cascading Apply CSS specificity

06 May 2003Stylable CGM XML Europe 2003, London Next Steps Define processing model WebCGM DOM –Adopt appropriate DOM Core elements (level 1) –Adopt appropriate DOM Event elements (levels 2 & 3) –Integrate CSS solution

06 May 2003Stylable CGM XML Europe 2003, London ?