fi.hut.tml.xsmiles.csslayout.view
Interface View

All Known Implementing Classes:
BaseView

public interface View

Author:
honkkis

Field Summary
static int X_AXIS
           
static int Y_AXIS
           
 
Method Summary
 void addChildView(View v)
           
 View createChildView(org.w3c.dom.Node child, org.w3c.dom.Node parent)
           
 void createChildViews(org.w3c.dom.Node parent)
           
 void doLayout()
          do the layout for this and its children
 int getAbsolutePositionX()
           
 int getAbsolutePositionY()
           
 java.util.Vector getChildren()
           
 CSSRenderer getCSSRenderer()
           
 org.w3c.dom.Node getDOMElement()
           
 View getFirstChild()
           
 int getMaximumSpan(int axis)
          get maximum span of this view that corresponds to an axis
 int getMinimumSpan(int axis)
          get minimum span of this view that corresponds to an axis
 View getParentView()
           
 int getPreferredSpan(int axis)
          get maximum span of this view that corresponds to an axis
 java.awt.Rectangle getRectangle()
           
 SizeRequirements getSizeRequirements()
           
 org.w3c.dom.css.CSSStyleDeclaration getStyle()
           
 int getViewHeight()
           
 int getViewWidth()
           
 boolean hasAbsoluteChildren()
          This is called by XSmilesVisualElement when a node is removed from the DOM, let's remove all components from view
 boolean hasAbsolutePosition()
          Returns true if view is absolute positioned.
 void paint(java.awt.Graphics g)
          paints this view
 void removeChild(View child)
           
 void removeChildren()
           
 void removeFromTree()
           
 void repaint(java.awt.Image img)
           
 void repaintDocument()
           
 void repaintDocument(View view)
           
 void repaintView()
           
 void setAbsolutePosition(int x, int y)
          set the absolute position of this view, only the parent is allowed to call this
 void setParentView(View parent)
           
 void setSizeRequirements()
           
 void setStyle(org.w3c.dom.css.CSSStyleDeclaration s)
           
 void viewRemoved()
          this method is called when a view is removed from the hierarchy.
 

Field Detail

X_AXIS

public static final int X_AXIS
See Also:
Constant Field Values

Y_AXIS

public static final int Y_AXIS
See Also:
Constant Field Values
Method Detail

paint

public void paint(java.awt.Graphics g)
paints this view


getMinimumSpan

public int getMinimumSpan(int axis)
get minimum span of this view that corresponds to an axis


getMaximumSpan

public int getMaximumSpan(int axis)
get maximum span of this view that corresponds to an axis


getPreferredSpan

public int getPreferredSpan(int axis)
get maximum span of this view that corresponds to an axis


getViewWidth

public int getViewWidth()

getViewHeight

public int getViewHeight()

getStyle

public org.w3c.dom.css.CSSStyleDeclaration getStyle()

setAbsolutePosition

public void setAbsolutePosition(int x,
                                int y)
set the absolute position of this view, only the parent is allowed to call this


getAbsolutePositionX

public int getAbsolutePositionX()

getAbsolutePositionY

public int getAbsolutePositionY()

getRectangle

public java.awt.Rectangle getRectangle()

hasAbsolutePosition

public boolean hasAbsolutePosition()
Returns true if view is absolute positioned.


getParentView

public View getParentView()

setParentView

public void setParentView(View parent)

getDOMElement

public org.w3c.dom.Node getDOMElement()

getChildren

public java.util.Vector getChildren()

viewRemoved

public void viewRemoved()
this method is called when a view is removed from the hierarchy. for instance, components can then be removed from the containers


doLayout

public void doLayout()
do the layout for this and its children


addChildView

public void addChildView(View v)

removeFromTree

public void removeFromTree()

removeChild

public void removeChild(View child)

removeChildren

public void removeChildren()

repaintDocument

public void repaintDocument()

repaintDocument

public void repaintDocument(View view)

repaintView

public void repaintView()

createChildViews

public void createChildViews(org.w3c.dom.Node parent)

createChildView

public View createChildView(org.w3c.dom.Node child,
                            org.w3c.dom.Node parent)

setSizeRequirements

public void setSizeRequirements()

setStyle

public void setStyle(org.w3c.dom.css.CSSStyleDeclaration s)

getSizeRequirements

public SizeRequirements getSizeRequirements()

getFirstChild

public View getFirstChild()

getCSSRenderer

public CSSRenderer getCSSRenderer()

repaint

public void repaint(java.awt.Image img)

hasAbsoluteChildren

public boolean hasAbsoluteChildren()
This is called by XSmilesVisualElement when a node is removed from the DOM, let's remove all components from view



X-Smiles 1.2