com.ontimize.printing
Class Layer
java.lang.Object
com.ontimize.printing.Layer
- public class Layer
- extends java.lang.Object
Represents an HTML layer. It is used to provide an identifier and a size to
the element inside
|
Field Summary |
protected java.lang.String |
endTag
|
protected java.lang.String |
startTag
|
|
Constructor Summary |
Layer(java.lang.String id,
int width,
int height,
boolean pixels,
java.lang.String align)
Creates a new layer with the specified identifier, width and height. |
Layer(java.lang.String id,
int width,
int height,
boolean pixels,
java.lang.String align,
int leftMargin)
Creates a new layer using the specified identifier and size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
startTag
protected java.lang.String startTag
endTag
protected java.lang.String endTag
Layer
public Layer(java.lang.String id,
int width,
int height,
boolean pixels,
java.lang.String align)
- Creates a new layer with the specified identifier, width and height.
- Parameters:
id - width - height - pixels - If this is true then width and height are values in pixels in
other case they are a percentagealign -
Layer
public Layer(java.lang.String id,
int width,
int height,
boolean pixels,
java.lang.String align,
int leftMargin)
- Creates a new layer using the specified identifier and size.
- Parameters:
id - width - height - pixels - If this is true then width and height are values in pixels in
other case they are a percentagealign - leftMargin - Used to locate the layer at the left side of the page
getStartTag
public java.lang.String getStartTag()
getEndTag
public java.lang.String getEndTag()