Chapter 7. yFiles FLEX Java Server API

Table of Contents

yFiles FLEX Java Server API Packages
Roundtrip Support Classes
Class GraphRoundtripSupport
Handling IDs with the roundtrip support classes
Sending Error Messages
Subclasing class GraphRoundtripSupport
Label support
Other roundtrip support classes
Class Graph2DRoundtripSupport
Class GraphRoundtripSupportBase and class Graph2DRoundtripSupportBase
Servlets
Class LoadGraphServlet
Class SaveGraphServlet
Class DownloadServlet
Class UploadServlet
Class ExportServlet
Manipulating yFiles FLEX Styles, Labels, and Label Models
Reading and writing custom styles and label models on the server
Registering custom serializers and deserializers
Reflection Based Serialization
Class StyledLayoutGraph
Class FlexIOTools
Working with Labels on the Server
Label Layout
Adding Labels
Working with Graph Hierarchies on a yFiles Java Server
Grouping
Folding
Different View States for Open and Closed Groups
Automatic Layout
Tutorial Demo Code

The yFiles FLEX distribution contains a Java server API that facilitates communication with the yFiles FLEX client and provides classes for easily deserializing, modifying, and serializing graph instances displayed in a yFiles FLEX application.

Note that this document only covers the yFiles FLEX server API. The server API in return uses the yFiles Java API. Comprehensive documentation for the yFiles Java API is contained in the yFiles Java distribution and also available online:

yFiles FLEX Java Server API Packages

Package com.yworks.yfiles.server.graphml.support provides various utility classes for graph (de)serialization and modification using yFiles Java. Package com.yworks.yfiles.server.graphml.servlet offers ready-to-use servlets for common tasks in a diagramming web application.