Class ZoomableImageView.SPRITEFIXPOINT
java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.ZoomableImageView.SPRITEFIXPOINT
- Enclosing class:
ZoomableImageView
Static class that holds values how to fix a sprite to the underlying bitmap. For most use cases, this should be SPRITECENTER. This guarantees that the sprite center floats above the position relative to the x/y coordinates of the underlying bitmap, no matter how the underlying bitmap is zoomed in or out. However, it might be necessary to fix the sprite to one of the corners; in this case, the sprite will be fixed to the underlying pixel at one of the corners. This might be appropriate when you e.g. use an arrow that should keep pointing at something when zooming in and out.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TOP_LEFT
public static final int TOP_LEFT- See Also:
-
TOP_RIGHT
public static final int TOP_RIGHT- See Also:
-
BOTTOM_LEFT
public static final int BOTTOM_LEFT- See Also:
-
BOTTOM_RIGHT
public static final int BOTTOM_RIGHT- See Also:
-
SPRITECENTER
public static final int SPRITECENTER- See Also:
-
-
Constructor Details
-
SPRITEFIXPOINT
public SPRITEFIXPOINT()
-