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) void
Display the port in the graph view.void
setOptions
(String[] options) void
Methods inherited from class com.marginallyclever.donatello.ports.InputInt
isValidType
Methods inherited from class com.marginallyclever.nodegraphcore.port.Input
createInverse, getFrom, hasConnection, setFrom, setValueToDefault
Methods 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:
getSwingComponent
in interfaceSwingProvider
- Overrides:
getSwingComponent
in classInputInt
- Returns:
- the Select component or null.
-
setOptions
-
setValue
-
paint
Description copied from interface:GraphViewProvider
Display the port in the graph view.- Specified by:
paint
in interfaceGraphViewProvider
- Parameters:
g
- The graphics context to draw on.box
- The bounding box to draw in.
-