Interface VisualStyleFactory


public interface VisualStyleFactory
Factory for VisualStyles. This object will be provided as an OSGi service.

Module: vizmap-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>vizmap-api</artifactId>
</dependency>

Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
  • Method Details

    • createVisualStyle

      VisualStyle createVisualStyle(String title)
      Create a new VisualStyle.
      Parameters:
      title - Title of the visual style. This can be null, but in that case, default title will be used. Note: This is NOT an identifier of this object, just a title.
      Returns:
      New VisualStyle object.
    • createVisualStyle

      VisualStyle createVisualStyle(VisualStyle original)
      Create a copy of given VisualStyle.
      Parameters:
      original - VisualStyle to be copied from.
      Returns:
      New VisualStyle copied from the original.