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, setSize
public 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 Dimension2D
public Dimension getSize()
public double getHeight()
getHeight
in class Dimension2D
public double getWidth()
getWidth
in class Dimension2D
Copyright © 1998–2018. All rights reserved.