/** * Obtains the tile from {@code source}, asynchronously if necessary, and displays it. If the * source is not ready, this layer will display nothing until it becomes ready and delivers its * tile. */ public ImageLayer (TileSource source) { setSource(source); }
@Override protected void layout (LayoutData ldata, float left, float top, float width, float height) { _ilayer.setSource(isSelected() ? _down : _up); _ilayer.setTranslation(left, top); }