Package cz.vutbr.fit.layout.impl
Class SimpleTagResolver
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.SimpleTagResolver
-
- All Implemented Interfaces:
TagResolver
public class SimpleTagResolver extends Object implements TagResolver
A simple implementation of a tag resolver that only uses the tags assigned to the source area.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description SimpleTagResolver(float minSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Tag>
getAreaTags(Area a)
Assigns a set of tags to a given area based on its properties.float
getMinSupport()
void
setMinSupport(float minSupport)
-
-
-
Method Detail
-
getMinSupport
public float getMinSupport()
-
setMinSupport
public void setMinSupport(float minSupport)
-
getAreaTags
public Set<Tag> getAreaTags(Area a)
Description copied from interface:TagResolver
Assigns a set of tags to a given area based on its properties. The actual way of tag assignment depends on the particular implementation.- Specified by:
getAreaTags
in interfaceTagResolver
- Parameters:
a
- the area- Returns:
- a set of tags assigned to this area by the resolver (may be empty)
-
-