fi.hut.tml.xsmiles.csslayout.view
Class BaseView.ViewDimensions

java.lang.Object
  extended byfi.hut.tml.xsmiles.csslayout.view.BaseView.ViewDimensions
Enclosing class:
BaseView

protected class BaseView.ViewDimensions
extends java.lang.Object

Contains all the dimensions of a view.


Field Summary
protected  boolean heightDefined
           
protected  boolean widthDefined
           
 
Constructor Summary
BaseView.ViewDimensions()
           
BaseView.ViewDimensions(org.w3c.dom.css.CSSStyleDeclaration style)
           
 
Method Summary
 int getBorderBottomWidth()
           
 int getBorderLeftWidth()
           
 java.awt.Rectangle getBorderRectangle()
           
 int getBorderRightWidth()
           
 int getBorderTopWidth()
           
 int getBottomPadding()
           
 int getContentOrigin(int axis)
           
 int getLeftMargin()
           
 int getLeftOuterSize()
           
 int getLeftPadding()
           
 java.awt.Rectangle getMarginRectangle()
           
 int getMaxContentSize(int axis)
           
 int getOuterSize(int axis)
           
 int getTopMargin()
           
 int getTopOuterSize()
           
 int getTopPadding()
           
 int getViewHeight()
           
 int getViewWidth()
           
 int getWidthPercentage()
           
 int getXPadding()
           
 int getYPadding()
           
 boolean isHeightDefined()
           
 boolean isWidthDefined()
           
 void setContentHeight(int h)
           
 void setContentWidth(int w)
           
 void setLeftMargin(int value)
           
 void setLeftPadding(int value)
           
 void setViewHeight(int h)
           
 void setViewWidth(int w)
           
 void updateViewDimensions(org.w3c.dom.css.CSSStyleDeclaration style)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

widthDefined

protected boolean widthDefined

heightDefined

protected boolean heightDefined
Constructor Detail

BaseView.ViewDimensions

public BaseView.ViewDimensions()

BaseView.ViewDimensions

public BaseView.ViewDimensions(org.w3c.dom.css.CSSStyleDeclaration style)
Method Detail

updateViewDimensions

public void updateViewDimensions(org.w3c.dom.css.CSSStyleDeclaration style)

getViewWidth

public int getViewWidth()

getViewHeight

public int getViewHeight()

setContentWidth

public void setContentWidth(int w)

setContentHeight

public void setContentHeight(int h)

setViewWidth

public void setViewWidth(int w)

setViewHeight

public void setViewHeight(int h)

getWidthPercentage

public int getWidthPercentage()

getMaxContentSize

public int getMaxContentSize(int axis)

getXPadding

public int getXPadding()

getYPadding

public int getYPadding()

getTopPadding

public int getTopPadding()

getBottomPadding

public int getBottomPadding()

getLeftPadding

public int getLeftPadding()

setLeftPadding

public void setLeftPadding(int value)

setLeftMargin

public void setLeftMargin(int value)

getOuterSize

public int getOuterSize(int axis)

getContentOrigin

public int getContentOrigin(int axis)

getMarginRectangle

public java.awt.Rectangle getMarginRectangle()

getBorderRectangle

public java.awt.Rectangle getBorderRectangle()

getLeftMargin

public int getLeftMargin()

getTopMargin

public int getTopMargin()

getLeftOuterSize

public int getLeftOuterSize()

getTopOuterSize

public int getTopOuterSize()

getBorderLeftWidth

public int getBorderLeftWidth()

getBorderRightWidth

public int getBorderRightWidth()

getBorderTopWidth

public int getBorderTopWidth()

getBorderBottomWidth

public int getBorderBottomWidth()

isWidthDefined

public boolean isWidthDefined()

isHeightDefined

public boolean isHeightDefined()


X-Smiles 1.2