Package dataModelFX
Class ModuleNodeParams
java.lang.Object
PamController.UsedModuleInfo
dataModelFX.ModuleNodeParams
- All Implemented Interfaces:
ConnectionNodeParams
,Serializable
,ManagedParameters
public class ModuleNodeParams
extends UsedModuleInfo
implements ConnectionNodeParams, Serializable, ManagedParameters
Holds seriliazbale informations on a ModuleConnectionNode.
- Author:
- Jamie Macaulay
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface dataModelFX.ConnectionNodeParams
ConnectionNodeParams.PAMConnectionNodeType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double[]
The default colour of a module rectangle.static final double
static final double
static final double
The opacity to set disabled modulesdouble
The preferred height of the module connection node.double
The preferred width of the module connection nodeFields inherited from class PamController.UsedModuleInfo
className, unitName
-
Constructor Summary
ConstructorDescriptionModuleNodeParams
(ModuleConnectionNode moduleConnectionNode) ModuleNodeParams
(String className, String unitType, String unitName, javafx.geometry.Point2D location, boolean settingsShowing) -
Method Summary
Modifier and TypeMethodDescriptiongetID()
Get the unique ID for the node.double
The x location of the module.double
The y location of the module.Get the node type.Get a set of data that describes all of the parameters in a classvoid
setLayoutX
(double layoutX) void
setLayoutY
(double layoutY) void
setNodeType
(ConnectionNodeParams.PAMConnectionNodeType connectionnoNodeType) Methods inherited from class PamController.UsedModuleInfo
getUnitName, getUnitType, setUnitType, toString
-
Field Details
-
DEFAULT_WIDTH
public static final double DEFAULT_WIDTH- See Also:
-
DEFAULT_HEIGHT
public static final double DEFAULT_HEIGHT- See Also:
-
DEFAULT_COLOUR
public static final double[] DEFAULT_COLOURThe default colour of a module rectangle. -
DISABLED_OPACITY
public static final double DISABLED_OPACITYThe opacity to set disabled modules- See Also:
-
prefWidth
public double prefWidthThe preferred width of the module connection node -
prefHeight
public double prefHeightThe preferred height of the module connection node.
-
-
Constructor Details
-
ModuleNodeParams
-
ModuleNodeParams
-
-
Method Details
-
getLayoutX
public double getLayoutX()Description copied from interface:ConnectionNodeParams
The x location of the module.- Specified by:
getLayoutX
in interfaceConnectionNodeParams
-
getLayoutY
public double getLayoutY()Description copied from interface:ConnectionNodeParams
The y location of the module.- Specified by:
getLayoutY
in interfaceConnectionNodeParams
-
setLayoutX
public void setLayoutX(double layoutX) -
setLayoutY
public void setLayoutY(double layoutY) -
setNodeType
-
getNodeType
Description copied from interface:ConnectionNodeParams
Get the node type. This indicates what type of conneciton node the parameter belong to.- Specified by:
getNodeType
in interfaceConnectionNodeParams
- Returns:
- the connection node type.
-
getID
Description copied from interface:ConnectionNodeParams
Get the unique ID for the node. This should eb the same after the node has been saved.- Specified by:
getID
in interfaceConnectionNodeParams
- Returns:
- the unique ID number.
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Overrides:
getParameterSet
in classUsedModuleInfo
- Returns:
- description of the parameters in a class.
-