List of usage examples for com.badlogic.gdx.graphics.g2d NinePatch setMiddleWidth
public void setMiddleWidth(float middleWidth)
From source file:de.cubicvoxel.openspacebox.ingame.ui.logbook.LogEntryView.java
License:Open Source License
private NinePatchDrawable createBackground() { NinePatch ninePatch = new NinePatch(OpenSpaceBox.getAsset(TextureAsset.UI_PANEL), 270, 270, 270, 270); ninePatch.setTopHeight(DRAWABLE_BORDER_THICKNESS); ninePatch.setBottomHeight(DRAWABLE_BORDER_THICKNESS); ninePatch.setLeftWidth(DRAWABLE_BORDER_THICKNESS); ninePatch.setRightWidth(DRAWABLE_BORDER_THICKNESS); ninePatch.setMiddleHeight(1);// w w w . j a va2 s . c o m ninePatch.setMiddleWidth(1); return new NinePatchDrawable(ninePatch); }