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, wait
getHeightInPixel, getWidthInPixel
setLength
getLength
public Length getWidth()
getWidth
in interface AttributeReadSize
Length.ZERO
if undefined (NOT set).public void setWidth(Length width)
width
of this object.setWidth
in interface AttributeWriteSize
width
- is the new width
.public void setWidthInPixel(double widthInPixel)
setWidthInPixel
in interface AttributeWriteSizeAdvanced
widthInPixel
- is the new width
in pixel
.public void setWidthInPercent(double widthInPercent)
setWidthInPercent
in interface AttributeWriteSizeAdvanced
widthInPercent
- is the new width
in percent
.public Length getHeight()
getHeight
in interface AttributeReadSize
Length.ZERO
if undefined (NOT set).public void setHeight(Length height)
height
of this object.setHeight
in interface AttributeWriteSize
height
- is the new height
.public void setHeightInPercent(double heightInPercent)
setHeightInPercent
in interface AttributeWriteSizeAdvanced
heightInPercent
- is the new height
in percent
.public void setHeightInPixel(double heightInPixel)
setHeightInPixel
in interface AttributeWriteSizeAdvanced
heightInPixel
- is the new height
in pixel
.public Length getMinimumWidth()
getMinimumWidth
in interface AttributeReadMinimumSize
null
if undefined (NOT set).public void setMinimumWidth(Length minWidth)
minimum width
of this object.setMinimumWidth
in interface AttributeWriteMinimumSize
minWidth
- is the new minimum width
.public Length getMinimumHeight()
getMinimumHeight
in interface AttributeReadMinimumSize
null
if undefined (NOT set).public void setMinimumHeight(Length minHeight)
minimum height
of this object.setMinimumHeight
in interface AttributeWriteMinimumSize
minHeight
- is the new minimum height
.public Length getMaximumWidth()
getMaximumWidth
in interface AttributeReadMaximumSize
null
if undefined (NOT set).public void setMaximumWidth(Length maxWidth)
maximum width
of this object.setMaximumWidth
in interface AttributeWriteMaximumSize
maxWidth
- is the new maximum width
.public Length getMaximumHeight()
getMaximumHeight
in interface AttributeReadMaximumSize
null
if undefined (NOT set).public void setMaximumHeight(Length maxHeight)
maximum height
of this object.setMaximumHeight
in interface AttributeWriteMaximumSize
maxHeight
- is the new maximum height
.public void setSize(double width, double height, LengthUnit unit)
setSize
in interface AttributeWriteSizeAdvanced
width
- 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 AttributeWriteSize
width
- 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 AttributeWriteMinimumSize
minWidth
- 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 AttributeWriteMaximumSize
maxWidth
- 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.