Interface Transformer

  • All Known Subinterfaces:
    PartitionTransformer<E>, RankingTransformer<E>, SimpleTransformer<E>

    public interface Transformer
    Transformers role is to transform the appearance of elements based on user configuration. Examples of appearance alteration are color, size, label color or label size.

    Transformers can be defined as singleton services by adding the @ServiceProvider annotation:

    @ServiceProvider(service = Transformer.class)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isEdge()
      True if this transformer can be applied to edges.
      boolean isNode()
      True is this transformer can be applied to nodes.
    • Method Detail

      • isNode

        boolean isNode()
        True is this transformer can be applied to nodes.
        Returns:
        true if is node, false otherwise
      • isEdge

        boolean isEdge()
        True if this transformer can be applied to edges.
        Returns:
        true if is edge, false otherwise