public interface NodeAttributesReader<V> extends AttributesReader
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(NodeAttributesReader fvreader) |
Color |
getBackgroundColor() |
NodeBorder |
getBorder() |
NodeStyle<V> |
getDefaultNodeStyle()
Get the default style for the nodes in this graph.
|
Color |
getForegroundColor() |
int |
getHeight() |
NodeShape |
getShape() |
NodeStyle<V> |
getStyle() |
Color |
getTextColor() |
int |
getWidth() |
int |
getX() |
int |
getY() |
void |
render(Graphics2D g)
Render the current node on a given graphics.
|
void |
renderMoving(Graphics2D g,
int movex,
int movey)
Render the current node while moving it.
|
void |
setNode(V node)
change the edited node.
|
void |
setNode(V node,
boolean selected)
change the edited node, knowing that it is selected
|
void |
setPos(int x,
int y)
change the node's position.
|
void |
setStyle(NodeStyle<V> style) |
damage, getBounds, move, refresh, select, writeGINML
NodeStyle<V> getDefaultNodeStyle()
void setNode(V node)
node
- the node to editvoid setNode(V node, boolean selected)
node
- selected
- int getX()
int getY()
int getHeight()
int getWidth()
Color getForegroundColor()
Color getTextColor()
Color getBackgroundColor()
void setPos(int x, int y)
x
- y
- NodeBorder getBorder()
NodeShape getShape()
void copyFrom(NodeAttributesReader fvreader)
fvreader
- void render(Graphics2D g)
g
- void renderMoving(Graphics2D g, int movex, int movey)
g
- movex
- movey
- Copyright © 2005–2020. All rights reserved.