protected void setPreferredPixelsPerTile ( ClientPreferredPixelsPerTile ppt ) { switch ( ppt . getPreferredPixelsPerTileType ( ) ) { case MAP : preferredTileSize = layer . getMapModel ( ) . getMapView ( ) . getWidth ( ) * layer . getMapModel ( ) . getMapView ( ) . getHeight ( ) ; break ; case CONFIGURED : preferredTileSize = ppt . getWidth ( ) * ppt . getHeight ( ) ; break ; } }
Set the preferred tile size in pixels .