Class Pattern


  • public final class Pattern
    extends CanvasObject
    Entity to apply a canvas pattern in the a data set as background.
    See here some interesting pattern images.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getImage

        public Img getImage()
        Returns the image used in the pattern if exists.
        Returns:
        the image used in the pattern if exists, otherwise null.
      • getWidth

        public int getWidth()
        Returns the image width used in the pattern.
        Returns:
        the image width used in the pattern.
      • getHeight

        public int getHeight()
        Returns the image height used in the pattern.
        Returns:
        the image height used in the pattern.
      • getRepetition

        public Repetition getRepetition()
        Returns the repetition to use in the pattern.
        Returns:
        the repetition to use in the pattern
      • getCanvasPattern

        public CanvasPatternItem getCanvasPattern()
        Returns the canvas pattern if exists.
        Returns:
        the canvas pattern if exists, otherwise null.