|
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.ShadowPresenter
public class ShadowPresenter
The ShadowPresenter paints a string value inside a 3D shadow border.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
ShadowPresenter()
Create a default ShadowPresenter. |
|
ShadowPresenter(Font shadowfont)
Create a shadow presenter with specified font. |
|
| Method Summary | |
|---|---|
Color |
getBackground()
Get the background. |
String |
getDisplayName()
Get the display name of this presenter. |
Font |
getFont()
Get the label font. |
Dimension |
getPreferredSize(Object v)
Calculate the preferred size of the object representation. |
Color |
getShading()
Get the shading color. |
int |
getShadowWidth()
Get the shadow width. |
Color |
getTextColor()
Get the text color. |
boolean |
isFill()
Check if this presenter should always fill the entire area of a cell. |
boolean |
isPresenterOf(Class type)
Check if the presenter can handle this type of objects. |
boolean |
isPresenterOf(Object obj)
Check if the presenter can handle this particular object. |
boolean |
isRawDataRequired()
Determine if this Presenter requires raw (unformatted) data. |
void |
paint(Graphics g,
Object v,
int x,
int y,
int w,
int h)
Paint an object at the specified location. |
void |
setBackground(Color bg)
Set the background. |
void |
setFont(Font font)
Set the shadow font. |
void |
setShading(Color shading)
Set the shading color. |
void |
setShadowWidth(int shadow)
Set the shadow width. |
void |
setTextColor(Color textcolor)
Set the text color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShadowPresenter()
public ShadowPresenter(Font shadowfont)
shadowfont - font for shadow label.| Method Detail |
|---|
public void setFont(Font font)
setFont in interface Presenterfont - label font.public Font getFont()
public void setShading(Color shading)
shading - shading color.public Color getShading()
public void setTextColor(Color textcolor)
textcolor - color of the text.public Color getTextColor()
public void setShadowWidth(int shadow)
public int getShadowWidth()
public void paint(Graphics g,
Object v,
int x,
int y,
int w,
int h)
paint in interface Presenterg - graphical context.v - object value.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 Dimension getPreferredSize(Object v)
getPreferredSize in interface Presenterv - object value.
public boolean isPresenterOf(Class type)
isPresenterOf in interface Presentertype - object type.
public boolean isPresenterOf(Object obj)
if(type == null) {
return false;
}
return isPresenterOf(obj.getClass());
isPresenterOf in interface Presenterobj - object type.
public boolean isFill()
isFill in interface Presenterpublic String getDisplayName()
getDisplayName in interface Presenterpublic boolean isRawDataRequired()
isRawDataRequired in interface Presenterfalse.public void setBackground(Color bg)
setBackground in interface Presenterpublic Color getBackground()
|
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 | ||||||||