Visual Property Discussion

Background

How Looking Up Visual Properties Currently Works

VisualProperties can vary from one RenderingEngine implementation to another. In order to access a particular property you need to look it up in a VisualLexicon. The lookup key is a file format-specific name. For example, in GML, the "type" graphics attribute is mapped to the NODE_SHAPE visual property:

lookup-1.png

How Parsing/Serializing Visual Property Values Currently Works

Instances of VisualProperties are used to serialize and parse property values to and from strings. The implementation of these parsers is the responsibility of RenderingEngine providers.

visualprops-1.png

Legend

Specific Issues

  1. [UC1,UC2] Very awkward to serialize visual properties for formats other than XGMML.

    • Currently, we need to map between XGMML attribute strings and the target format's strings (e.g. GML).
  2. [UC3] Visual properties of inaccessible types (e.g. org.cytoscape.ding.NodeShape) are awkward to set programmatically.

    • Currently, you need to use a VisualProperty instance to construct a NodeShape instance by parsing the serialized form of the desired shape.

  3. [UC4] Visual properties of inaccessible types (e.g. org.cytoscape.ding.NodeShape) are awkward to use with discrete mappers programmatically.

  4. VisualLexicon keys are currently format-specific

    • Each lexicon implementation needs to know
    • Not scalable

Assumptions

Options


visualprops-2.png


visualprops-3.png

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux