Class InputOneOfMany
java.lang.Object
com.marginallyclever.nodegraphcore.port.Port<Integer>
com.marginallyclever.nodegraphcore.port.Input<Integer>
com.marginallyclever.donatello.ports.InputInt
com.marginallyclever.donatello.ports.InputOneOfMany
- All Implemented Interfaces:
GraphViewProvider,SwingProvider
-
Field Summary
Fields inherited from class com.marginallyclever.nodegraphcore.port.Port
DEFAULT_HEIGHT, DEFAULT_WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionInputOneOfMany(String name) InputOneOfMany(String name, Integer startingValue) -
Method Summary
Modifier and TypeMethodDescriptiongetSwingComponent(Component parent) voidDisplay the port in the graph view.voidsetOptions(String[] options) voidMethods inherited from class com.marginallyclever.donatello.ports.InputInt
isValidTypeMethods inherited from class com.marginallyclever.nodegraphcore.port.Input
createInverse, getFrom, hasConnection, setFrom, setValueToDefaultMethods inherited from class com.marginallyclever.nodegraphcore.port.Port
fromJSON, getDisplayName, getInPosition, getName, getOutPosition, getRectangle, getType, getTypeName, getValue, isDirty, setDirty, setDisplayName, toJSON, toString
-
Constructor Details
-
InputOneOfMany
-
InputOneOfMany
- Throws:
IllegalArgumentException
-
-
Method Details
-
getSwingComponent
- Specified by:
getSwingComponentin interfaceSwingProvider- Overrides:
getSwingComponentin classInputInt- Returns:
- the Select component or null.
-
setOptions
-
setValue
-
paint
Description copied from interface:GraphViewProviderDisplay the port in the graph view.- Specified by:
paintin interfaceGraphViewProvider- Parameters:
g- The graphics context to draw on.box- The bounding box to draw in.
-