@Test public void testGetSourceY() { final int h = levelImageSupport.getSourceHeight(); assertEquals(1120, h); assertEquals(0, levelImageSupport.getSourceY(0)); assertEquals(1, levelImageSupport.getSourceY(1)); assertEquals(h - 1, levelImageSupport.getSourceY(h - 1)); assertEquals(h - 1, levelImageSupport.getSourceY(h)); assertEquals(h - 1, levelImageSupport.getSourceY(h + 1)); }
public final int getSourceY(int ty) { return getSourceCoord(ty, 0, getSourceHeight() - 1); }
LevelImageSupport { public final int getSourceY(int ty) { return getSourceCoord(ty, 0, getSourceHeight() - 1); } }
LevelImageSupport { public final int getSourceY(int ty) { return getSourceCoord(ty, 0, getSourceHeight() - 1); } LevelImageSupport(int sourceWidth, int sourceHeight, ResolutionLevel level); }
LevelImageSupport { public final int getSourceY(int ty) { return getSourceCoord(ty, 0, getSourceHeight() - 1); } LevelImageSupport(int sourceWidth, int sourceHeight, ResolutionLevel level); int getSourceWidth(); int getSourceHeight(); int getLevel(); double getScale(); final int getSourceX(int tx); final int getSourceY(int ty); final int getSourceWidth(int destWidth); final int getSourceHeight(int destHeight); final int getSourceCoord(double destCoord, int min, int max); }
LevelImageSupport { public final int getSourceY(int ty) { return getSourceCoord(ty, 0, getSourceHeight() - 1); } LevelImageSupport(int sourceWidth, int sourceHeight, ResolutionLevel level); int getSourceWidth(); int getSourceHeight(); int getLevel(); double getScale(); final int getSourceX(int tx); final int getSourceY(int ty); final int getSourceWidth(int destWidth); final int getSourceHeight(int destHeight); final int getSourceCoord(double destCoord, int min, int max);  }