Package org.gephi.io.importer.api
Interface NodeDraft
-
- All Superinterfaces:
ElementDraft
public interface NodeDraft extends ElementDraft
Draft node, hosted by import containers to represent nodes found when importing.Processorsdecide if this node will finally be appended to the graph or not.- Author:
- Mathieu Bastian
- See Also:
ContainerLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gephi.io.importer.api.ElementDraft
ElementDraft.Factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetSize()Returns this node's size.floatgetX()Returns this node's X position.floatgetY()Returns this node's Y position.floatgetZ()Returns this node's Z position.booleanisCreatedAuto()Returns true if this node has been automatically created.booleanisFixed()Returns whether this node's position is fixed.voidsetFixed(boolean fixed)Sets whether this node's position is fixed.voidsetSize(float size)Sets this node's size.voidsetX(float x)Sets this node's X position.voidsetY(float y)Sets this node's Y position.voidsetZ(float z)Sets this node's Z position.-
Methods inherited from interface org.gephi.io.importer.api.ElementDraft
addInterval, addInterval, addIntervals, addTimestamp, addTimestamp, addTimestamps, getColor, getColumns, getGraphInterval, getGraphTimestamp, getId, getLabel, getLabelColor, getLabelSize, getTimeSet, getValue, isLabelVisible, parseAndSetValue, parseAndSetValue, parseAndSetValue, parseAndSetValue, parseAndSetValue, setColor, setColor, setColor, setColor, setColor, setLabel, setLabelColor, setLabelColor, setLabelColor, setLabelColor, setLabelColor, setLabelSize, setLabelVisible, setValue, setValue, setValue, setValue, setValue
-
-
-
-
Method Detail
-
getX
float getX()
Returns this node's X position.- Returns:
- x position
-
setX
void setX(float x)
Sets this node's X position.- Parameters:
x- x position
-
getY
float getY()
Returns this node's Y position.- Returns:
- y position
-
setY
void setY(float y)
Sets this node's Y position.- Parameters:
y- y position
-
getZ
float getZ()
Returns this node's Z position.- Returns:
- z position
-
setZ
void setZ(float z)
Sets this node's Z position.- Parameters:
z- z position
-
getSize
float getSize()
Returns this node's size.- Returns:
- size
-
setSize
void setSize(float size)
Sets this node's size.- Parameters:
size- size
-
isFixed
boolean isFixed()
Returns whether this node's position is fixed.Default is false.
- Returns:
- true if fixed, false otherwise
-
setFixed
void setFixed(boolean fixed)
Sets whether this node's position is fixed.This flag is used during layout to settle some specific nodes. If set at true, the layout algorithms won't modify the node's position.
- Parameters:
fixed- true if fixed, false otherwise
-
isCreatedAuto
boolean isCreatedAuto()
Returns true if this node has been automatically created.- Returns:
- true if automatically created, false otherwise
-
-