Package org
Class AttributeHelper
java.lang.Object
org.AttributeHelper
- All Implemented Interfaces:
HelperClass
public class AttributeHelper extends Object implements HelperClass
Attribute Helper Class - Makes it more easy to work with graph/node
attributes.
- Version:
- $Revision: 1.129.2.1.2.1 $
- Author:
- Christian Klukas
-
Field Summary
Fields Modifier and Type Field Description static StringattributeSeparatorstatic Stringid_ttestCircleSizestatic Color[]knownColorsstatic StringpreFilePath -
Constructor Summary
Constructors Constructor Description AttributeHelper() -
Method Summary
Modifier and Type Method Description static voidaddAttributeFolder(Attributable attributable, String path)static voidaddAttributeFolder(Attributable attributable, String path, boolean overwrite)static CoordinateAttributeaddEdgeBend(Edge edge, double x, double y)static CoordinateAttributeaddEdgeBend(Edge edge, double x, double y, boolean safeAdd)static voidaddEdgeBend(Edge edge, Vector2d point)static voidaddEdgeBends(Edge edge, Collection<Vector2d> points)static booleanaddEdgeShape(String description, String className)static voidcopyReplaceStringAttribute(Attributable a, String path, String name, String copyTo, String searchString, String replaceString)static booleandeleteAttribute(Attributable attributable, String path, String name)Removes a single attribute or a number of attributes from the Attributable.static StringformatNumber(double d, String pattern)static StringgetArrowhead(Edge edge)static doublegetArrowSize(Edge edge)static StringgetArrowtail(Edge edge)static AttributegetAttribute(Attributable attributable, String attributeName)static ObjectgetAttributeValue(Attributable attributable, String path, String attributeName, Object defaultValue, Object resultType)static ObjectgetAttributeValue(Attributable attributable, String path, String attributeName, Object defaultValue, Object resultType, boolean setDefaultIfMissing)Return an Attribute value, if not present, return the defaultValue.static Set<Object>getAttributeValueSet(Collection<Attributable> attributables, String path, String attributeName, Object defaultValue, Object resultType, boolean setDefaultIfMissing)static ColorgetColorFrom3floatValues0to1(String color, Color ifUnkown)static ColorgetColorFromAttribute(Attributable attr, String path, String name, Color defaultValue)static ColorgetColorFromName(String name, Color ifUnkown)static StringgetColorName(Color attrColor)static float[]getDashInfo(Edge edge)static DategetDateFromString(String value)static StringgetDateString(Date date)If date is null, the current date is used!static StringgetDefaultAttributeDescriptionFor(String id, String tabName, Attribute a)static ImageIcongetDefaultAttributeIconFor(String id)static CollectionAttributegetDefaultGraphicsAttributeForEdge(Color colArrow, Color colLine, boolean directed)static CollectionAttributegetDefaultGraphicsAttributeForKeggNode(double x, double y)static CollectionAttributegetDefaultGraphicsAttributeForNode(double x, double y)static CollectionAttributegetDefaultGraphicsAttributeForNode(Vector2d position)static doublegetDepth(Node node, double defaultReturn, boolean setDefault)static ArrayList<CoordinateAttribute>getEdgeBendCoordinateAttributes(Edge edge)static ArrayList<Vector2d>getEdgeBends(Edge edge)static StringgetEdgeBendStyle(Edge edge)static HashMap<String,String>getEdgeShapes()static StringgetEncodedUrl(String input)static ColorgetFillColor(Attributable attributable)Returns the fill color of a givenAtttibutable.static doublegetFrameThickNess(GraphElement ge)static HashSet<String>getFuzzyLabels(String label)static doublegetHeatMapGamma(Graph graph)static doublegetHeatMapLowerBound(Graph graph)static doublegetHeatMapMiddleBound(Graph graph)static doublegetHeatMapUpperBound(Graph graph)static doublegetHeight(Node myNode)static StringgetHelpTopicFor(String tabName, String groupName)static StringgetLabel(int index, Attributable node, String defaultReturn)static EdgeLabelAttributegetLabel(int index, Edge edge)Get EdgeLabelAttribute (if available)static NodeLabelAttributegetLabel(int index, Node node)Get NodeLabelAttribute (if available)static StringgetLabel(Attributable node, String defaultReturn)Gets the Label of a Nodestatic AlignmentSettinggetLabelAlignment(int index, Node node)static ColorgetLabelColor(Node n)static StringgetLabelConsumption(Edge e, String returnIfNull)Vector2dgetLabelOffset(Attributable attributable)Get the relative offset of label position from center of a node.static StringgetLabelPath()Get the Labelpathstatic StringgetLabelPosition(Attributable attributable)static StringgetLabelProduction(Edge e, String returnIfNull)static ArrayList<String>getLabels(GraphElement graphElement)static ArrayList<String>getLabels(GraphElement graphElement, boolean includeMainLabel)static StringgetMD5fromFile(File f)Deprecated.static StringgetMD5fromFile(String filename)Deprecated.static StringgetMD5fromInputStream(InputStream is)Deprecated.static StringgetMD5fromInputStream(InputStream is, ObjectRef optFileSize)Deprecated.static EdgeGraphicAttributegetNewEdgeGraphicsAttribute(Color colArrow, Color colLine, boolean directed)static StringgetNiceEdgeOrNodeLabel(GraphElement ge, String nodeLabelIfMissing)static StringgetNiceIdFromAttributeId(String attributeId)static Rectangle2D.DoublegetNodeRectangle(Node node)static RectanglegetNodeRectangleAWT(Node node)static doublegetOpacity(GraphElement ge)Gets the opacity of a given graph elementstatic ColorgetOutlineColor(Attributable attributable)Returns the outline color of a givenAtttibutable.static StringgetPathwayReference(Attributable a)static ArrayList<String>getPathwayReferences(Attributable a, boolean includeOnlyIndexed)static Point2DgetPosition(Node a)Returns the position of a nodestatic Vector2dgetPositionVec2d(Node a)Returns the position of a nodestatic Vector2dfgetPositionVec2df(Node a)Returns the position of a nodestatic Vector3dgetPositionVec3d(Node node, boolean setDefault)If setDefault is true, values will be initilized, saved and returned as 0.static Vector3dgetPositionVec3d(Node node, double zReturnIfNotAvailable, boolean setDefaultZ)static doublegetPositionX(Node a)For getting the x position of a node through attribute access,static doublegetPositionY(Node a)For geting the y position of a node through attribute access,static doublegetPositionZ(Node node, boolean setDefault)static doublegetPositionZ(Node node, double defaultReturn, boolean setDefault)static StringgetReferenceURL(Attributable ge)static doublegetRoundedEdges(Node node)static StringgetSaveAttributeName(String attributeName)static StringgetSBMLid(GraphElement ge)static StringgetSBMLrole(GraphElement ge)static StringgetShape(Node node)static String[]getShapeClasses()static StringgetShapeClassFromDescription(String desc)static StringgetShapeClassFromShapeName(String s)static String[]getShapeDescritions()static Vector2dgetSize(Node myNode)Gets the size of the Node.static Vector3dgetSize3D(Node myNode, double defaultDepth, boolean setDefault)static DimensiongetSizeD(Node myNode)Gets the size of the Node.static StringgetStringList(File[] elements, String div)static StringgetStringList(String[] elements, String div)static StringgetStringList(ArrayList<?> elements, String div)Deprecated.static StringgetStringList(Collection elements, String div)static StringgetToBeDeletedPathFromAttributePath(String attributePath)static StringgetToolTipText(Attributable atta)static ArrayList<String>getWebPageContent(String urlText)static doublegetWidth(Node myNode)static booleanhasAttribute(Attributable n, String attributeName)Check the existence of a named Attributestatic booleanhasAttribute(Attributable n, String path, String attributeName)static booleanisHiddenGraphElement(GraphElement ge)static booleanisLabelAlignmentKnownConstant(int index, Node node)static booleanisSBMLreaction(GraphElement ge)static booleanisSBMLreversibleReaction(GraphElement ge)static booleanlinuxRunning()static booleanmacOSrunning()static voidmoveGraph(Graph graph, int x, int y)static voidremoveEdgeBends(Edge edge)static voidremovePathwayReferences(Attributable a, boolean includeNonIndexed)static voidsetArrowhead(Edge edge, boolean show)static voidsetArrowhead(Edge edge, String knownShapeClassName)static voidsetArrowSize(Edge edge, double arrowSize)static voidsetArrowtail(Edge edge, boolean show)Assign a arrow shape in the opposite direction.of an edge.static voidsetArrowtail(Edge edge, String knownShapeClassName)static voidsetAttribute(Attributable attributable, String path, String attributeName, Object attributeValue)SetAttribute, sets or adds a attribute to the givenAttributeable.static voidsetAttributeTextField(Attributable attributable, String path, String attributeName, Object attributeValue)setAttributeTextFieldstatic voidsetBorderWidth(Edge edge, double frameThickness)static voidsetBorderWidth(GraphElement graphElement, double frameThickness)static voidsetBorderWidth(Node node, double frameThickness)static voidsetColorFromAttribute(Attributable attr, String path, String name, Color value)static voidsetDashArray(Edge edge, float[] dashArray)static voidsetDashArray(Edge edge, float[] dashArray, float dashphase)static voidsetDashInfo(GraphElement edgeOrNode, float[] values)static voidsetDashInfo(GraphElement edgeOrNode, float a, float b)static voidsetDefaultGraphicsAttribute(Node node, double x, double y)static voidsetDefaultGraphicsAttribute(Node newNode, Point2D position)static voidsetDeleteableAttribute(String attributePath, String pathToBeDeleted)Memorizes an attribute, which's editor may be clicked, resulting in the deletion of an attribute (not necessarily the clicked one):static voidsetDepth(Node node, double depth)static voidsetEdgeBendStyle(Edge edge, String shape)static voidsetFillColor(Attributable attributable, Color color)Sets the fill color of a givenAtttibutable.static voidsetFillColorHEX(Attributable attr, String hexStr)static voidsetFont(LabelAttribute label, String fontName)Sets the font to use when the label is drawed.static voidsetFrameThickNess(GraphElement ge, double frameThinkness)static voidsetHeight(Node myNode, double height)static voidsetHidden(boolean doHide, GraphElement ge)static voidsetHidden(boolean doHide, Node n, boolean processOutEdges, boolean processInEdges, boolean processUndirEdges)static voidsetHidden(Collection<GraphElement> graphElements, boolean doHide)static voidsetHidden(Set<GraphElement> graphElements, boolean doHide)static voidsetKEGGhiddenCompoundInformation(Edge e, String compID)static voidsetLabel(int idx, GraphElement ge, String label, String fontName, String alignment)static voidsetLabel(Edge edge, String label)Sets the Label of a Edgestatic voidsetLabel(Edge edge, String label, String fontName)Sets the label of an edgestatic voidsetLabel(GraphElement ge, String label)static voidsetLabel(Node node, String label)Sets the Label of a Node.static voidsetLabel(Node node, String label, String fontName, String alignment)Sets the label of a node.static voidsetLabelAlignment(int index, Node node, AlignmentSetting align)static voidsetLabelColor(int index, GraphElement ge, Color color)static voidsetLabelConsumption(Edge e, String srcLabel)static voidsetLabelFrameStyle(int index, Node n, LabelFrameSetting setting)static voidsetLabelOffset(Attributable attributable, double offsetX, double offsetY)Set the relative offset of label position from center of a node.static voidsetLabelPosition(Node node, String pos)static voidsetLabelProduction(Edge e, String tgtLabel)static voidsetMacOSsettings(String applicationName)static voidsetNiceId(String attributeID, String description)Memorize a attribute description, shown in the node, edge and graph tabs, for display instead of a attribute name.static voidsetNodeGraphicsAttribute(double posx, double posy, double frameThickness_3, double width_25, double height_25, Color frameColor_0_0_0_255, Color fillColor_0_100_250_100, CollectionAttribute col)static voidsetOpacity(GraphElement ge, double opacity)Sets the opacity of a given graph element This value will also influence the opacity of dependent Graph Attribute Components (Labels, Charts, etc)static voidsetOutlineColor(Attributable attributable, Color color)Sets the outline color of a givenAtttibutable.static voidsetOutlineColorHEX(Attributable attr, String hexStr)static voidsetPathwayReference(Attributable a, int idx, String url)static voidsetPathwayReference(GraphElement ge, String url)static voidsetPosition(Node n, double x, double y)Sets the position of a nodestatic voidsetPosition(Node n, Point2D p)Sets the position of a nodestatic voidsetPosition(Node node, Vector2d position)static voidsetPosition3d(Node n, double x, double y, double z)static voidsetPositionZ(Node node, double z)static voidsetReferenceURL(Attributable ge, String url)static voidsetRoundedEdges(Node node, double rounding)static voidsetSBMLid(GraphElement ge, String id)static voidsetSBMLmodelID(GraphElement ge, String modelID)static voidsetSBMLreversibleReaction(GraphElement ge, String reactionReversible)static voidsetSBMLrole(GraphElement ge, String role)static voidsetShape(Edge edge, String knownShapeClassName)static voidsetShape(Node node, String knownShapeClassName)static voidsetShapeEllipse(Node node)static voidsetShapeRectangle(Node node)static voidsetSize(Node myNode, double width, double height)Sets the size of the Node.static voidsetSize(Node myNode, int width, int height)Sets the size of the Node.static voidsetSize(Node myNode, Vector2d newSize)Sets the size of the Node.static voidsetToolTipText(Attributable atta, String statusText)static voidsetVisibilityOfChildElements(Collection<Node> nodes, boolean doHide)static voidsetWidth(Node myNode, double width)static voidshowInBrowser(String url)static voidswitchVisibilityOfChildElements(Collection<Node> nodes)static booleanwindowsRunning()
-
Field Details
-
attributeSeparator
-
id_ttestCircleSize
-
knownColors
-
preFilePath
-
-
Constructor Details
-
AttributeHelper
public AttributeHelper()
-
-
Method Details
-
getEncodedUrl
-
showInBrowser
-
macOSrunning
public static boolean macOSrunning() -
setMacOSsettings
-
getDefaultAttributeDescriptionFor
-
setDeleteableAttribute
Memorizes an attribute, which's editor may be clicked, resulting in the deletion of an attribute (not necessarily the clicked one):attributePath:
- ".mapping.measurementdata" -> this attribute will be clickable
- ".mapping." -> this attribute and all child attributes will be clickable
- "mapping" -> attribute ".mapping" (and all child attributes) will be deleted
- "graphics.component" -> attribute ".graphics.component" (and all child attributes) will be deleted, but not any other ".graphics." attributes
- "mapping$charting" -> attributes ".mapping", ".charting" and all child attributes will be deleted. "$" may be used more than once
- Parameters:
attributePath- The path of the attribute, which will be clickablepathToBeDeleted- The path(s) of the attribute(s) to be deleted
-
getToBeDeletedPathFromAttributePath
-
setNiceId
Memorize a attribute description, shown in the node, edge and graph tabs, for display instead of a attribute name. Use "A:B" as the description, to create a group "A", which contains a item "B", for the given attributeID.- Parameters:
attributeID- The name of the attributedescription- The group and "nice name" of the attribute
-
getNiceIdFromAttributeId
-
getLabelPath
Get the Labelpath- Returns:
- Label Path
-
setLabel
Sets the Label of a Edge- Parameters:
edge- The Node to work withlabel- The new label for the node (created if not available)
-
setLabel
Sets the Label of a Node. If the given label is null, the label attribute is removed from the node.- Parameters:
node- The Node to work withlabel- The new label for the node (created if not available)
-
setLabel
Sets the label of an edge- Parameters:
edge- - the edge to uselabel- - the new label for the edge (created if not available)fontName- - the name of the font to use with this label
-
setLabel
Sets the label of a node. If the given label is null, the label attribute is removed from the node.- Parameters:
node- - the node to uselabel- - the new label for the node (created if not available)fontName- - the name of the font to use with this label
-
setLabel
public static void setLabel(int idx, GraphElement ge, String label, String fontName, String alignment)- Parameters:
idx- Use -1 to get main label, use 0..99 to get annotation labels
-
setLabelAlignment
- Parameters:
index- Use -1 to get main label, use 0..99 to get annotation labels
-
getLabelAlignment
- Parameters:
index- Use -1 to get main label, use 0..99 to get annotation labels
-
isLabelAlignmentKnownConstant
- Parameters:
index- Use -1 to get main label, use 0..99 to get annotation labels
-
setFont
Sets the font to use when the label is drawed.- Parameters:
label- - the labelfontName- - the name of the font
-
getLabel
Gets the Label of a Node- Parameters:
node- The node to work withdefaultReturn- The standard return value if no label is set- Returns:
- The actual label or the
labelDefaulvalue, if the label-attribute is not set.
-
getLabels
-
getLabels
-
getLabel
- Parameters:
index- Use -1 to get main label, use 0..99 to get annotation labels
-
hasAttribute
Check the existence of a named Attribute- Parameters:
n- The node to work withattributeName- The name of the attribute to be checked- Returns:
- True, if the attribute is available for the node
n. False, if the attribute is not available.
-
hasAttribute
-
setPosition
Sets the position of a node- Parameters:
n- The node to work withp- The new position as aPoint2D
-
setPosition
Sets the position of a node- Parameters:
n- The node to work withp- The new position as aPoint2D
-
setPosition3d
-
getPositionX
For getting the x position of a node through attribute access,- Parameters:
a- Node to be analyzed.- Returns:
- X position of node.
-
getPosition
Returns the position of a node- Parameters:
a- The node to be analyzed.- Returns:
- The position of the Node (a
Point2Dstructure)
-
getPositionVec2d
Returns the position of a node- Parameters:
a- The node to be analyzed.- Returns:
- The position of the Node (a
Vector2dstructure)
-
getPositionVec2df
Returns the position of a node- Parameters:
a- The node to be analyzed.- Returns:
- The position of the Node (a
Vector2dfstructure)
-
getPositionY
For geting the y position of a node through attribute access,- Parameters:
a- Node to be analysed.- Returns:
- Y position of node.
-
getSize
Gets the size of the Node.- Parameters:
myNode-- Returns:
- Tehe size as a
Vector2dstructure.
-
setSize
Sets the size of the Node.- Parameters:
myNode-width- New widthheight- New height
-
setHeight
-
setWidth
-
setSize
Sets the size of the Node.- Parameters:
myNode-width- New widthheight- New height
-
setSize
Sets the size of the Node.- Parameters:
myNode-newSize- The new size as aVector2dstruct. X = width, Y = height.
-
setFillColor
Sets the fill color of a givenAtttibutable.- Parameters:
attributable- - the Attributable (Node, Edge, ...) to set the colorcolor- - the color to set- See Also:
getFillColor(Attributable),setOutlineColor(Attributable, Color),getOutlineColor(Attributable)
-
getFillColor
Returns the fill color of a givenAtttibutable.- Parameters:
attributable- - the Attributable (Node, Edge, ...) to get the color from- See Also:
setFillColor(Attributable, Color),setOutlineColor(Attributable, Color),getOutlineColor(Attributable)
-
setOutlineColor
Sets the outline color of a givenAtttibutable.- Parameters:
attributable- - the Attributable (Node, Edge, ...) to set the colorcolor- - the color to set- See Also:
getOutlineColor(Attributable),setFillColor(Attributable, Color),getFillColor(Attributable)
-
getOutlineColor
Returns the outline color of a givenAtttibutable.- Parameters:
attributable- - the Attributable (Node, Edge, ...) to get the color from- See Also:
setOutlineColor(Attributable, Color),setFillColor(Attributable, Color),getFillColor(Attributable)
-
setOpacity
Sets the opacity of a given graph element This value will also influence the opacity of dependent Graph Attribute Components (Labels, Charts, etc)- Parameters:
ge- graph elementopacity- a value between 0.0 (transparent) and 1.0 (opaque)
-
getOpacity
Gets the opacity of a given graph element- Parameters:
ge- graph elementopacity- a value between 0.0 (transparent) and 1.0 (opaque)
-
setAttribute
public static void setAttribute(Attributable attributable, String path, String attributeName, Object attributeValue)SetAttribute, sets or adds a attribute to the givenAttributeable. If theattributeValueis from a known type (Boolean, Byte, Double, Float, Integer, Long, Short or String) the attribute values are set with "standard attributes". If it has a unknown type aObjectAttributeis added or set. These attributes can not be saved or loaded, so this should be avoided if possible. -
setAttributeTextField
public static void setAttributeTextField(Attributable attributable, String path, String attributeName, Object attributeValue)setAttributeTextField -
getAttributeValueSet
public static Set<Object> getAttributeValueSet(Collection<Attributable> attributables, String path, String attributeName, Object defaultValue, Object resultType, boolean setDefaultIfMissing) -
getAttributeValue
-
getAttributeValue
public static Object getAttributeValue(Attributable attributable, String path, String attributeName, Object defaultValue, Object resultType, boolean setDefaultIfMissing)Return an Attribute value, if not present, return the defaultValue. -
getAttribute
- Parameters:
attributable-attributeName-- Returns:
-
addAttributeFolder
- Parameters:
attributable- An attributable is usually a graph, node or an edge.path- Path can be a simple ID or a composite path built using attributeSeparators.
-
addAttributeFolder
- Parameters:
attributable- An attributable is usually a graph, node or an edge.path- Path can be a simple ID or a composite path built using attributeSeparators.overwrite- Whether, while adding new folders, any existing folders should be overwritten.- Since:
- 2.7.0
-
getFrameThickNess
- Parameters:
ge-- Returns:
-
setFrameThickNess
-
setDefaultGraphicsAttribute
- Parameters:
node-
-
setNodeGraphicsAttribute
public static void setNodeGraphicsAttribute(double posx, double posy, double frameThickness_3, double width_25, double height_25, Color frameColor_0_0_0_255, Color fillColor_0_100_250_100, CollectionAttribute col)- Parameters:
posx-posy-frameThickness_3-width_25-height_25-frameColor_0_0_0_255-fillColor_0_100_250_100-col-
-
setDefaultGraphicsAttribute
- Parameters:
newNode-position-
-
getDefaultGraphicsAttributeForEdge
public static CollectionAttribute getDefaultGraphicsAttributeForEdge(Color colArrow, Color colLine, boolean directed) -
getNewEdgeGraphicsAttribute
public static EdgeGraphicAttribute getNewEdgeGraphicsAttribute(Color colArrow, Color colLine, boolean directed) -
getSizeD
Gets the size of the Node.- Parameters:
myNode-- Returns:
- Tehe size as a
Vector2dstructure.
-
getSize3D
-
getWidth
-
getHeight
-
setPosition
- Parameters:
node-oldPos-
-
setToolTipText
-
getToolTipText
-
setBorderWidth
-
setBorderWidth
-
setBorderWidth
-
setArrowSize
-
getArrowSize
-
setFillColorHEX
- Parameters:
attr-hexStr- A color defined like #FFFFFF (must be 6 characters (hex) for the color components)
-
setOutlineColorHEX
- Parameters:
attr-hexStr- A color defined like #FFFFFF (must be 6 characters (hex) for the color components)
-
setSBMLid
-
getSBMLid
-
setSBMLmodelID
-
setSBMLreversibleReaction
-
isSBMLreversibleReaction
-
isSBMLreaction
-
setSBMLrole
-
getSBMLrole
-
setRoundedEdges
-
getRoundedEdges
-
getDefaultAttributeIconFor
-
getColorFrom3floatValues0to1
-
getColorFromName
-
getColorName
-
setDashInfo
-
setDashInfo
-
getDashInfo
-
getDefaultGraphicsAttributeForNode
-
getDefaultGraphicsAttributeForNode
-
getDefaultGraphicsAttributeForKeggNode
-
getHelpTopicFor
-
copyReplaceStringAttribute
-
setLabel
-
getLabelPosition
-
setLabelPosition
-
getLabelOffset
Get the relative offset of label position from center of a node. Offset is relative to node width/height; (0, 0) center of node, (-1, -1) top-left corner of node, (1, -1) top-right corner of node, (1, 1) bottom-right corner of node, (-1, 1) bottom-left corner of node.- Parameters:
attributable- currently only a node- Returns:
- relative offset of label position from center of a node, default return (0, 0)
-
setLabelOffset
Set the relative offset of label position from center of a node. Offset is relative to node width/height; (0, 0) center of node, (-1, -1) top-left corner of node, (1, -1) top-right corner of node, (1, 1) bottom-right corner of node, (-1, 1) bottom-left corner of node.- Parameters:
attributable- currently only a nodeoffsetX- horizontal offset of label position from center of a nodeoffsetY- vertical offset of label position from center of a node
-
getLabel
Get NodeLabelAttribute (if available)- Parameters:
index- Use -1 to get main label, use 0..99 to get annotation labelsnode- Node to be processed- Returns:
- NodeLabelAttribute, if present, otherwise null.
-
getLabel
Get EdgeLabelAttribute (if available)- Parameters:
index- Use -1 to get main label, use 0..99 to get annotation labelsedge- Edge to be processed- Returns:
- EdgeLabelAttribute, if present, otherwise null.
-
setLabelFrameStyle
-
formatNumber
-
setDashArray
-
setDashArray
-
setShapeEllipse
-
setShapeRectangle
-
setShape
-
setShape
-
getShape
-
setArrowtail
Assign a arrow shape in the opposite direction.of an edge.- Parameters:
edge-show- If set to true, the edge will have on both ends an arrow
-
setArrowhead
-
getArrowhead
-
getArrowtail
-
setArrowhead
-
setArrowtail
-
deleteAttribute
Removes a single attribute or a number of attributes from the Attributable. In case the name ends with "*", all attributes with a name, which starts with the same string, will be removed. Otherwise a single attribute (if available) with the exact name as given, is removed.- Parameters:
attributable-path-name- A name of a single attribute "test" or a group of attributes "test*" (test1, test2, testA, testABC, ...).- Returns:
- True, if the removal was successful. Fals, if a error has occured, which is added to the system log.
-
setLabelColor
-
getLabelColor
-
addEdgeBend
-
addEdgeBends
-
addEdgeBend
-
addEdgeBend
-
getEdgeBends
-
getEdgeBendCoordinateAttributes
-
removeEdgeBends
-
setEdgeBendStyle
-
getEdgeShapes
-
addEdgeShape
-
getEdgeBendStyle
-
getWebPageContent
-
getNiceEdgeOrNodeLabel
-
getSaveAttributeName
-
getPositionVec3d
If setDefault is true, values will be initilized, saved and returned as 0. Behaviour may be different between different getPosition* methods. (AAA)- Parameters:
node-setDefault-- Returns:
- Position vector (3D)
-
getPositionVec3d
-
getPositionZ
-
getPositionZ
-
setPositionZ
-
getDepth
-
setDepth
-
isHiddenGraphElement
-
switchVisibilityOfChildElements
-
setVisibilityOfChildElements
-
setHidden
-
setHidden
public static void setHidden(boolean doHide, Node n, boolean processOutEdges, boolean processInEdges, boolean processUndirEdges) -
setHidden
-
setHidden
-
getStringList
-
getStringList
-
getStringList
-
getStringList
Deprecated. -
setReferenceURL
-
getReferenceURL
-
setPathwayReference
-
setPathwayReference
-
removePathwayReferences
-
getPathwayReference
-
getPathwayReferences
-
getHeatMapLowerBound
-
getHeatMapMiddleBound
-
getHeatMapUpperBound
-
getHeatMapGamma
-
moveGraph
-
linuxRunning
public static boolean linuxRunning() -
windowsRunning
public static boolean windowsRunning() -
getShapeClassFromShapeName
-
getShapeDescritions
-
getShapeClassFromDescription
-
getShapeClasses
-
getLabelConsumption
-
getLabelProduction
-
setLabelConsumption
-
setLabelProduction
-
getNodeRectangle
-
getNodeRectangleAWT
-
getColorFromAttribute
public static Color getColorFromAttribute(Attributable attr, String path, String name, Color defaultValue) -
setColorFromAttribute
-
getDateFromString
-
getMD5fromFile
Deprecated.- Throws:
Exception
-
getMD5fromFile
Deprecated.- Throws:
Exception
-
getMD5fromInputStream
Deprecated.- Throws:
Exception
-
getMD5fromInputStream
@Deprecated public static String getMD5fromInputStream(InputStream is, ObjectRef optFileSize) throws ExceptionDeprecated.- Throws:
Exception
-
getDateString
If date is null, the current date is used! -
getFuzzyLabels
-
StringManipulationTools.getStringList(ArrayList,String)instead