Class EdgeExport
java.lang.Object
com.sparsity.sparksee.gdb.EdgeExport
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets if the edge should be managed as directed.voidcopyDefaults(EdgeExport source) Sets the default values using a refrerence EdgeExport.getColor()Gets the color of the edge.intGets the edge color.intGets the edge label font size.getLabel()Gets the edge label.Gets the color of the label.intGets the edge label color.getTitle()Gets the edge title.intgetWidth()Gets the edge width.voidsetAsDirected(boolean directed) Sets if the edge should be managed as directed.voidSets the color of the edge.voidsetColorRGB(int color) Sets the edge color.voidSets to default values.voidsetFontSize(int size) Sets the edge label font size.voidSets the edge label.voidSets the color of the label.voidsetLabelColorRGB(int color) Sets the edge label color.voidSets the edge title.voidsetWidth(int width) Sets the edge width.
-
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
-
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
Gets the color of the label. -
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
-
getLabel
-
getTitle
-
setLabelColor
-
getWidth
public int getWidth()Gets the edge width.- Returns:
- The edge width.
-
setTitle
-
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
Sets the default values using a refrerence EdgeExport.- Parameters:
source- null
-