|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.html.InetHtmlFactory
public class InetHtmlFactory
The factory to create views for model elements.
Constructor Summary | |
---|---|
InetHtmlFactory()
creates the factory |
|
InetHtmlFactory(PainterFactory painterFactory,
InetHtmlFontFactory fontFactory)
creates the factory with a given PainterFactory for a different-than-default paint strategy |
Method Summary | |
---|---|
javax.swing.text.View |
create(javax.swing.text.Element elem)
|
BoxView |
create(javax.swing.text.Element elem,
int displayValue)
Creates a view depending solely on the display value (as required by CSS). |
ImageView |
createImage(javax.swing.text.Element elem)
Creates an not initialized image view, which can use any element as image source |
BoxView |
createListItem(BoxView view,
int numericValue)
Creates a view to display list items |
VariableSpaceView |
createSpace(javax.swing.text.Element elem,
boolean isBreakChar)
Creates a white space view for the content or a part of the content of elem . |
VariableSpaceView |
createSpace(javax.swing.text.Element elem,
int paintMode)
Creates a white space to paint the background or the left or right edge of a inline content box |
void |
setUseTextAntiAlias(boolean useTextAntiAlias)
Sets the default text anti alias. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InetHtmlFactory()
public InetHtmlFactory(PainterFactory painterFactory, InetHtmlFontFactory fontFactory)
painterFactory
- PainterFactory for painters.fontFactory
- Factory to create new font objectsMethod Detail |
---|
public void setUseTextAntiAlias(boolean useTextAntiAlias)
useTextAntiAlias
- true to active text anti aliaspublic javax.swing.text.View create(javax.swing.text.Element elem)
create
in interface javax.swing.text.ViewFactory
public VariableSpaceView createSpace(javax.swing.text.Element elem, boolean isBreakChar)
elem
. This
view may represent a line break as well.
elem
- the model elementisBreakChar
- true, if this is a line-break
public VariableSpaceView createSpace(javax.swing.text.Element elem, int paintMode)
elem
- the model elementpaintMode
- the type of this view (which edge to paint)
BoxPainter.PAINT_MODE_LEFTEDGE
,
BoxPainter.PAINT_MODE_RIGHTEDGE
,
BoxPainter.PAINT_MODE_CENTER
public ImageView createImage(javax.swing.text.Element elem)
elem
- the element, to read the image source from
public BoxView create(javax.swing.text.Element elem, int displayValue)
elem
- the element to displaydisplayValue
- the DisplayValue
constant
public BoxView createListItem(BoxView view, int numericValue)
view
- the view of the underlying List box elementnumericValue
- the running number within the current list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |