- 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, setValueToDefaultMethods 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:
getSwingComponentin interfaceSwingProvider- Returns:
- the Select component or null.
-
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.
-