- All Implemented Interfaces:
SwingProvider
public class InputRange
extends com.marginallyclever.nodegraphcore.port.Input<Integer>
implements SwingProvider
An input port that allows the user to select a range of values using a slider.
-
Field Summary
Fields inherited from class com.marginallyclever.nodegraphcore.port.Port
DEFAULT_HEIGHT, DEFAULT_WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionInputRange
(String name) InputRange
(String name, Integer startingValue) InputRange
(String name, Integer startingValue, int top, int bottom) -
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
-
InputRange
-
InputRange
- Throws:
IllegalArgumentException
-
InputRange
public InputRange(String name, Integer startingValue, int top, int bottom) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
getSwingComponent
- Specified by:
getSwingComponent
in interfaceSwingProvider
- Returns:
- the Select component or null.
-
getTop
public int getTop() -
getBottom
public int getBottom() -
setTop
public void setTop(int top) -
setBottom
public void setBottom(int bottom)
-