Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357922

Summary: Improve Tutorial with theory behind of styles and new create-"plain"-methods
Product: [Modeling] Graphiti Reporter: Juergen Pasch <juergen.pasch>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michael.wenz
Version: 0.8.0Flags: michael.wenz: documentation+
juergen.pasch: juno+
Target Milestone: 0.9.0   
Hardware: All   
OS: All   
Whiteboard: Juno M5 Theme_round_offs
Bug Depends on: 352542    
Bug Blocks:    

Description Juergen Pasch CLA 2011-09-16 07:12:25 EDT
The current chapter in the tutorial about styles has following weaknesses:
- it is not mentioned that both graphical algorithms and styles have default values
- the style E-CLASS is parent of style ECLASS-TEXT, but ECLASS-TEXT cannot overwrite values of E-CLASS because styles existing values cannot be "overwritten"
- setLineWidth(2) has no effect, because LineWidth has a default value of 1 in the ga
- setFilled(true) on the ga text has no effect, because the text has it as default

Most of the issues are caused by the change from MOIN to EMF as modeling technology.

The new version of the styles chapter should cover following points:
- theory behind styles, defaults, create- and plain create methods,
- be a standalone chapter and excluded as a step in the tutorial
- a consistent and free of contradictions implementation
Comment 1 Juergen Pasch CLA 2011-09-16 07:17:52 EDT
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=352542
Comment 2 Juergen Pasch CLA 2011-12-20 09:00:19 EST
The chapter "Using Styles" is improved the coding is adjusted accordingly in all chapters concerning graphics algorithms and Styles. A new chapter "Default Attribute Values of Graphics Algorithms" is introduced.
Comment 3 Michael Wenz CLA 2012-04-11 10:49:05 EDT
Bookkeeping: Set target release
Comment 4 Michael Wenz CLA 2012-06-29 04:16:34 EDT
Part of Graphiti 0.9.0 (Eclipse Juno)