當前位置: 首頁>>代碼示例>>Java>>正文


Java Table.setBounds方法代碼示例

本文整理匯總了Java中com.badlogic.gdx.scenes.scene2d.ui.Table.setBounds方法的典型用法代碼示例。如果您正苦於以下問題:Java Table.setBounds方法的具體用法?Java Table.setBounds怎麽用?Java Table.setBounds使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.badlogic.gdx.scenes.scene2d.ui.Table的用法示例。


在下文中一共展示了Table.setBounds方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: Addtogroup

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
public void Addtogroup(){
    grchatfaction = new VerticalGroup();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/HH:mm:ss");
    try {
        grchatfaction.addActor(addComment(sdf.parse("2016/5/17/13:34:23"),"adrian", Color.BLUE,"Welcome Chat!"));
        grchatfaction.addActor(addComment(sdf.parse("2016/5/17/13:34:23"),"adrian", Color.BLUE,"Faction!"));
        grchatfaction.addActor(labelTest1);
    } catch (ParseException e) {
        e.printStackTrace();
        Gdx.app.log("eroare","intra");
    }
    sp = new ScrollPane(grchatfaction);
    sp.layout();
    sp.setScrollingDisabled(true, false);
    sp.setFillParent(true);sp.setLayoutEnabled(true);
    ta = new Table();
    ta.setFillParent(false);
    ta.add(sp).fill().expand();
    ta.setBounds(WIDTH *0.05f,background1.getY(), WIDTH*0.9f,background1.getHeight() * 1.05f);
    ta.setVisible(false);
    groupbotttom.addActor(ta);
    sp.setScrollPercentY(200);
    sp.act(Gdx.graphics.getDeltaTime());
    sp.updateVisualScroll();
}
 
開發者ID:TudorRosca,項目名稱:enklave,代碼行數:26,代碼來源:ScreenChat.java

示例2: addchatlocation

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
public void addchatlocation(){
    grchatlocation = new VerticalGroup();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/HH:mm:ss");
    try {
        grchatlocation.addActor(addComment(sdf.parse("2016/5/17/13:34:23"),"adrian", Color.RED,"Welcome Chat!"));
        grchatlocation.addActor(addComment(sdf.parse("2016/5/17/13:34:23"),"adrian", Color.GREEN,"Location!"));
        grchatlocation.addActor(labelTest);
    } catch (ParseException e) {
        e.printStackTrace();
        Gdx.app.log("eroare","intra");
    }
    scrollchatpublic = new ScrollPane(grchatlocation);
    scrollchatpublic.layout();
    scrollchatpublic.setScrollingDisabled(true, false);
    scrollchatpublic.setFillParent(true);
    scrollchatpublic.setLayoutEnabled(true);
    tablechatpublic = new Table();
    tablechatpublic.setFillParent(false);
    tablechatpublic.add(scrollchatpublic).fill().expand();
    tablechatpublic.setBounds(WIDTH *0.05f,background1.getY(), WIDTH*0.9f,background1.getHeight() * 1.05f);
    groupbotttom.addActor(tablechatpublic);
    scrollchatpublic.setScrollPercentY(100);
    scrollchatpublic.act(Gdx.graphics.getDeltaTime());
    scrollchatpublic.updateVisualScroll();
}
 
開發者ID:TudorRosca,項目名稱:enklave,代碼行數:26,代碼來源:ScreenChat.java

示例3: create_pages_texture

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private void create_pages_texture() {
	// TODO Auto-generated method stub
			
			 Table container = new Table();
			 Table table = new Table();
			container.setDebug(debug_pages);
			 table.setDebug(debug_pages);
			 container.setFillParent(true);
 
			  pages_scroll_pane = new ScrollPane(table);

			 pages_scroll_pane.layout();
			 container.add(pages_scroll_pane).width(screen_width).height(screen_height);
			 ;
			 pages_scroll_pane.setTouchable(Touchable.enabled);
			 pages_scroll_pane.setBounds(0, 0, screen_width, screen_height);
			  
			    container.setBounds(0,0,screen_width,screen_height);
			    container.setTouchable(Touchable.enabled);
			    
			    pages_stage.addActor(container);
			    
			    for (int i = 1 ;i <=pages_no ;i++){
					 Table tablea = new Table();
					// tablea.setColor((float)Math.random(),(float)Math.random(),(float)Math.random(),1);
					 tablea.setDebug(debug_pages);
					 table.add(tablea).width(screen_width).height(screen_height);
					 table.row();
					 pages_draw_stage.addActor(new PageSeen(i));
					}
			  
}
 
開發者ID:omar6597,項目名稱:alquran-alkarem,代碼行數:33,代碼來源:book.java

示例4: createRootTable

import com.badlogic.gdx.scenes.scene2d.ui.Table; //導入方法依賴的package包/類
private Table createRootTable(){
    Table root = new Table(Assets._skin);
    root.setBounds(0 , 0 , Gdx.graphics.getWidth() , 175);
    return root;
}
 
開發者ID:JoakimRW,項目名稱:ExamensArbeteTD,代碼行數:6,代碼來源:UiStage.java


注:本文中的com.badlogic.gdx.scenes.scene2d.ui.Table.setBounds方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。