public abstract class AbstractGraphElement extends Object implements GraphElement
| Modifier and Type | Field and Description |
|---|---|
protected List<GraphPort> |
ports |
protected String |
uuid |
| Constructor and Description |
|---|
AbstractGraphElement() |
| Modifier and Type | Method and Description |
|---|---|
GraphPort |
addPort(int x,
int y) |
protected void |
addReadOnlyPort(GraphPort connector) |
protected void |
addReadOnlyPorts(int count) |
void |
configure(GraphConfig config) |
GraphPort |
createPort(int x,
int y) |
void |
ensureUuid() |
String |
getLineColor() |
String |
getLineStroke() |
GraphPort |
getPort(int c) |
GraphPort[] |
getPorts() |
String |
getText() |
String |
getUuid() |
boolean |
isHover() |
boolean |
isSelected() |
void |
setHover(boolean over) |
void |
setLineColor(String color) |
void |
setLineStroke(String lineStroke) |
void |
setSelected(boolean selected) |
void |
setText(String text) |
void |
setUuid(String uuid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getBounds, move, movePortdistanceTopublic void ensureUuid()
public GraphPort getPort(int c)
public GraphPort[] getPorts()
getPorts in interface GraphElementpublic String getUuid()
getUuid in interface GraphElementpublic void setUuid(String uuid)
public String getLineColor()
getLineColor in interface GraphElementpublic void setLineColor(String color)
setLineColor in interface GraphElementpublic String getText()
getText in interface GraphElementpublic void setText(String text)
setText in interface GraphElementprotected void addReadOnlyPorts(int count)
protected void addReadOnlyPort(GraphPort connector)
public GraphPort createPort(int x, int y)
createPort in interface GraphElementpublic GraphPort addPort(int x, int y)
addPort in interface GraphElementpublic void configure(GraphConfig config)
public boolean isSelected()
isSelected in interface GraphElementpublic void setSelected(boolean selected)
setSelected in interface GraphElementpublic boolean isHover()
isHover in interface GraphElementpublic void setHover(boolean over)
setHover in interface GraphElementpublic String getLineStroke()
getLineStroke in interface GraphElementpublic void setLineStroke(String lineStroke)
setLineStroke in interface GraphElementCopyright © 2021 vpc open source initiative. All rights reserved.