public abstract class AbstractSize extends Object implements Size
Size interface.| Constructor and Description |
|---|
AbstractSize()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Length |
getHeight()
This method gets the height of this object.
|
Length |
getMaximumHeight()
This method gets the maximum height of this object.
|
Length |
getMaximumWidth()
This method gets the maximum width of this object.
|
Length |
getMinimumHeight()
This method gets the minimum height of this object.
|
Length |
getMinimumWidth()
This method gets the minimum width of this object.
|
Length |
getWidth()
This method gets the width of this object.
|
void |
setHeight(Length height)
This method sets the
height of this object. |
void |
setHeightInPercent(double heightInPercent)
|
void |
setHeightInPixel(double heightInPixel)
|
void |
setMaximumHeight(Length maxHeight)
This method sets the
maximum height of this object. |
void |
setMaximumSize(Length maxWidth,
Length maxHeight)
This method sets the size of this object.
|
void |
setMaximumWidth(Length maxWidth)
This method sets the
maximum width of this object. |
void |
setMinimumHeight(Length minHeight)
This method sets the
minimum height of this object. |
void |
setMinimumSize(Length minWidth,
Length minHeight)
This method sets the size of this object.
|
void |
setMinimumWidth(Length minWidth)
This method sets the
minimum width of this object. |
void |
setSize(double width,
double height,
LengthUnit unit)
This method sets the size of this object.
|
void |
setSize(Length width,
Length height)
This method sets the size of this object.
|
void |
setWidth(Length width)
This method sets the
width of this object. |
void |
setWidthInPercent(double widthInPercent)
|
void |
setWidthInPixel(double widthInPixel)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeightInPixel, getWidthInPixelsetLengthgetLengthpublic Length getWidth()
getWidth in interface AttributeReadSizeLength.ZERO if undefined (NOT set).public void setWidth(Length width)
width of this object.setWidth in interface AttributeWriteSizewidth - is the new width.public void setWidthInPixel(double widthInPixel)
setWidthInPixel in interface AttributeWriteSizeAdvancedwidthInPixel - is the new width in pixel.public void setWidthInPercent(double widthInPercent)
setWidthInPercent in interface AttributeWriteSizeAdvancedwidthInPercent - is the new width in percent.public Length getHeight()
getHeight in interface AttributeReadSizeLength.ZERO if undefined (NOT set).public void setHeight(Length height)
height of this object.setHeight in interface AttributeWriteSizeheight - is the new height.public void setHeightInPercent(double heightInPercent)
setHeightInPercent in interface AttributeWriteSizeAdvancedheightInPercent - is the new height in percent.public void setHeightInPixel(double heightInPixel)
setHeightInPixel in interface AttributeWriteSizeAdvancedheightInPixel - is the new height in pixel.public Length getMinimumWidth()
getMinimumWidth in interface AttributeReadMinimumSizenull if undefined (NOT set).public void setMinimumWidth(Length minWidth)
minimum width of this object.setMinimumWidth in interface AttributeWriteMinimumSizeminWidth - is the new minimum width.public Length getMinimumHeight()
getMinimumHeight in interface AttributeReadMinimumSizenull if undefined (NOT set).public void setMinimumHeight(Length minHeight)
minimum height of this object.setMinimumHeight in interface AttributeWriteMinimumSizeminHeight - is the new minimum height.public Length getMaximumWidth()
getMaximumWidth in interface AttributeReadMaximumSizenull if undefined (NOT set).public void setMaximumWidth(Length maxWidth)
maximum width of this object.setMaximumWidth in interface AttributeWriteMaximumSizemaxWidth - is the new maximum width.public Length getMaximumHeight()
getMaximumHeight in interface AttributeReadMaximumSizenull if undefined (NOT set).public void setMaximumHeight(Length maxHeight)
maximum height of this object.setMaximumHeight in interface AttributeWriteMaximumSizemaxHeight - is the new maximum height.public void setSize(double width,
double height,
LengthUnit unit)
setSize in interface AttributeWriteSizeAdvancedwidth - is the new width of the object.height - is the new height of the object.unit - is the unit of width
and height.AttributeReadSize.getWidth(),
AttributeReadSize.getHeight()public void setSize(Length width, Length height)
setSize in interface AttributeWriteSizewidth - is the new width of the object.height - is the new height of the object.AttributeReadSize.getWidth(),
AttributeReadSize.getHeight()public void setMinimumSize(Length minWidth, Length minHeight)
setMinimumSize in interface AttributeWriteMinimumSizeminWidth - is the new width of the object.minHeight - is the new height of the object.AttributeReadMinimumSize.getMinimumWidth(),
AttributeReadMinimumSize.getMinimumHeight()public void setMaximumSize(Length maxWidth, Length maxHeight)
setMaximumSize in interface AttributeWriteMaximumSizemaxWidth - is the new width of the object.maxHeight - is the new height of the object.AttributeReadMaximumSize.getMaximumWidth(),
AttributeReadMaximumSize.getMaximumHeight()Copyright © 2001–2016 mmm-Team. All rights reserved.