Interface ElementImage

All Superinterfaces:
Element, InteractionSource
All Known Implementing Classes:
ElementImage

public interface ElementImage extends Element

Title: ElementImage

Description: Draws a circle at its position with the given size.

Because an image is essentialy a 2D object, it doesn't behave completely as a 3D object. Thus, its center will be affected by transformations of the element, BUT ITS SIZE WON'T. Moreover, in 3D visualizations, the maximum of sizeX and sizeY is used for its horizontal size. In all other views, the corresponding size is used.

Images can be rotated.

Version:
March 2005
Author:
Francisco Esquembre
  • Method Details

    • setImageFile

      void setImageFile(String file)
      Sets the image file to be displayed
      Parameters:
      text - the String
    • getImageFile

      String getImageFile()
      Gets the image displayed
    • setImage

      void setImage(Image image)
      Sets the image to be displayed
      Parameters:
      image - java.awt.Image
    • setRotationAngle

      void setRotationAngle(double angle)
      Sets the rotation angle for the image. Default is 0.
      Parameters:
      angle - the rotation angle
    • getRotationAngle

      double getRotationAngle()
      Gets the rotation angle for the image