public class HTMLOutputOperator
extends org.fit.layout.impl.BaseOperator
| Modifier and Type | Class and Description |
|---|---|
protected class |
HTMLOutputOperator.Style
Element style representation.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
boxTreeOnly
Should we produce the box tree only or should we rely on the area tree?
|
protected String |
filename
Path to the output file/
|
protected boolean |
produceHeader
Should we produce the HTML header and footer?
|
protected static String |
UNIT
Default length unit
|
| Constructor and Description |
|---|
HTMLOutputOperator() |
HTMLOutputOperator(String filename,
boolean produceHeader,
boolean boxTreeOnly) |
| 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 |
colorString(String spec)
Converts the CSS specification rgb(r,g,b) to #rrggbb
|
List<org.fit.layout.api.Parameter> |
defineParams() |
void |
dumpTo(org.fit.layout.model.AreaTree tree,
PrintWriter out)
Formats the complete area tree to an output stream.
|
void |
dumpTo(org.fit.layout.model.Page page,
PrintWriter out)
Formats the complete box tree to an output stream.
|
protected String |
getAreaStyle(org.fit.layout.model.Area a) |
protected HTMLOutputOperator.Style |
getBoxStyle(org.fit.layout.model.Box box,
int px,
int py) |
protected HTMLOutputOperator.Style |
getBoxStyle(org.fit.layout.model.ContentRect parent,
org.fit.layout.model.Box box) |
boolean |
getBoxTreeOnly() |
String |
getCategory() |
String |
getDescription() |
String |
getFilename() |
String |
getId() |
String |
getName() |
boolean |
getProduceHeader() |
void |
setBoxTreeOnly(boolean boxTreeOnly) |
void |
setFilename(String filename) |
void |
setProduceHeader(boolean produceHeader) |
getParam, getParams, setParamprotected static final String UNIT
protected boolean produceHeader
protected boolean boxTreeOnly
protected String filename
public HTMLOutputOperator()
public HTMLOutputOperator(String filename, boolean produceHeader, boolean boxTreeOnly)
public String getId()
public String getName()
public String getDescription()
public String getCategory()
public List<org.fit.layout.api.Parameter> defineParams()
defineParams in class org.fit.layout.impl.BaseParametrizedOperationpublic boolean getProduceHeader()
public void setProduceHeader(boolean produceHeader)
public boolean getBoxTreeOnly()
public void setBoxTreeOnly(boolean boxTreeOnly)
public String getFilename()
public void setFilename(String filename)
public void apply(org.fit.layout.model.AreaTree atree)
public void apply(org.fit.layout.model.AreaTree atree,
org.fit.layout.model.Area root)
public void dumpTo(org.fit.layout.model.AreaTree tree,
PrintWriter out)
tree - the area tree to be printedout - a writer to be used for outputpublic void dumpTo(org.fit.layout.model.Page page,
PrintWriter out)
tree - the area tree to be printedout - a writer to be used for outputprotected String getAreaStyle(org.fit.layout.model.Area a)
protected HTMLOutputOperator.Style getBoxStyle(org.fit.layout.model.ContentRect parent, org.fit.layout.model.Box box)
protected HTMLOutputOperator.Style getBoxStyle(org.fit.layout.model.Box box, int px, int py)
Copyright © 2018. All rights reserved.