fi.hut.tml.xsmiles.csslayout.view
Class TextView

java.lang.Object
  extended byfi.hut.tml.xsmiles.csslayout.view.BaseView
      extended byfi.hut.tml.xsmiles.csslayout.view.TextView
All Implemented Interfaces:
View

public class TextView
extends BaseView

Author:
mpohja

Nested Class Summary
 
Nested classes inherited from class fi.hut.tml.xsmiles.csslayout.view.BaseView
BaseView.ViewDimensions
 
Field Summary
static short ALIGNSUB
           
static short ALIGNSUPER
           
protected  java.awt.Color color
           
protected  java.awt.Font font
           
static short LINETHROUGH
           
protected  java.lang.String text
           
static short UNDERLINE
           
 
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
 
Constructor Summary
TextView(CSSRenderer r, org.w3c.dom.Node node, View parent)
          Creates a new instance of TextView
 
Method Summary
 void doLayout()
          do, or redo layout for this and children
 void drawBorder(java.awt.Graphics g)
           
 java.awt.Font getFont()
           
 org.w3c.dom.css.CSSStyleDeclaration getStyle()
           
 java.lang.String getText()
           
 void paint(java.awt.Graphics g)
          paints this view
 void setSizeRequirements()
           
 void setStyle(org.w3c.dom.css.CSSStyleDeclaration s)
           
 void setText(java.lang.String atext)
           
 
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
 

Field Detail

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
Constructor Detail

TextView

public TextView(CSSRenderer r,
                org.w3c.dom.Node node,
                View parent)
Creates a new instance of TextView

Method Detail

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