fi.hut.tml.xsmiles.csslayout.view
Class TextView
java.lang.Object
fi.hut.tml.xsmiles.csslayout.view.BaseView
fi.hut.tml.xsmiles.csslayout.view.TextView
- All Implemented Interfaces:
- View
- public class TextView
- extends BaseView
- Author:
- mpohja
| Fields inherited from class fi.hut.tml.xsmiles.csslayout.view.BaseView |
absoluteChildViews, absolutePosition, backImage, bgColor, border, childViews, closeFloat, dimensions, domElement, floatLeft, floatRight, hasRelativeHeight, hasRelativeWidth, parent, posX, posY, relativeChildViews, relativePosition, renderer, sizeRequirements, style, visible, zoom |
| Fields inherited from interface fi.hut.tml.xsmiles.csslayout.view.View |
X_AXIS, Y_AXIS |
| Methods inherited from class fi.hut.tml.xsmiles.csslayout.view.BaseView |
addAbsoluteChildView, addChildView, addRelativeChildView, addView, calculateIntersection, createChildView, createChildViews, createComponentView, createView, dump, findContainingBlock, getAbsolutePositionX, getAbsolutePositionY, getChildren, getChildView, getCSSRenderer, getDimensions, getDOMElement, getFirstChild, getMaximumSpan, getMinimumSpan, getParentView, getPreferredSpan, getRectangle, getSizeRequirements, getText, getViewAtPoint, getViewHeight, getViewWidth, handleRelativeView, hasAbsoluteChildren, hasAbsolutePosition, hasRelativePosition, insertBefore, isInTable, isLeftFloated, isRightFloated, moveChildViews, moveView, notifyViewRemovedRecursively, paintBackground, paintBorder, removeChild, removeChildren, removeFromTree, repaint, repaintDocument, repaintDocument, repaintView, setAbsoluteCoordinates, setAbsolutePosition, setContentHeight, setContentWidth, setMaxContentSize, setParentView, setRelativePosition, setViewHeight, setViewWidth, testValue, viewRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text
protected java.lang.String text
font
protected java.awt.Font font
color
protected java.awt.Color color
UNDERLINE
public static short UNDERLINE
LINETHROUGH
public static short LINETHROUGH
ALIGNSUB
public static short ALIGNSUB
ALIGNSUPER
public static short ALIGNSUPER
TextView
public TextView(CSSRenderer r,
org.w3c.dom.Node node,
View parent)
- Creates a new instance of TextView
setText
public void setText(java.lang.String atext)
getText
public java.lang.String getText()
getFont
public java.awt.Font getFont()
setStyle
public void setStyle(org.w3c.dom.css.CSSStyleDeclaration s)
- Specified by:
setStyle in interface View- Overrides:
setStyle in class BaseView
getStyle
public org.w3c.dom.css.CSSStyleDeclaration getStyle()
- Specified by:
getStyle in interface View- Overrides:
getStyle in class BaseView
setSizeRequirements
public void setSizeRequirements()
- Specified by:
setSizeRequirements in interface View- Overrides:
setSizeRequirements in class BaseView
doLayout
public void doLayout()
- do, or redo layout for this and children
- Specified by:
doLayout in interface View- Overrides:
doLayout in class BaseView
paint
public void paint(java.awt.Graphics g)
- paints this view
- Specified by:
paint in interface View- Overrides:
paint in class BaseView
drawBorder
public void drawBorder(java.awt.Graphics g)
X-Smiles 1.2