Class mxImage

java.lang.Object
com.mxgraph.util.mxImage
All Implemented Interfaces:
Serializable, Cloneable

public class mxImage extends Object implements Serializable, Cloneable
Implements a 2-dimensional point with double precision coordinates.
See Also:
  • Field Details

    • src

      protected String src
      Holds the path or URL for the image.
    • width

      protected int width
      Holds the image width and height.
    • height

      protected int height
      Holds the image width and height.
  • Constructor Details

    • mxImage

      public mxImage(String src, int width, int height)
      Constructs a new point at (0, 0).
  • Method Details

    • getSrc

      public String getSrc()
      Returns:
      the src
    • setSrc

      public void setSrc(String src)
      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