public class Size
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Size.Property |
| Constructor and Description |
|---|
Size()
Creates new Size object.
|
Size(double width,
double height)
Creates new Size object.
|
Size(double width,
double height,
java.lang.String widthUnit,
java.lang.String heightUnit)
Creates new Size object.
|
Size(Map map)
Deprecated.
|
Size(Map map,
double width,
double height)
Deprecated.
|
Size(Map map,
double width,
double height,
java.lang.String widthUnit,
java.lang.String heightUnit)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected Size |
clone() |
protected com.teamdev.jxmaps.internal.JSValue |
createJSValue(Map map) |
boolean |
equals(Size other)
Compares two Sizes.
|
protected static Size |
fromJSValue(com.teamdev.jxmaps.internal.JSValue value) |
double |
getHeight()
Returns value of height property.
|
double |
getWidth()
Returns value of width property
|
void |
setHeight(double height)
Sets new value for height property
|
void |
setWidth(double width)
Sets new value for width property
|
java.lang.String |
toString()
Returns a string representation of this Size.
|
public Size()
@Deprecated public Size(Map map)
map - owner Map object@Deprecated public Size(Map map, double width, double height)
map - owner Map objectwidth - initial widthheight - initial heightpublic Size(double width,
double height)
width - initial widthheight - initial height@Deprecated public Size(Map map, double width, double height, java.lang.String widthUnit, java.lang.String heightUnit)
map - owner Map objectwidth - initial widthheight - initial heightwidthUnit - units for widthheightUnit - units for heightpublic Size(double width,
double height,
java.lang.String widthUnit,
java.lang.String heightUnit)
width - initial widthheight - initial heightwidthUnit - units for widthheightUnit - units for heightpublic boolean equals(Size other)
other - object to compare withpublic java.lang.String toString()
toString in class java.lang.Objectpublic double getHeight()
Contains the height along the y-axis, in pixels.
setHeight(double)public double getWidth()
Contains the width along the x-axis, in pixels.
setWidth(double)public void setWidth(double width)
width - new property valuegetWidth()public void setHeight(double height)
height - new property valuegetHeight()protected static Size fromJSValue(com.teamdev.jxmaps.internal.JSValue value)
protected Size clone()
clone in class java.lang.Objectprotected com.teamdev.jxmaps.internal.JSValue createJSValue(Map map)