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 StringgetDescription()StringgetName()Parameter[]getParameters()Settings (parameters) for thePlacer.voidreduceCoarseningLevel(MultilevelGraph multilevelGraph)Remove a coarsening level from theMultilevelGraphby callingMultilevelGraph.popCoarseningLevel()and but the nodes represented by theMergedNodeat positions close to theMergedNodethey were represented by.voidsetParameters(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:PlacerSettings (parameters) for thePlacer.- Specified by:
getParametersin interfaceParameterizable- Specified by:
getParametersin interfacePlacer- Returns:
- an array of
Parameters - See Also:
Placer.getParameters()
-
setParameters
Description copied from interface:PlacerCalled by the Multilevel Framework when the user updates the parameters.- Specified by:
setParametersin interfaceParameterizable- Specified by:
setParametersin interfacePlacer- Parameters:
parameters- The updatedParameter.- See Also:
Placer.setParameters(Parameter[])
-
reduceCoarseningLevel
Description copied from interface:PlacerRemove a coarsening level from theMultilevelGraphby callingMultilevelGraph.popCoarseningLevel()and but the nodes represented by theMergedNodeat positions close to theMergedNodethey were represented by.- Specified by:
reduceCoarseningLevelin interfacePlacer- Parameters:
multilevelGraph- TheMultilevelGraphwhose top coarsening level should be deconstructed.- See Also:
Placer.reduceCoarseningLevel(MultilevelGraph)
-
getName
- Specified by:
getNamein interfaceDescribable- Returns:
- the name of the implementing class.
This may be be used to represent this class to the user.
It should not be
nulland be unique between all classes that implement this interface. - See Also:
org.vanted.addons.multilevelframework.sm_util.gui.Describable#getName()
-
getDescription
- Specified by:
getDescriptionin 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()
-