Class TilePlaceholder.WithCross
java.lang.Object
org.apache.sis.internal.coverage.j2d.TilePlaceholder
org.apache.sis.internal.coverage.j2d.TilePlaceholder.WithCross
- Enclosing class:
TilePlaceholder
A provider of tile placeholder with a white border and white cross in the tile.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double[]
The sample values to use for the border and the cross.Fields inherited from class org.apache.sis.internal.coverage.j2d.TilePlaceholder
model, PENDING_JDK_FIX
-
Constructor Summary
ConstructorsConstructorDescriptionWithCross
(RenderedImage image) Creates a new provider for the sample model and color model of given image. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
draw
(WritableRaster tile) Draw borders around the tile as dotted lines.boolean
Compares this object with given object for equality.int
hashCode()
Returns a hash code value for this provider of tile placeholders.Methods inherited from class org.apache.sis.internal.coverage.j2d.TilePlaceholder
create, empty, filled, filled, isCreatorOf, withCross
-
Field Details
-
samples
private final double[] samplesThe 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
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 classTilePlaceholder
- Parameters:
tile
- the tile where to draw.
-
equals
Compares this object with given object for equality.- Overrides:
equals
in classTilePlaceholder
- 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 classTilePlaceholder
-