|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.painter.HTMLSource
public class HTMLSource
HTML Painter is not a real painter. It does not define any logic for painting a report area. Instead it contains HTML tag that can be placed in generated HTML output for the reserved area. This can only be used in Style Report/EE HTML viewing mode.
| Constructor Summary | |
|---|---|
HTMLSource()
Create an empty html painter. |
|
HTMLSource(String html)
Create a painter for the specified html. |
|
| Method Summary | |
|---|---|
float |
getHeightAdjustment(ReportElement elem,
Dimension pd,
float bufy,
float bufw,
float bufh)
Get the adjustment on height if the height is adjusted to line boundary. |
String |
getHTML()
Get the HTML code to be used in this area. |
int |
getOriginOffset()
Get the origin offset. |
Dimension |
getPreferredSize()
Return the preferred size of this painter. |
Dimension |
getPreferredSize(float width)
Calculate the preferred size of the object representation. |
boolean |
isExpandable()
Check if this painter is expandable. |
boolean |
isScalable()
HTML source is not scalable. |
void |
paint(Graphics g,
int x,
int y,
int w,
int h)
Draw an empty box with label HTML Painter |
void |
paint(Graphics g,
int x,
int y,
int w,
int h,
float bufy,
float bufh)
Paint contents at the specified location. |
void |
setContext(ReportElement elem)
Set the element that is associated with this painter. |
void |
setHTML(String html)
Set the HTML code to be used in this area. |
void |
setOriginOffset(int offset)
Set the origin offset for rotated painter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLSource()
public HTMLSource(String html)
| Method Detail |
|---|
public void setHTML(String html)
public String getHTML()
public boolean isExpandable()
isExpandable in interface inetsoft.report.internal.ExpandablePainterpublic Dimension getPreferredSize()
getPreferredSize in interface Painterpublic Dimension getPreferredSize(float width)
getPreferredSize in interface inetsoft.report.internal.ExpandablePainterwidth - the maximum width of the painter.
public void paint(Graphics g,
int x,
int y,
int w,
int h)
paint in interface Painterg - graphical context.x - x coordinate of the left edge of the paint area.y - y coordinate of the upper edge of the paint area.w - area width.h - area height.
public void paint(Graphics g,
int x,
int y,
int w,
int h,
float bufy,
float bufh)
paint in interface inetsoft.report.internal.ExpandablePainterg - graphical context.x - x coordinate of the left edge of the paint area.y - y coordinate of the upper edge of the paint area.w - area width.h - area height.bufy - if the painter is drawn across pages, bufy is the height
already consumed in previous pages.bufh - is the height available on the current page.
public float getHeightAdjustment(ReportElement elem,
Dimension pd,
float bufy,
float bufw,
float bufh)
getHeightAdjustment in interface inetsoft.report.internal.ExpandablePainterpublic boolean isScalable()
isScalable in interface Painterpublic void setContext(ReportElement elem)
public void setOriginOffset(int offset)
public int getOriginOffset()
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||