Class ButtonImages


  • public class ButtonImages
    extends java.lang.Object
    A set of images to form a button image. The button image consists of a left, a middle, and a right part. Left and right parts have fixed size, the middle part is clipped or repeated to the button's width.
    • Constructor Summary

      Constructors 
      Constructor Description
      ButtonImages​(@NotNull java.awt.Image imageLeft, @NotNull java.awt.Image imageMiddle, @NotNull java.awt.Image imageRight)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()
      Returns the button's height.
      void render​(@NotNull java.awt.Graphics g, int w)
      Draws the button.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ButtonImages

        public ButtonImages​(@NotNull
                            @NotNull java.awt.Image imageLeft,
                            @NotNull
                            @NotNull java.awt.Image imageMiddle,
                            @NotNull
                            @NotNull java.awt.Image imageRight)
        Creates a new instance.
        Parameters:
        imageLeft - the left image
        imageMiddle - the middle image
        imageRight - the right image
    • Method Detail

      • getHeight

        public int getHeight()
        Returns the button's height.
        Returns:
        the height
      • render

        public void render​(@NotNull
                           @NotNull java.awt.Graphics g,
                           int w)
        Draws the button.
        Parameters:
        g - the graphics to paint into
        w - the button width