Class TilePlaceholder.WithCross

java.lang.Object
org.apache.sis.internal.coverage.j2d.TilePlaceholder
org.apache.sis.internal.coverage.j2d.TilePlaceholder.WithCross
Enclosing class:
TilePlaceholder

private static final class TilePlaceholder.WithCross extends TilePlaceholder
A provider of tile placeholder with a white border and white cross in the tile.
  • Field Details

    • samples

      private final double[] samples
      The sample values to use for the border and the cross.
  • Constructor Details

    • WithCross

      WithCross(RenderedImage image)
      Creates a new provider for the sample model and color model of given image.
      Parameters:
      image - sample model and color model of the tiles to create.
  • Method Details

    • draw

      protected void draw(WritableRaster tile)
      Draw borders around the tile as dotted lines. The left border will have (usually) white pixels at even coordinates relative to upper-left corner, while right border will have same pixels at odd coordinates. The same pattern applies to top and bottom borders.
      Overrides:
      draw in class TilePlaceholder
      Parameters:
      tile - the tile where to draw.
    • equals

      public boolean equals(Object obj)
      Compares this object with given object for equality.
      Overrides:
      equals in class TilePlaceholder
      Parameters:
      obj - the other object to compare with this object.
      Returns:
      true if the two objects will create equivalent empty tiles.
    • hashCode

      public int hashCode()
      Returns a hash code value for this provider of tile placeholders.
      Overrides:
      hashCode in class TilePlaceholder