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 voiddraw(WritableRaster tile) Draw borders around the tile as dotted lines.booleanCompares this object with given object for equality.inthashCode()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:
drawin classTilePlaceholder- Parameters:
tile- the tile where to draw.
-
equals
Compares this object with given object for equality.- Overrides:
equalsin classTilePlaceholder- Parameters:
obj- the other object to compare with this object.- Returns:
trueif the two objects will create equivalent empty tiles.
-
hashCode
public int hashCode()Returns a hash code value for this provider of tile placeholders.- Overrides:
hashCodein classTilePlaceholder
-