public abstract class AbstractDotGraphElement extends Object
| Constructor and Description |
|---|
AbstractDotGraphElement() |
| Modifier and Type | Method and Description |
|---|---|
DotGraphAttribute |
getAttribute(String id) |
Collection<DotGraphAttribute> |
getAttributes() |
String |
getAttributeValue(String id) |
String |
getLabel() |
void |
removeAllAttributes()
Removes all attributes from this dot element.
|
void |
removeAttribute(DotGraphAttribute attr)
Removes the given attribute from this dot element.
|
void |
removeAttribute(String id)
Removes the attribute with the given
id from this dot element. |
void |
setAttribute(DotGraphAttribute attr)
Sets an attribute for this dot element.
|
void |
setAttribute(String id,
String value)
Sets an attribute for this dot element.
|
void |
setLabel(String label)
Sets the label for this dot element.
|
public void setAttribute(String id, String value)
id - the attribute id to be setvalue - the attribute valuepublic void setAttribute(DotGraphAttribute attr)
attr - DotGraphAttribute specifying the attribute name and valuepublic Collection<DotGraphAttribute> getAttributes()
Collection of DotGraphAttribute for this AbstractDotGraphElementpublic DotGraphAttribute getAttribute(String id)
id - DotGraphAttribute with the given idpublic String getAttributeValue(String id)
id - DotGraphAttribute with the given idpublic void removeAttribute(String id)
id from this dot element.id - public void removeAttribute(DotGraphAttribute attr)
attr - DotGraphAttribute specifying the attribute to removepublic void removeAllAttributes()
public void setLabel(String label)
label - a label stringpublic String getLabel()
Copyright © 2024 Soot OSS. All rights reserved.