Class RandomPlacer
java.lang.Object
org.vanted.plugins.layout.multilevelframework.RandomPlacer
- All Implemented Interfaces:
Describable
,Parameterizable
,Placer
public class RandomPlacer extends Object implements Placer
Implementation of the
Placer
Interface that reduces Coarsening Levels
by randomly placing the inner nodes randomly around their MergedNode
- Author:
- Katze
-
Constructor Summary
Constructors Constructor Description RandomPlacer()
-
Method Summary
Modifier and Type Method Description String
getDescription()
String
getName()
Parameter[]
getParameters()
SeePlacer
void
reduceCoarseningLevel(MultilevelGraph multilevelGraph)
Places the internal Nodes of the topmost Coarsening Level of the givenMultilevelGraph
randomly around their average Positionvoid
setParameters(Parameter[] parameters)
Sets Parameters, this implementation automatically tries to assign the maximum place distance if given as aParameter
.
-
Constructor Details
-
RandomPlacer
public RandomPlacer()
-
-
Method Details
-
getParameters
SeePlacer
- Specified by:
getParameters
in interfaceParameterizable
- Specified by:
getParameters
in interfacePlacer
- Returns:
- an array of
Parameter
s - See Also:
Parameterizable.getParameters()
-
setParameters
Sets Parameters, this implementation automatically tries to assign the maximum place distance if given as aParameter
.- Specified by:
setParameters
in interfaceParameterizable
- Specified by:
setParameters
in interfacePlacer
- Parameters:
parameters
- The updatedParameter
.- See Also:
Parameterizable.setParameters(Parameter[])
-
reduceCoarseningLevel
Places the internal Nodes of the topmost Coarsening Level of the givenMultilevelGraph
randomly around their average Position- Specified by:
reduceCoarseningLevel
in interfacePlacer
- Parameters:
multilevelGraph
- the coarsened Graph. Needs to contain at least oneLevelGraph
-
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:
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:
Describable.getDescription()
-