com.swfm.mica.core
Class MiSize
java.lang.Object
com.swfm.mica.core.MiSize
- public class MiSize
- extends java.lang.Object
- Version:
- %I% %G%
- Author:
- Michael L. Davis
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
width
public double width
height
public double height
MiSize
public MiSize()
MiSize
public MiSize(double width,
double height)
MiSize
public MiSize(double widthAndHeight)
MiSize
public MiSize(MiSize size)
MiSize
public MiSize(MiBounds b)
getWidth
public double getWidth()
setWidth
public void setWidth(double w)
addWidth
public void addWidth(double w)
subtractWidth
public void subtractWidth(double w)
getHeight
public double getHeight()
setHeight
public void setHeight(double h)
addHeight
public void addHeight(double h)
subtractHeight
public void subtractHeight(double h)
zeroOut
public void zeroOut()
reset
public void reset()
copy
public void copy(MiSize size)
copy
public MiSize copy()
equals
public boolean equals(MiSize other)
isSmallerSizeThan
public boolean isSmallerSizeThan(MiSize other)
setSize
public void setSize(MiBounds bounds)
union
public void union(MiSize size)
union
public void union(MiBounds bounds)
addMargins
public MiSize addMargins(MiMargins margin)
addMargins
public void addMargins(double distance)
subtractMargins
public MiSize subtractMargins(MiMargins m)
setSize
public void setSize(double width,
double height)
accumulateMaxWidthAndHeight
public void accumulateMaxWidthAndHeight(MiSize size)
accumulateMaxWidthAndHeight
public void accumulateMaxWidthAndHeight(MiBounds bounds)
fitPreservingAspectRatio
public MiScale fitPreservingAspectRatio(MiSize container)
toString
public java.lang.String toString()
newSize
public static MiSize newSize()
freeSize
public static void freeSize(MiSize size)