|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.geom.YDimension
This class represents the size of an object. An instance of this class implements the immutable design pattern.
Field Summary | |
double |
height
the height of the dimension |
double |
width
the width of the dimension |
Constructor Summary | |
YDimension(double width,
double height)
Creates a new YDimension2D object for given size. |
Method Summary | |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
Tests a dimension to equality to another dimension. |
double |
getHeight()
Get the height of the dimension object. |
double |
getWidth()
Get the width of the dimension object. |
int |
hashCode()
|
String |
toString()
Returns the size in the form: "W: width H: heigth" |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public final double width
public final double height
Constructor Detail |
public YDimension(double width, double height)
Method Detail |
public final double getWidth()
public final double getHeight()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |