Interface BasicThumbnail.Layer

    • Method Summary

      Modifier and Type Method and Description
      String getConstructionString()
       
      Insets getInsets()
      Return the size of this layer.
      void paint(Graphics2D g, int x, int y, int width, int height)
      Paint this layer.
    • Method Detail

      • getInsets

        Insets getInsets()
        Return the size of this layer. Note that rounded corners may fall outside of these insets; that is why it is important that these layers always be painted in the correct z-order to achieve the right result.
      • paint

        void paint(Graphics2D g,
                   int x,
                   int y,
                   int width,
                   int height)
        Paint this layer.
        Parameters:
        g - the graphics to paint to.
        x - the left edge of the area to paint.
        y - the top edge of the area to paint.
        width - the width of the area to paint.
        height - the height of the area to paint.
      • getConstructionString

        String getConstructionString()
        Returns:
        a String capable of constructing this object.