Class DrawImageCommand


  • public class DrawImageCommand
    extends Command<java.awt.Image>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double height  
      private int imageHeight  
      private int imageWidth  
      private double width  
      private double x  
      private double y  
    • Constructor Summary

      Constructors 
      Constructor Description
      DrawImageCommand​(java.awt.Image image, int imageWidth, int imageHeight, double x, double y, double width, double height)  
    • Field Detail

      • imageWidth

        private final int imageWidth
      • imageHeight

        private final int imageHeight
      • x

        private final double x
      • y

        private final double y
      • width

        private final double width
      • height

        private final double height
    • Constructor Detail

      • DrawImageCommand

        public DrawImageCommand​(java.awt.Image image,
                                int imageWidth,
                                int imageHeight,
                                double x,
                                double y,
                                double width,
                                double height)
    • Method Detail

      • getImageWidth

        public int getImageWidth()
      • getImageHeight

        public int getImageHeight()
      • getX

        public double getX()
      • getY

        public double getY()
      • getWidth

        public double getWidth()
      • getHeight

        public double getHeight()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Command<java.awt.Image>