|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBackgroundPainter
The background painter is the implementation of the CSS 'background' attribute. It defines how to draw the background of a box or table.
Method Summary | |
---|---|
com.inet.html.parser.converter.ColorValue |
getBackgroundValue()
Returns the background color, may be null |
javax.swing.text.Element |
getElement()
Returns the element which is the value source for this painter |
java.awt.Rectangle |
getLastPaint()
Returns the coordinates of the last paint operation |
BoxView |
getReferenceView()
Returns the view this painter is bound to, will not be null |
boolean |
isInitDone()
Returns true if a table layout has modified this painter |
boolean |
isRelevant()
Returns true if this box painter has any visible effect (note: padding is visible as well!) |
void |
paintBackground(java.awt.Graphics g,
int x,
int y,
int width,
int height,
BoxView currentView)
Paints the background fill and/or image |
void |
setBackgroundValue(com.inet.html.parser.converter.ColorValue backgroundValue)
Set the background color of this painter, may be null |
void |
setInitDone()
To be used in table context. |
void |
setLastPaint(java.awt.Rectangle lastPaint)
Sets the coordinates of the last paint operation |
void |
setReferenceView(BoxView view)
Sets the view which is the first view to be painted by this painter. |
Method Detail |
---|
void paintBackground(java.awt.Graphics g, int x, int y, int width, int height, BoxView currentView)
g
- the graphics to draw on, must not be nullx
- the x offset in pixel relative to the graphicsy
- the y offset in pixel relative to the graphicswidth
- the width to draw in pixelheight
- the height to draw in pixelcurrentView
- the view for which the background is painted, required to create seamless BG-ImagesBoxView getReferenceView()
boolean isInitDone()
void setInitDone()
com.inet.html.parser.converter.ColorValue getBackgroundValue()
void setBackgroundValue(com.inet.html.parser.converter.ColorValue backgroundValue)
backgroundValue
- the background color of this painter, may be nullvoid setReferenceView(BoxView view)
view
- the coordinate root for this painterjavax.swing.text.Element getElement()
java.awt.Rectangle getLastPaint()
void setLastPaint(java.awt.Rectangle lastPaint)
lastPaint
- the coordinates of the last paint operationboolean isRelevant()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |