Class ScreenCreditImage

    • Constructor Detail

      • ScreenCreditImage

        public ScreenCreditImage​(java.lang.String name,
                                 java.lang.Object imageSource)
    • Method Detail

      • setViewport

        public void setViewport​(java.awt.Rectangle viewport)
        Specified by:
        setViewport in interface ScreenCredit
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • setLink

        public void setLink​(java.lang.String link)
        Specified by:
        setLink in interface ScreenCredit
      • getLink

        public java.lang.String getLink()
        Specified by:
        getLink in interface ScreenCredit
      • getImageWidth

        public int getImageWidth​(DrawContext dc)
        Description copied from class: ScreenImage
        Returns the width of the source image after dynamic scaling has been applied. If no image has been specified, but a dimension has been specified, the width of the dimension is returned.
        Overrides:
        getImageWidth in class ScreenImage
        Parameters:
        dc - the current draw context.
        Returns:
        the source image width after scaling.
        See Also:
        ScreenImage.getSize()
      • getImageHeight

        public int getImageHeight​(DrawContext dc)
        Description copied from class: ScreenImage
        Returns the height of the image after dynamic scaling has been applied. If no image has been specified, but a dimension has been specified, the height of the dimension is returned.
        Overrides:
        getImageHeight in class ScreenImage
        Parameters:
        dc - the current draw context.
        Returns:
        the source image height after scaling.
        See Also:
        ScreenImage.getSize()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object