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
FieldsModifier and TypeFieldDescriptionstatic final double[]The default colour of a module rectangle.static final doublestatic final doublestatic final doubleThe opacity to set disabled modulesdoubleThe preferred height of the module connection node.doubleThe preferred width of the module connection nodeFields inherited from class PamController.UsedModuleInfo
className, unitName - 
Constructor Summary
ConstructorsConstructorDescriptionModuleNodeParams(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.doubleThe x location of the module.doubleThe y location of the module.Get the node type.Get a set of data that describes all of the parameters in a classvoidsetLayoutX(double layoutX) voidsetLayoutY(double layoutY) voidsetNodeType(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:ConnectionNodeParamsThe x location of the module.- Specified by:
 getLayoutXin interfaceConnectionNodeParams
 - 
getLayoutY
public double getLayoutY()Description copied from interface:ConnectionNodeParamsThe y location of the module.- Specified by:
 getLayoutYin interfaceConnectionNodeParams
 - 
setLayoutX
public void setLayoutX(double layoutX)  - 
setLayoutY
public void setLayoutY(double layoutY)  - 
setNodeType
 - 
getNodeType
Description copied from interface:ConnectionNodeParamsGet the node type. This indicates what type of conneciton node the parameter belong to.- Specified by:
 getNodeTypein interfaceConnectionNodeParams- Returns:
 - the connection node type.
 
 - 
getID
Description copied from interface:ConnectionNodeParamsGet the unique ID for the node. This should eb the same after the node has been saved.- Specified by:
 getIDin interfaceConnectionNodeParams- Returns:
 - the unique ID number.
 
 - 
getParameterSet
Description copied from interface:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
 getParameterSetin interfaceManagedParameters- Overrides:
 getParameterSetin classUsedModuleInfo- Returns:
 - description of the parameters in a class.
 
 
 -