|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.html.views.BackgroundPainter
com.inet.html.views.BoxPainter
com.inet.html.views.TableBoxPainter
public class TableBoxPainter
This is a modification of the normal box painter. It has to be used for table with collapsing borders to draw borders outside the cell.
Field Summary |
---|
Fields inherited from interface com.inet.html.views.IBoxPainter |
---|
EMPTY_INSETS, PAINT_MODE_CENTER, PAINT_MODE_LEFTEDGE, PAINT_MODE_NORMAL, PAINT_MODE_RIGHTEDGE |
Constructor Summary | |
---|---|
TableBoxPainter(BoxView view)
Creates table box a painter for the given table cell view |
Method Summary | |
---|---|
java.awt.Insets |
getPaddingDefined()
Flags which of the padding sides are defined by css and which may be set by the table. |
java.awt.Insets |
getPaintInsets()
Returns the paint insets of the table box |
void |
paint(java.awt.Graphics g,
int x,
int y,
int width,
int height,
int paintMode,
BoxView paintRef)
This method is overridden to do nothing. |
void |
paintBorders(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints ONLY the Borders of this box. |
void |
setCollapseMode(boolean isCollapseMode)
Set whether border-collapse is enabled |
Methods inherited from class com.inet.html.views.BackgroundPainter |
---|
getBackgroundValue, getElement, getLastPaint, getReferenceView, isInitDone, paintBackground, setBackgroundValue, setInitDone, setLastPaint, setReferenceView |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.inet.html.views.IBackgroundPainter |
---|
getBackgroundValue, getElement, getLastPaint, getReferenceView, isInitDone, paintBackground, setBackgroundValue, setInitDone, setLastPaint, setReferenceView |
Constructor Detail |
---|
public TableBoxPainter(BoxView view)
view
- the table cellMethod Detail |
---|
public java.awt.Insets getPaintInsets()
public void paintBorders(java.awt.Graphics g, int x, int y, int width, int height)
g
- The graphics to paint onx
- The x-coordinatey
- The y-coordinatewidth
- The width of the Boxheight
- The height of the boxpublic void paint(java.awt.Graphics g, int x, int y, int width, int height, int paintMode, BoxView paintRef)
paint
in interface IBoxPainter
paint
in class BoxPainter
g
- Graphics, not usedx
- X-coordinate, not usedy
- Y-coordinate, not usedwidth
- Width of the box, not usedheight
- Height of the box, not usedpaintMode
- the border paint modepaintRef
- the coordinate reference for inline background imagesIBoxPainter.PAINT_MODE_NORMAL
,
IBoxPainter.PAINT_MODE_LEFTEDGE
,
IBoxPainter.PAINT_MODE_CENTER
,
IBoxPainter.PAINT_MODE_RIGHTEDGE
public void setCollapseMode(boolean isCollapseMode)
isCollapseMode
- the border-collapse flagpublic java.awt.Insets getPaddingDefined()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |