public class MapPathParameterView<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements PluginParameterView
PluginParameterView
that displays a MapPathParameter
.Constructor and Description |
---|
MapPathParameterView(java.awt.Component parent,
MapPathParameter<G,A,R> parameter,
PathManager pathManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getConfigComponent()
Returns a
JComponent for editing the parameter configuration. |
javax.swing.JComponent |
getValueComponent()
Returns a
JComponent for editing the parameter value. |
public MapPathParameterView(@NotNull java.awt.Component parent, @NotNull MapPathParameter<G,A,R> parameter, @NotNull PathManager pathManager)
parent
- the parent component for the file chooserparameter
- the parameter to affectpathManager
- the path manager instance@NotNull public javax.swing.JComponent getValueComponent()
JComponent
for editing the parameter value. In the "run
plugin" dialog this is the parameter's value, in the "edit plugin" dialog
it is the default value.getValueComponent
in interface PluginParameterView
@NotNull public javax.swing.JComponent getConfigComponent()
JComponent
for editing the parameter configuration. It
is used only in the "edit plugin" dialog.getConfigComponent
in interface PluginParameterView