本文整理汇总了Java中com.kotcrab.vis.ui.widget.VisSplitPane类的典型用法代码示例。如果您正苦于以下问题:Java VisSplitPane类的具体用法?Java VisSplitPane怎么用?Java VisSplitPane使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VisSplitPane类属于com.kotcrab.vis.ui.widget包,在下文中一共展示了VisSplitPane类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:whitecostume,项目名称:libgdx_ui_editor,代码行数:16,代码来源:AttrWindow.java
示例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();
}
开发者ID:mbrlabs,项目名称:Mundus,代码行数:18,代码来源:MundusSplitPane.java
示例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();
}
开发者ID:kotcrab,项目名称:vis-editor,代码行数:13,代码来源:TestSplitPane.java
示例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();
}
开发者ID:kotcrab,项目名称:vis-editor,代码行数:10,代码来源:Editor.java
示例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);
}
开发者ID:whitecostume,项目名称:libgdx_ui_editor,代码行数:52,代码来源:MainStage.java
示例6: setStyle
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public void setStyle(VisSplitPane.VisSplitPaneStyle style) {
this.style = style;
invalidateHierarchy();
}
开发者ID:mbrlabs,项目名称:Mundus,代码行数:5,代码来源:MundusSplitPane.java
示例7: VisSplitPaneStyle
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public VisSplitPaneStyle(VisSplitPane.VisSplitPaneStyle style) {
super(style);
this.handleOver = style.handleOver;
}
开发者ID:mbrlabs,项目名称:Mundus,代码行数:5,代码来源:MundusSplitPane.java
示例8: MultiSplitPaneStyle
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
public MultiSplitPaneStyle(VisSplitPane.VisSplitPaneStyle style) {
super(style);
}
开发者ID:mbrlabs,项目名称:Mundus,代码行数:4,代码来源:MundusMultiSplitPane.java
示例9: getHandledType
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
@Override
public Class<VisSplitPane> getHandledType() {
return VisSplitPane.class;
}
开发者ID:czyzby,项目名称:gdx-lml,代码行数:5,代码来源:SplitAmountLmlAttribute.java
示例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));
}
开发者ID:czyzby,项目名称:gdx-lml,代码行数:6,代码来源:SplitAmountLmlAttribute.java
示例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));
}
开发者ID:czyzby,项目名称:gdx-lml,代码行数:6,代码来源:MaxSplitLmlAttribute.java
示例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));
}
开发者ID:czyzby,项目名称:gdx-lml,代码行数:6,代码来源:MinSplitLmlAttribute.java
示例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());
}
开发者ID:czyzby,项目名称:gdx-lml,代码行数:6,代码来源:VisSplitPaneLmlTag.java
示例14: getSplitPane
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
/** @return casted widget. */
protected VisSplitPane getSplitPane() {
return (VisSplitPane) getActor();
}
开发者ID:czyzby,项目名称:gdx-lml,代码行数:5,代码来源:VisSplitPaneLmlTag.java
示例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);
}
开发者ID:Longri,项目名称:cachebox3.0,代码行数:40,代码来源:CompassView.java
示例16: getStyle
import com.kotcrab.vis.ui.widget.VisSplitPane; //导入依赖的package包/类
/**
* Returns the split pane's style. Modifying the returned style may not have
* an effect until {@link #setStyle(VisSplitPane.VisSplitPaneStyle)} is
* called.
*/
public VisSplitPane.VisSplitPaneStyle getStyle() {
return style;
}
开发者ID:mbrlabs,项目名称:Mundus,代码行数:9,代码来源:MundusSplitPane.java
注:本文中的com.kotcrab.vis.ui.widget.VisSplitPane类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论