Class LandmarkSliderComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.vanted.plugins.layout.stressminimization.parameters.LandmarkSliderComponent
- All Implemented Interfaces:
EventListener
,ChangeListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
,SessionListener
public class LandmarkSliderComponent extends AbstractValueEditComponent implements SessionListener, ChangeListener
Slider component specially for selecting landmarks. Exponential scale with the opportunity to select all nodes.
-
Field Summary
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
showEmpty
Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
-
Constructor Summary
Constructors Constructor Description LandmarkSliderComponent(Displayable disp)
-
Method Summary
Modifier and Type Method Description JComponent
getComponent()
Returns theValueEditComponent
'sJComponent
.void
sessionChanged(Session s)
This method is called when the session changes.void
sessionDataChanged(Session s)
This method is called when the data (except the graph data) are changed.void
setEditFieldValue()
Sets the current value of theDisplayable
in the correspondingJComponent
.void
setValue()
Sets the value of theDisplayable
specified in theJComponent
.void
stateChanged(ChangeEvent e)
Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, setDisplayable, setEnabled, setShowEmpty
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
postAttributeAdded, postAttributeRemoved, postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preAttributeAdded, preAttributeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, setParameter, setValue, transactionFinished, transactionStarted
-
Constructor Details
-
LandmarkSliderComponent
-
-
Method Details
-
getComponent
Description copied from interface:ValueEditComponent
Returns theValueEditComponent
'sJComponent
.- Specified by:
getComponent
in interfaceValueEditComponent
- Returns:
- the
ValueEditComponent
'sJComponent
.
-
setEditFieldValue
public void setEditFieldValue()Description copied from interface:ValueEditComponent
Sets the current value of theDisplayable
in the correspondingJComponent
. IfshowEmpty
is set to true, this component should instead show only empty fields.- Specified by:
setEditFieldValue
in interfaceValueEditComponent
-
setValue
public void setValue()Description copied from interface:ValueEditComponent
Sets the value of theDisplayable
specified in theJComponent
. Should only change the value if the value is really different otherwise too many events will be sent.- Specified by:
setValue
in interfaceValueEditComponent
-
sessionChanged
Description copied from interface:SessionListener
This method is called when the session changes.- Specified by:
sessionChanged
in interfaceSessionListener
- Parameters:
s
- the new Session.
-
sessionDataChanged
Description copied from interface:SessionListener
This method is called when the data (except the graph data) are changed.- Specified by:
sessionDataChanged
in interfaceSessionListener
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-