fi.hut.tml.xsmiles.csslayout
Class SizeRequirements

java.lang.Object
  extended byfi.hut.tml.xsmiles.csslayout.SizeRequirements
Direct Known Subclasses:
ColumnSpanSizeRequirements

public class SizeRequirements
extends java.lang.Object

Contains information about view's size requirements. All the requirements are view's content size requirements.

Author:
mpohja

Field Summary
protected  java.awt.Dimension maxSize
           
protected  java.awt.Dimension minSize
           
protected  java.awt.Dimension prefSize
           
protected  boolean widthDefined
           
 
Constructor Summary
SizeRequirements()
          Creates a new instance of SizeRequirements
SizeRequirements(org.w3c.dom.css.CSSStyleDeclaration style)
          Creates a new instance of SizeRequirements
 
Method Summary
 int getMaximumSpan(int axis)
           
 int getMinimumSpan(int axis)
           
 int getPreferredSpan(int axis)
           
 void increaseMaximumSpan(int axis, int span)
           
 void increaseMinimumSpan(int axis, int span)
           
 boolean isWidthDefined()
           
 void setMaximumSpan(java.awt.Dimension spans)
           
 void setMaximumSpan(int axis, int span)
           
 void setMinimumSpan(java.awt.Dimension spans)
           
 void setPreferredSpan(java.awt.Dimension spans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minSize

protected java.awt.Dimension minSize

maxSize

protected java.awt.Dimension maxSize

prefSize

protected java.awt.Dimension prefSize

widthDefined

protected boolean widthDefined
Constructor Detail

SizeRequirements

public SizeRequirements(org.w3c.dom.css.CSSStyleDeclaration style)
Creates a new instance of SizeRequirements


SizeRequirements

public SizeRequirements()
Creates a new instance of SizeRequirements

Method Detail

getPreferredSpan

public int getPreferredSpan(int axis)

getMinimumSpan

public int getMinimumSpan(int axis)

getMaximumSpan

public int getMaximumSpan(int axis)

setPreferredSpan

public void setPreferredSpan(java.awt.Dimension spans)

setMinimumSpan

public void setMinimumSpan(java.awt.Dimension spans)

setMaximumSpan

public void setMaximumSpan(java.awt.Dimension spans)

setMaximumSpan

public void setMaximumSpan(int axis,
                           int span)

increaseMaximumSpan

public void increaseMaximumSpan(int axis,
                                int span)

increaseMinimumSpan

public void increaseMinimumSpan(int axis,
                                int span)

isWidthDefined

public boolean isWidthDefined()


X-Smiles 1.2