Class EdgeExport

java.lang.Object
com.sparsity.sparksee.gdb.EdgeExport

public class EdgeExport extends Object
Stores edge exporting values.

Some properties may be ignored depending on the exportation type.

Default values are:

Label: "" (empty string).

As directed: TRUE.

Color: 13882323 (OxD3D3D3, Light gray).

Label color: 0 (Ox000000, Black).

Width: 5px.

Font size: 10.

Author:
Sparsity Technologies http://www.sparsity-technologies.com
  • Constructor Details

    • EdgeExport

      public EdgeExport()
      Creates a new instance.

  • Method Details

    • setAsDirected

      public void setAsDirected(boolean directed)
      Sets if the edge should be managed as directed.

      Parameters:
      directed - [in] If TRUE, use as directed, otherwise use as undirected.
    • getLabelColorRGB

      public int getLabelColorRGB()
      Gets the edge label color.

      Returns:
      The edge label color.
    • setLabel

      public void setLabel(String label)
      Sets the edge label.

      Parameters:
      label - [in] The edge label.
    • setWidth

      public void setWidth(int width)
      Sets the edge width.

      Parameters:
      width - [in] The edge width.
    • setColorRGB

      public void setColorRGB(int color)
      Sets the edge color.

      Parameters:
      color - [in] The edge color.
    • setFontSize

      public void setFontSize(int size)
      Sets the edge label font size.

      Parameters:
      size - [in] The edge label font size.
    • getLabelColor

      public Color getLabelColor()
      Gets the color of the label.

    • getColor

      public Color getColor()
      Gets the color of the edge.

    • setLabelColorRGB

      public void setLabelColorRGB(int color)
      Sets the edge label color.

      Parameters:
      color - [in] The edge label color.
    • getColorRGB

      public int getColorRGB()
      Gets the edge color.

      Returns:
      The edge color.
    • getFontSize

      public int getFontSize()
      Gets the edge label font size.

      Returns:
      The edge label font size.
    • setDefaults

      public void setDefaults()
      Sets to default values.

    • setColor

      public void setColor(Color c)
      Sets the color of the edge.

      Parameters:
      c - New value.
    • getLabel

      public String getLabel()
      Gets the edge label.

      Returns:
      The edge label.
    • getTitle

      public String getTitle()
      Gets the edge title.

      Returns:
      The edge title.
    • setLabelColor

      public void setLabelColor(Color c)
      Sets the color of the label.

      Parameters:
      c - New value.
    • getWidth

      public int getWidth()
      Gets the edge width.

      Returns:
      The edge width.
    • setTitle

      public void setTitle(String title)
      Sets the edge title.

      Parameters:
      title - [in] The edge title.
    • asDirected

      public boolean asDirected()
      Gets if the edge should be managed as directed.

      TRUE is the default value. If TRUE, use as directed, otherwise use as undirected.

      Returns:
      The edge direction.
    • copyDefaults

      public void copyDefaults(EdgeExport source)
      Sets the default values using a refrerence EdgeExport.

      Parameters:
      source - null