renderer.add(new PanelRenderer());
return renderer.toArray(new ElementRenderer[0]);
}
public LayoutPart createRootLayerLayoutPart(final Nifty nifty) {
LayoutPart layerLayout = new LayoutPart();
layerLayout.getBox().setX(0);
layerLayout.getBox().setY(0);
layerLayout.getBox().setWidth(nifty.getRenderEngine().getWidth());
layerLayout.getBox().setHeight(nifty.getRenderEngine().getHeight());
layerLayout.getBoxConstraints().setX(new SizeValue("0px"));
layerLayout.getBoxConstraints().setY(new SizeValue("0px"));
layerLayout.getBoxConstraints().setWidth(new SizeValue(nifty.getRenderEngine().getWidth() + "px"));
layerLayout.getBoxConstraints().setHeight(new SizeValue(nifty.getRenderEngine().getHeight() + "px"));
return layerLayout;
}