public class Dimension extends Dimension2D implements Serializable
| Constructor and Description |
|---|
Dimension() |
Dimension(Dimension d) |
Dimension(double width,
double height) |
Dimension(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getHeight() |
Dimension |
getSize() |
double |
getWidth() |
int |
hashCode() |
void |
setSize(Dimension d) |
void |
setSize(double width,
double height) |
void |
setSize(int width,
int height) |
String |
toString() |
clone, setSizepublic Dimension(Dimension d)
public Dimension()
public Dimension(double width,
double height)
public Dimension(int width,
int height)
public void setSize(int width,
int height)
public void setSize(Dimension d)
public void setSize(double width,
double height)
setSize in class Dimension2Dpublic Dimension getSize()
public double getHeight()
getHeight in class Dimension2Dpublic double getWidth()
getWidth in class Dimension2DCopyright © 2024. All rights reserved.