|
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.PresenterPainter
public class PresenterPainter
The PersenterPainter combines a Presenter object with an object the presenter presents into a self-contained painter object.
| Constructor Summary | |
|---|---|
PresenterPainter(Object v,
Presenter p)
Create a painter from a presenter and a value it presents. |
|
PresenterPainter(Presenter p)
Create a painter from a presenter and a value it presents. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone the painter. |
boolean |
equals(Object obj)
Check if equals another object |
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. |
Object |
getObject()
Get the object to render in this painter. |
Dimension |
getPreferredSize()
Return the preferred size of this painter. |
Dimension |
getPreferredSize(float width)
Calculate the preferred size of the object representation. |
Presenter |
getPresenter()
Get the presenter used in this painter. |
int |
hashCode()
Get hash code of the presenter painter. |
boolean |
isExpandable()
Check if this painter is expandable. |
boolean |
isPresenterOf(Class type)
Check if the presenter can handle this type of objects. |
boolean |
isScalable()
Presenter can be scaled. |
boolean |
isScaleImage()
Presenter can be scaled when write image on the portal side. |
void |
paint(Graphics g,
int x,
int y,
int w,
int h)
Paint contents at the specified location. |
void |
paint(Graphics g,
int x,
int y,
int w,
int h,
float bufy,
float bufh)
Paint contents at the specified location. |
void |
setObject(Object v)
Set the object to render in this painter. |
String |
toString()
This is necessary if the presenter is used in the header row so the original value would be returned as a string. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PresenterPainter(Presenter p)
p - presenter defaults how the value is painted.
public PresenterPainter(Object v,
Presenter p)
v - value to paint.p - presenter defaults how the value is painted.| Method Detail |
|---|
public Presenter getPresenter()
public void setObject(Object v)
public Object getObject()
public boolean isPresenterOf(Class type)
type - object type.
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 Dimension getPreferredSize()
getPreferredSize in interface Painterpublic Dimension getPreferredSize(float width)
getPreferredSize in interface inetsoft.report.internal.ExpandablePainterwidth - the maximum width of the painter.
public boolean isScalable()
isScalable in interface Painterpublic boolean isExpandable()
isExpandable in interface inetsoft.report.internal.ExpandablePainterpublic Object clone()
clone in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean isScaleImage()
|
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 | ||||||||