本文整理汇总了Java中com.kotcrab.vis.ui.widget.VisSplitPane类的典型用法代码示例。如果您正苦于以下问题:Java VisSplitPane类的具体用法?Java VisSplitPane怎么用?Java VisSplitPane使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VisSplitPane类属于com.kotcrab.vis.ui.widget包,在下文中一共展示了VisSplitPane类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AttrWindow
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public AttrWindow(String title) {
super(title,false);
setSize(Config.width*0.2f, Config.height);
left();
EditorManager.getInstance().getEventBus().register(this);
attrGeneralWindow = new AttrGeneralWindow();
attrUniqueWindow = new AttrUniqueWindow();
VisSplitPane splitPane = new VisSplitPane(attrGeneralWindow,attrUniqueWindow,true);
splitPane.setSplitAmount(0.5f);
splitPane.setMinSplitAmount(0.2f);
splitPane.setSize(getWidth(),getHeight());
add(splitPane).expand().fill();
}
示例2: MundusSplitPane
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
/**
* @param firstWidget
* May be null.
* @param secondWidget
* May be null.
*/
public MundusSplitPane(Actor firstWidget, Actor secondWidget, boolean vertical,
VisSplitPane.VisSplitPaneStyle style) {
this.firstWidget = firstWidget;
this.secondWidget = secondWidget;
this.vertical = vertical;
setStyle(style);
setFirstWidget(firstWidget);
setSecondWidget(secondWidget);
setSize(getPrefWidth(), getPrefHeight());
initialize();
}
示例3: addVisWidgets
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
private void addVisWidgets () {
VisLabel label = new VisLabel("Lorem \nipsum \ndolor \nsit \namet");
VisLabel label2 = new VisLabel("Consectetur \nadipiscing \nelit");
VisTable table = new VisTable(true);
VisTable table2 = new VisTable(true);
table.add(label);
table2.add(label2);
VisSplitPane splitPane = new VisSplitPane(table, table2, vertical);
add(splitPane).fill().expand();
}
示例4: createUI
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
private void createUI () {
mainContentTable = new Table();
tabContentTable = new Table();
quickAccessContentTable = new VisTable();
splitPane = new VisSplitPane(null, null, true);
splitPane.setSplitAmount(0.77f);
settingsDialog = new SettingsDialog();
}
示例5: init
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
private void init(){
MenuBarWindow menuBarWindow = new MenuBarWindow();
menuBarWindow.setPosition(0,Config.height,Align.topLeft);
AttrWindow attrWindow = new AttrWindow("Attrs");
attrWindow.setOrigin(Align.center);
attrWindow.setPosition(Config.width,Config.height,Align.topRight);
mainWindow = new MainWindow("PreWindow");
EditorWindow editorWindow = new EditorWindow(mainWindow);
editorWindow.setOrigin(Align.center);
editorWindow.setPosition(getWidth()/2,getHeight(),Align.top);
ActorsWindow actorsWindow = new ActorsWindow("Actors",mainWindow);
actorsWindow.setOrigin(Align.center);
actorsWindow.setPosition(0,getHeight(),Align.topLeft);
TreeWindow treeWindow = new TreeWindow(mainWindow);
treeWindow.setOrigin(Align.center);
treeWindow.setPosition(0,0,Align.bottomLeft);
AssetWindow assetWindow = new AssetWindow();
assetWindow.setPosition(treeWindow.getWidth(),0,Align.bottomLeft);
addActor(editorWindow);
actorsWindow.setMovable(false);
treeWindow.setMovable(false);
VisSplitPane splitPane1 = new VisSplitPane(actorsWindow,treeWindow,true);
splitPane1.setSize(Config.width*0.2f,Config.height-menuBarWindow.getHeight());
splitPane1.setPosition(0,0,Align.bottomLeft);
VisSplitPane splitPane2 = new VisSplitPane(editorWindow,assetWindow,true);
splitPane2.setSize(Config.width*0.6f,Config.height-menuBarWindow.getHeight());
splitPane2.setSplitAmount(0.7f);
VisSplitPane splitPane3 = new VisSplitPane(splitPane1,splitPane2,false);
splitPane3.setSize(Config.width*0.8f,Config.height-menuBarWindow.getHeight());
splitPane3.setSplitAmount(0.3f);
splitPane3.setMaxSplitAmount(0.3f);
VisSplitPane splitPane4 = new VisSplitPane(splitPane3,attrWindow,false);
splitPane4.setSize(Config.width,Config.height-menuBarWindow.getHeight());
splitPane4.setSplitAmount(0.8f);
splitPane4.setMinSplitAmount(0.4f);
addActor(splitPane4);
addActor(menuBarWindow);
}
示例6: setStyle
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public void setStyle(VisSplitPane.VisSplitPaneStyle style) {
this.style = style;
invalidateHierarchy();
}
示例7: VisSplitPaneStyle
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public VisSplitPaneStyle(VisSplitPane.VisSplitPaneStyle style) {
super(style);
this.handleOver = style.handleOver;
}
示例8: MultiSplitPaneStyle
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public MultiSplitPaneStyle(VisSplitPane.VisSplitPaneStyle style) {
super(style);
}
示例9: getHandledType
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
@Override
public Class<VisSplitPane> getHandledType() {
return VisSplitPane.class;
}
示例10: process
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
@Override
public void process(final LmlParser parser, final LmlTag tag, final VisSplitPane actor,
final String rawAttributeData) {
actor.setSplitAmount(parser.parseFloat(rawAttributeData, actor));
}
示例11: process
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
@Override
public void process(final LmlParser parser, final LmlTag tag, final VisSplitPane actor,
final String rawAttributeData) {
actor.setMaxSplitAmount(parser.parseFloat(rawAttributeData, actor));
}
示例12: process
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
@Override
public void process(final LmlParser parser, final LmlTag tag, final VisSplitPane actor,
final String rawAttributeData) {
actor.setMinSplitAmount(parser.parseFloat(rawAttributeData, actor));
}
示例13: getNewInstanceOfActor
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
@Override
protected Actor getNewInstanceOfActor(final LmlActorBuilder builder) {
final AlignedLmlActorBuilder alignedBuilder = (AlignedLmlActorBuilder) builder;
return new VisSplitPane(null, null, alignedBuilder.isVertical(), alignedBuilder.getStyleName());
}
示例14: getSplitPane
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
/** @return casted widget. */
protected VisSplitPane getSplitPane() {
return (VisSplitPane) getActor();
}
示例15: CompassView
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public CompassView() {
super("CompassView");
style = VisUI.getSkin().get("compassViewStyle", CompassViewStyle.class);
//background
backgroundWidget = new Image(style.background);
backgroundWidget.setBounds(0, 0, this.getWidth(), this.getHeight());
this.addActor(backgroundWidget);
topTable = new Table();
bottomTable = new Table();
// topTable.setDebug(true, true);
// bottomTable.setDebug(true, true);
topTable.setBackground(style.splitBackground);
bottomTable.setBackground(style.splitBackground);
VisSplitPane.VisSplitPaneStyle visSplitPaneStyle = new VisSplitPane.VisSplitPaneStyle();
visSplitPaneStyle.handle = style.splitHandle;
VisScrollPane scrollPane = new VisScrollPane(topTable);
splitPane = new VisSplitPane(scrollPane, bottomTable, true, visSplitPaneStyle);
this.addChild(splitPane);
compassPanel = new CompassPanel(style);
bottomTable.add(compassPanel).expand().fill().center();
readSettings();
splitPane.setMinSplitAmount(0.25f);
splitPane.setMaxSplitAmount(0.59f);
}