Package cz.vutbr.fit.layout.segm.op
Class TagByAttributeOperator
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseService
-
- cz.vutbr.fit.layout.impl.BaseParametrizedOperation
-
- cz.vutbr.fit.layout.impl.BaseOperator
-
- cz.vutbr.fit.layout.segm.op.TagByAttributeOperator
-
- All Implemented Interfaces:
AreaTreeOperator,ParametrizedOperation,Service
public class TagByAttributeOperator extends BaseOperator
Tags visual area based on a chosen DOM attribute value.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description TagByAttributeOperator()TagByAttributeOperator(String attrName, String tagType, boolean multiTag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(AreaTree atree)voidapply(AreaTree atree, Area root)protected TagcreateTag(String tagName)List<Parameter>defineParams()StringgetAttrName()StringgetCategory()StringgetDescription()StringgetId()StringgetName()StringgetTagType()booleanisMultiTag()voidsetAttrName(String attrName)voidsetMultiTag(boolean multiTag)voidsetTagType(String tagType)-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseOperator
toString
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseParametrizedOperation
getParam, getParams, getParamString, setParam
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseService
getServiceManager, setServiceManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.api.ParametrizedOperation
getParam, getParams, getParamString, setParam
-
Methods inherited from interface cz.vutbr.fit.layout.api.Service
setServiceManager
-
-
-
-
Method Detail
-
getId
public String getId()
-
getName
public String getName()
-
getDescription
public String getDescription()
-
getCategory
public String getCategory()
-
defineParams
public List<Parameter> defineParams()
- Overrides:
defineParamsin classBaseParametrizedOperation
-
getAttrName
public String getAttrName()
-
setAttrName
public void setAttrName(String attrName)
-
getTagType
public String getTagType()
-
setTagType
public void setTagType(String tagType)
-
isMultiTag
public boolean isMultiTag()
-
setMultiTag
public void setMultiTag(boolean multiTag)
-
apply
public void apply(AreaTree atree)
-
-