Class SolarPlacer
java.lang.Object
org.vanted.plugins.layout.multilevelframework.SolarPlacer
- All Implemented Interfaces:
Describable
,Parameterizable
,Placer
public class SolarPlacer extends Object implements Placer
Corresponding placer to the
SolarMerger
.
Places moons and planets on the paths between the suns they belong to.
(Or the barycenter of the positions, in case they lie on several paths).
If the planets or moons don't lie on any paths, they are placed randomly.-
Constructor Summary
Constructors Constructor Description SolarPlacer()
-
Method Summary
Modifier and Type Method Description String
getDescription()
String
getName()
Parameter[]
getParameters()
Settings (parameters) for thePlacer
.void
reduceCoarseningLevel(MultilevelGraph multilevelGraph)
Remove a coarsening level from theMultilevelGraph
by callingMultilevelGraph.popCoarseningLevel()
and but the nodes represented by theMergedNode
at positions close to theMergedNode
they were represented by.void
setParameters(Parameter[] parameters)
Called by the Multilevel Framework when the user updates the parameters.
-
Constructor Details
-
SolarPlacer
public SolarPlacer()
-
-
Method Details
-
getParameters
Description copied from interface:Placer
Settings (parameters) for thePlacer
.- Specified by:
getParameters
in interfaceParameterizable
- Specified by:
getParameters
in interfacePlacer
- Returns:
- an array of
Parameter
s - See Also:
Placer.getParameters()
-
setParameters
Description copied from interface:Placer
Called by the Multilevel Framework when the user updates the parameters.- Specified by:
setParameters
in interfaceParameterizable
- Specified by:
setParameters
in interfacePlacer
- Parameters:
parameters
- The updatedParameter
.- See Also:
Placer.setParameters(Parameter[])
-
reduceCoarseningLevel
Description copied from interface:Placer
Remove a coarsening level from theMultilevelGraph
by callingMultilevelGraph.popCoarseningLevel()
and but the nodes represented by theMergedNode
at positions close to theMergedNode
they were represented by.- Specified by:
reduceCoarseningLevel
in interfacePlacer
- Parameters:
multilevelGraph
- TheMultilevelGraph
whose top coarsening level should be deconstructed.- See Also:
Placer.reduceCoarseningLevel(MultilevelGraph)
-
getName
- Specified by:
getName
in interfaceDescribable
- Returns:
- the name of the implementing class.
This may be be used to represent this class to the user.
It should not be
null
and be unique between all classes that implement this interface. - See Also:
org.vanted.addons.multilevelframework.sm_util.gui.Describable#getName()
-
getDescription
- Specified by:
getDescription
in interfaceDescribable
- Returns:
- the description of the implementing class.
This may be be used to explain the behaviour of this class to the user.
It should not be
null
. - See Also:
org.vanted.addons.multilevelframework.sm_util.gui.Describable#getDescription()
-