Class SynchronizationStyle


  • public final class SynchronizationStyle
    extends java.lang.Object
    Provides configurations for graph synchronization style. When users load graphs that have been updated, the methods below determine how the graph highlights each type of change.
    Since:
    1.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      SynchronizationStyle()
      Creates the default style.
      SynchronizationStyle​(java.lang.String creationColor, java.lang.String updatateColor, java.lang.String deletionColor)
      Creates a custom Synchronization style.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCreationColor()
      Returns the hex color of newly created nodes.
      java.lang.String getDeletionColor()
      Returns the hex color of deleted nodes.
      java.lang.String getUpdateColor()
      Returns the hex color of newly updated nodes.
      void setCreationColor​(java.lang.String creationColor)
      Sets the color for newly created nodes.
      void setDeletionColor​(java.lang.String deletionColor)
      Sets the color for deleted nodes.
      void setUpdateColor​(java.lang.String updateColor)
      Sets the color for newly updated nodes.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SynchronizationStyle

        public SynchronizationStyle()
        Creates the default style.
      • SynchronizationStyle

        public SynchronizationStyle​(java.lang.String creationColor,
                                    java.lang.String updatateColor,
                                    java.lang.String deletionColor)
        Creates a custom Synchronization style.
        Parameters:
        creationColor - a color in hex
        updatateColor - a color in hex
        deletionColor - a color in hex
    • Method Detail

      • getCreationColor

        public java.lang.String getCreationColor()
        Returns the hex color of newly created nodes.
      • setCreationColor

        public void setCreationColor​(java.lang.String creationColor)
        Sets the color for newly created nodes.
        Parameters:
        creationColor - a color in hex
      • getUpdateColor

        public java.lang.String getUpdateColor()
        Returns the hex color of newly updated nodes.
      • setUpdateColor

        public void setUpdateColor​(java.lang.String updateColor)
        Sets the color for newly updated nodes.
        Parameters:
        updateColor - a color in hex
      • getDeletionColor

        public java.lang.String getDeletionColor()
        Returns the hex color of deleted nodes.
      • setDeletionColor

        public void setDeletionColor​(java.lang.String deletionColor)
        Sets the color for deleted nodes.
        Parameters:
        deletionColor - a color in hex