net.sourceforge.plantuml.elk.proxy.graph.ElkEdge Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml Show documentation
Show all versions of plantuml Show documentation
PlantUML is a component that allows to quickly write :
* sequence diagram,
* use case diagram,
* class diagram,
* activity diagram,
* component diagram,
* state diagram
* object diagram
package net.sourceforge.plantuml.elk.proxy.graph;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.sourceforge.plantuml.elk.proxy.Reflect;
public class ElkEdge extends ElkWithProperty {
// ::remove folder when __HAXE__
public ElkEdge(Object obj) {
super(obj);
}
public ElkNode getContainingNode() {
return new ElkNode(Reflect.call(obj, "getContainingNode"));
}
public Collection getLabels() {
final List result = new ArrayList<>();
Collection internal = (Collection) Reflect.call(obj, "getLabels");
for (Object element : internal) {
result.add(new ElkLabel(element));
}
return result;
}
public List getSections() {
final List result = new ArrayList<>();
Collection internal = (Collection) Reflect.call(obj, "getSections");
for (Object element : internal) {
result.add(new ElkEdgeSection(element));
}
return result;
}
public boolean isHierarchical() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy