public class MultiLineOperator extends BaseOperator
ParametrizedOperation.ValueType
Modifier and Type | Field and Description |
---|---|
protected float |
maxLineEmSpace
The maximal distance of two areas allowed within a single line (in 'em' units)
|
protected java.lang.String[] |
paramNames |
protected ParametrizedOperation.ValueType[] |
paramTypes |
protected boolean |
useConsistentStyle
Should the lines have a consistent visual style?
|
Constructor and Description |
---|
MultiLineOperator() |
MultiLineOperator(boolean useConsistentStyle,
float maxLineEmSpace) |
Modifier and Type | Method and Description |
---|---|
void |
apply(AreaTree atree)
Applies the operation to the given tree.
|
void |
apply(AreaTree atree,
Area root)
Applies the operation to the given subtree of the tree.
|
java.lang.String |
getDescription()
Obtains a longer description of the service.
|
java.lang.String |
getId()
Obtains a unique ID of the service
|
float |
getMaxLineEmSpace() |
java.lang.String |
getName()
Obtains a descriptive name of the service that may be presented to the user.
|
java.lang.String[] |
getParamNames()
Obtains a list of available parameter names of the operation.
|
ParametrizedOperation.ValueType[] |
getParamTypes()
Obtains a list of available parameter value types.
|
boolean |
getUseConsistentStyle() |
protected void |
joinAreas(AreaImpl a)
Goes through the grid of areas and joins the adjacent visual areas that are not
separated by anything
|
protected void |
recursiveJoinAreas(AreaImpl root)
Goes through all the areas in the tree and tries to join their sub-areas into single
areas.
|
void |
setMaxLineEmSpace(float maxLineEmSpace) |
void |
setUseConsistentStyle(boolean useConsistentStyle) |
toString
getParam, getParamRange, setParam
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParam, getParamRange, setParam
protected boolean useConsistentStyle
protected float maxLineEmSpace
protected final java.lang.String[] paramNames
protected final ParametrizedOperation.ValueType[] paramTypes
public MultiLineOperator()
public MultiLineOperator(boolean useConsistentStyle, float maxLineEmSpace)
public java.lang.String getId()
Service
public java.lang.String getName()
Service
public java.lang.String getDescription()
Service
public java.lang.String[] getParamNames()
ParametrizedOperation
public ParametrizedOperation.ValueType[] getParamTypes()
ParametrizedOperation
public boolean getUseConsistentStyle()
public void setUseConsistentStyle(boolean useConsistentStyle)
public float getMaxLineEmSpace()
public void setMaxLineEmSpace(float maxLineEmSpace)
public void apply(AreaTree atree)
AreaTreeOperator
atree
- the area tree to be modified.public void apply(AreaTree atree, Area root)
AreaTreeOperator
atree
- the area tree to be modified.root
- the root node of the affected subtree.protected void recursiveJoinAreas(AreaImpl root)
protected void joinAreas(AreaImpl a)