Class ZoomableImageView.SPRITEFIXPOINT
- java.lang.Object
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.ZoomableImageView.SPRITEFIXPOINT
-
- Enclosing class:
- ZoomableImageView
public static class ZoomableImageView.SPRITEFIXPOINT extends java.lang.Object
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
Fields Modifier and Type Field Description static int
BOTTOM_LEFT
static int
BOTTOM_RIGHT
static int
SPRITECENTER
static int
TOP_LEFT
static int
TOP_RIGHT
-
Constructor Summary
Constructors Constructor Description SPRITEFIXPOINT()
-
-
-
Field Detail
-
TOP_LEFT
public static final int TOP_LEFT
- See Also:
- Constant Field Values
-
TOP_RIGHT
public static final int TOP_RIGHT
- See Also:
- Constant Field Values
-
BOTTOM_LEFT
public static final int BOTTOM_LEFT
- See Also:
- Constant Field Values
-
BOTTOM_RIGHT
public static final int BOTTOM_RIGHT
- See Also:
- Constant Field Values
-
SPRITECENTER
public static final int SPRITECENTER
- See Also:
- Constant Field Values
-
-