- All Implemented Interfaces:
GraphViewProvider
,SwingProvider
public class InputColor
extends com.marginallyclever.nodegraphcore.port.Input<Color>
implements SwingProvider, GraphViewProvider
-
Field Summary
Fields inherited from class com.marginallyclever.nodegraphcore.port.Port
DEFAULT_HEIGHT, DEFAULT_WIDTH
-
Constructor Summary
Constructors -
Method Summary
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, isValidType, setDirty, setDisplayName, setValue, toJSON, toString
-
Constructor Details
-
InputColor
- Throws:
IllegalArgumentException
-
-
Method Details
-
getSwingComponent
- Specified by:
getSwingComponent
in interfaceSwingProvider
- Returns:
- the Select component or null.
-
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.
-