当前位置: 首页>>代码示例>>Java>>正文


Java VerticalFlowGroup类代码示例

本文整理汇总了Java中com.kotcrab.vis.ui.layout.VerticalFlowGroup的典型用法代码示例。如果您正苦于以下问题:Java VerticalFlowGroup类的具体用法?Java VerticalFlowGroup怎么用?Java VerticalFlowGroup使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VerticalFlowGroup类属于com.kotcrab.vis.ui.layout包,在下文中一共展示了VerticalFlowGroup类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getHandledType

import com.kotcrab.vis.ui.layout.VerticalFlowGroup; //导入依赖的package包/类
@Override
public Class<VerticalFlowGroup> getHandledType() {
    return VerticalFlowGroup.class;
}
 
开发者ID:czyzby,项目名称:gdx-lml,代码行数:5,代码来源:VerticalSpacingLmlAttribute.java

示例2: process

import com.kotcrab.vis.ui.layout.VerticalFlowGroup; //导入依赖的package包/类
@Override
public void process(final LmlParser parser, final LmlTag tag, final VerticalFlowGroup actor,
        final String rawAttributeData) {
    actor.setSpacing(parser.parseFloat(rawAttributeData, actor));
}
 
开发者ID:czyzby,项目名称:gdx-lml,代码行数:6,代码来源:VerticalSpacingLmlAttribute.java

示例3: getNewInstanceOfGroup

import com.kotcrab.vis.ui.layout.VerticalFlowGroup; //导入依赖的package包/类
@Override
protected Group getNewInstanceOfGroup(final LmlActorBuilder builder) {
    return new VerticalFlowGroup();
}
 
开发者ID:czyzby,项目名称:gdx-lml,代码行数:5,代码来源:VerticalFlowGroupLmlTag.java

示例4: getGroup

import com.kotcrab.vis.ui.layout.VerticalFlowGroup; //导入依赖的package包/类
@Override
public WidgetGroup getGroup() {
    return new VerticalFlowGroup();
}
 
开发者ID:czyzby,项目名称:gdx-lml,代码行数:5,代码来源:DragPaneLmlActorBuilder.java

示例5: TabbedPane

import com.kotcrab.vis.ui.layout.VerticalFlowGroup; //导入依赖的package包/类
public TabbedPane (TabbedPaneStyle style, Sizes sizes) {
	this.style = style;
	this.sizes = sizes;
	listeners = new Array<TabbedPaneListener>();

	sharedCloseActiveButtonStyle = VisUI.getSkin().get("close-active-tab", VisImageButtonStyle.class);

	group = new ButtonGroup<Button>();

	mainTable = new TabbedPaneTable(this);
	tabsPane = new DragPane(style.vertical ? new VerticalFlowGroup() : new HorizontalFlowGroup());
	configureDragPane(style);

	mainTable.setBackground(style.background);

	tabs = new Array<Tab>();
	tabsButtonMap = new IdentityMap<Tab, TabButtonTable>();

	Cell<DragPane> tabsPaneCell = mainTable.add(tabsPane);
	Cell<Image> separatorCell = null;

	if (style.vertical) {
		tabsPaneCell.top().growY().minSize(0, 0);
	} else {
		tabsPaneCell.left().growX().minSize(0, 0);
	}

	//note: if separatorBar height/width is not set explicitly it may sometimes disappear
	if (style.separatorBar != null) {
		if (style.vertical) {
			separatorCell = mainTable.add(new Image(style.separatorBar)).growY().width(style.separatorBar.getMinWidth());
		} else {
			mainTable.row();
			separatorCell = mainTable.add(new Image(style.separatorBar)).growX().height(style.separatorBar.getMinHeight());
		}
	} else {
		//make sure that tab will fill available space even when there is no separatorBar image set
		if (style.vertical) {
			mainTable.add().growY();
		} else {
			mainTable.add().growX();
		}
	}

	mainTable.setPaneCells(tabsPaneCell, separatorCell);
}
 
开发者ID:kotcrab,项目名称:vis-editor,代码行数:47,代码来源:TabbedPane.java

示例6: TestFlowGroup

import com.kotcrab.vis.ui.layout.VerticalFlowGroup; //导入依赖的package包/类
public TestFlowGroup () {
		super("flow groups");

		TableUtils.setSpacingDefaults(this);
		columnDefaults(0).left();

		setResizable(true);
		addCloseButton();
		closeOnEscape();

		WidgetGroup group = new VerticalFlowGroup(2);

		String lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi luctus magna sit amet tellus egestas tincidunt. " +
				"Morbi tempus eleifend dictum. Nunc ex nisl, dignissim eget gravida vel, rutrum a nibh. Fusce congue odio ac elit " +
				"rhoncus rutrum. Donec nec lectus leo. Phasellus et consectetur ante. Cras vel consectetur mauris, sed semper lectus. ";
		String[] parts = lorem.split(" ");
		for (String part : parts) {
			group.addActor(new VisLabel(part));
		}

//		group.addActor(new VisLabel("Lorem ipsum"));
//		group.addActor(new VisLabel("dolor sit"));
//		group.addActor(new VisLabel("amet"));
//		group.addActor(new VisLabel("a\nb\nc"));
//		group.addActor(new VisLabel("Lorem ipsum"));
//		group.addActor(new VisLabel("dolor sit"));
//		group.addActor(new VisLabel("amet"));
//		group.addActor(new VisLabel("a\nb\nc"));
//		group.addActor(new VisLabel("Lorem ipsum"));
//		group.addActor(new VisLabel("dolor sit"));
//		group.addActor(new VisLabel("amet"));
//		group.addActor(new VisLabel("a\nb\nc"));

		VisScrollPane scrollPane = new VisScrollPane(group);
		scrollPane.setFadeScrollBars(false);
		scrollPane.setFlickScroll(false);
		scrollPane.setOverscroll(false, false);
		scrollPane.setScrollingDisabled(group instanceof HorizontalFlowGroup, group instanceof VerticalFlowGroup);
		add(scrollPane).grow();

		setSize(300, 150);
		centerWindow();
	}
 
开发者ID:kotcrab,项目名称:vis-editor,代码行数:44,代码来源:TestFlowGroup.java


注:本文中的com.kotcrab.vis.ui.layout.VerticalFlowGroup类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。