Package org.gephi.graph.api
Interface NodeProperties
-
- All Superinterfaces:
ElementProperties
- All Known Subinterfaces:
Node
public interface NodeProperties extends ElementProperties
Node properties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends LayoutData>
TgetLayoutData()
Returns the layout-specific data, if any.boolean
isFixed()
Returns true of this node is fixed (can't be moved).void
setFixed(boolean fixed)
Sets whether to fix this node (can't move its position)void
setLayoutData(LayoutData layoutData)
Sets the layout data.void
setPosition(float x, float y)
Sets the x and y position.void
setPosition(float x, float y, float z)
Sets the x, y and z position.void
setSize(float size)
Sets the size.void
setX(float x)
Sets the x position.void
setY(float y)
Sets the y position.void
setZ(float z)
Sets the z position.float
size()
Returns the size.float
x()
Returns the x position.float
y()
Returns the y position.float
z()
Returns the z position.
-
-
-
Method Detail
-
x
float x()
Returns the x position.- Returns:
- the x position
-
y
float y()
Returns the y position.- Returns:
- the y position
-
z
float z()
Returns the z position.- Returns:
- the z position
-
size
float size()
Returns the size.- Returns:
- the size
-
isFixed
boolean isFixed()
Returns true of this node is fixed (can't be moved).- Returns:
- true if fixed, false otherwise
-
getLayoutData
<T extends LayoutData> T getLayoutData()
Returns the layout-specific data, if any.- Type Parameters:
T
- the class that implements the LayoutData.- Returns:
- the layout data
-
setX
void setX(float x)
Sets the x position.- Parameters:
x
- the x position
-
setY
void setY(float y)
Sets the y position.- Parameters:
y
- the y position
-
setZ
void setZ(float z)
Sets the z position.- Parameters:
z
- the z position
-
setSize
void setSize(float size)
Sets the size.- Parameters:
size
- the size
-
setPosition
void setPosition(float x, float y)
Sets the x and y position.- Parameters:
x
- the x positiony
- the y position
-
setPosition
void setPosition(float x, float y, float z)
Sets the x, y and z position.- Parameters:
x
- the x positiony
- the y positionz
- the z position
-
setFixed
void setFixed(boolean fixed)
Sets whether to fix this node (can't move its position)- Parameters:
fixed
- true to fix the node, false to unfix
-
setLayoutData
void setLayoutData(LayoutData layoutData)
Sets the layout data.- Parameters:
layoutData
- the layout data
-
-