Package com.mxgraph.util
Class mxImage
java.lang.Object
com.mxgraph.util.mxImage
- All Implemented Interfaces:
Serializable
,Cloneable
Implements a 2-dimensional point with double precision coordinates.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Holds the image width and height.private static final long
protected String
Holds the path or URL for the image.protected int
Holds the image width and height. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
src
Holds the path or URL for the image. -
width
protected int widthHolds the image width and height. -
height
protected int heightHolds the image width and height.
-
-
Constructor Details
-
mxImage
Constructs a new point at (0, 0).
-
-
Method Details
-
getSrc
- Returns:
- the src
-
setSrc
- Parameters:
src
- the src to set
-
getWidth
public int getWidth()- Returns:
- the width
-
setWidth
public void setWidth(int width) - Parameters:
width
- the width to set
-
getHeight
public int getHeight()- Returns:
- the height
-
setHeight
public void setHeight(int height) - Parameters:
height
- the height to set
-