Welcome to JavaPolis 2007!
Overall Presentation Goal
Speaker's Qualifications
Summary
Cascading Style Sheets
Element Patterns
Why use CSS ?
Styling Java UI
Styling Java UI : The JTable sample
Apply CSS to Advanced 2D Graphics Components
ILOG JViews Diagrammer
ILOG JViews Diagrammer : the model
ILOG JViews Diagrammer : the styling
Divergences from CSS2
Pseudo-classes and Pseudo-elements
DEMO
Graphic Renderer
Some Predefined Renderers
Renderers Use Case
DEMO
JViews 8.1 Tooling
Symbol Editor
Diagrammer Designer
DEMO
Advantages
CSS is a simple mechanism for adding style such as fonts, colors, and spacing to Web documents. This technology remains today confined to HTML and XML documents, although its principles are suitable for other domains. Let's see how we can use what we know to style Java objects, and then apply one typical styling system, Cascading Style Sheets (CSS), to the Java world to enhance the informative level of a user interface.
Most Swing components can be styled. However, the added value becomes more obvious as the components get more complex. This is why Table, Tree, and List are good candidates. An implementation of CSS for Java has been performed in ILOG JViews, a framework for displaying 2D graphics like charts, maps, and graphs. We will detail the advantage to use CSS engine with this framework.
Mathias Mouly has been a Technical Account Manager at ILOG for 7 years. He is currently in charge of the visualization product line in Europe. Prior to this, Mathias was involved with Thales in application development for EDF, the French electricity provider. Mathias graduated in energy engineering from the Ecole des Mines and in software computing from Thales campus.