public class FindLineOperator
extends org.fit.layout.impl.BaseOperator
| Modifier and Type | Field and Description |
|---|---|
protected float |
maxLineEmSpace
The maximal distance of two areas allowed within a single line (in 'em' units)
|
protected String[] |
paramNames |
protected org.fit.layout.api.ParametrizedOperation.ValueType[] |
paramTypes |
protected boolean |
useConsistentStyle
Should the lines have a consistent visual style?
|
| Constructor and Description |
|---|
FindLineOperator() |
FindLineOperator(boolean useConsistentStyle,
float maxLineEmSpace) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.fit.layout.model.AreaTree atree) |
void |
apply(org.fit.layout.model.AreaTree atree,
org.fit.layout.model.Area root) |
String |
getDescription() |
String |
getId() |
float |
getMaxLineEmSpace() |
String |
getName() |
String[] |
getParamNames() |
org.fit.layout.api.ParametrizedOperation.ValueType[] |
getParamTypes() |
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) |
getParam, getParamRange, setParamprotected boolean useConsistentStyle
protected float maxLineEmSpace
protected final String[] paramNames
protected final org.fit.layout.api.ParametrizedOperation.ValueType[] paramTypes
public FindLineOperator()
public FindLineOperator(boolean useConsistentStyle,
float maxLineEmSpace)
public String getId()
public String getName()
public String getDescription()
public String[] getParamNames()
public org.fit.layout.api.ParametrizedOperation.ValueType[] getParamTypes()
public boolean getUseConsistentStyle()
public void setUseConsistentStyle(boolean useConsistentStyle)
public float getMaxLineEmSpace()
public void setMaxLineEmSpace(float maxLineEmSpace)
public void apply(org.fit.layout.model.AreaTree atree)
public void apply(org.fit.layout.model.AreaTree atree,
org.fit.layout.model.Area root)
protected void recursiveJoinAreas(AreaImpl root)
protected void joinAreas(AreaImpl a)
Copyright © 2016. All rights reserved.