public void setPreferredLocation(Layout location) { if (addHUDPanelList.size() == 1) { addHUDComponent.setPreferredLocation(location); return; } setLocation(0, 0); }
public HUDComponent open(HUD hud) { hudComponent = hud.createComponent(this); hudComponent.setPreferredLocation(Layout.EAST); hudComponent.setTransparency(1.0f); return hudComponent; }