public class Graph extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Graph.GraphElementAndPort |
| Constructor and Description |
|---|
Graph() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(GraphElement n) |
void |
clear() |
GraphElement |
findElement(int mx,
int my) |
Graph.GraphElementAndPort |
findElementAndPort(int x,
int y) |
double |
getDistanceError() |
GraphEdge |
getEdge(String uuid) |
List<GraphEdge> |
getEdges() |
GraphElement |
getElement(String uuid) |
List<GraphElement> |
getElements() |
String |
getGraphTitle() |
Set<String> |
getSelectedElements() |
GraphShape |
getShape(String uuid) |
List<GraphShape> |
getShapes() |
boolean |
isGridVisible() |
void |
moveGraph(int dx,
int dy) |
void |
remove(GraphElement element) |
void |
removeSelected() |
void |
setDistanceError(double distanceError) |
void |
setGraphTitle(String graphTitle) |
void |
setGridVisible(boolean gridVisible) |
void |
setSelectedElements(Set<String> selectedElements) |
String |
toString() |
public double getDistanceError()
public void setDistanceError(double distanceError)
public boolean isGridVisible()
public void setGridVisible(boolean gridVisible)
public String getGraphTitle()
public void setGraphTitle(String graphTitle)
public List<GraphElement> getElements()
public GraphElement getElement(String uuid)
public GraphShape getShape(String uuid)
public List<GraphShape> getShapes()
public void addElement(GraphElement n)
public Graph.GraphElementAndPort findElementAndPort(int x, int y)
public GraphElement findElement(int mx, int my)
public void remove(GraphElement element)
public void moveGraph(int dx,
int dy)
public void clear()
public void removeSelected()
Copyright © 2021 vpc open source initiative. All rights reserved.