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


Java DefaultTreeCellRenderer.getLeafIcon方法代码示例

本文整理汇总了Java中javax.swing.tree.DefaultTreeCellRenderer.getLeafIcon方法的典型用法代码示例。如果您正苦于以下问题:Java DefaultTreeCellRenderer.getLeafIcon方法的具体用法?Java DefaultTreeCellRenderer.getLeafIcon怎么用?Java DefaultTreeCellRenderer.getLeafIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.tree.DefaultTreeCellRenderer的用法示例。


在下文中一共展示了DefaultTreeCellRenderer.getLeafIcon方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: test6

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test6()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    SearchableTextPane searchableTextPane0 = fileFollowingPane0.getTextPane();
    assertEquals(false, searchableTextPane0.isEditable());
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(-1042, searchableTextPane0.getTabSize());
    assertNotNull(searchableTextPane0);
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:18,代码来源:TestFileFollowingPane.java

示例2: test0

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test0()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.isFollowingPaused();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:15,代码来源:TestFileFollowingPane.java

示例3: test1

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test1()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.pauseFollowing();
    assertEquals(true, fileFollowingPane0.isFollowingPaused());
    assertEquals(3, fileFollowingPane0.countComponents());
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:15,代码来源:TestFileFollowingPane.java

示例4: test2

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test2()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    File file1 = fileFollowingPane0.getFollowedFile();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.countComponents());
    assertNotNull(file1);
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:16,代码来源:TestFileFollowingPane.java

示例5: test3

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test3()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.setAutoPositionCaret(false);
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:15,代码来源:TestFileFollowingPane.java

示例6: test4

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test4()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.unpauseFollowing();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:15,代码来源:TestFileFollowingPane.java

示例7: test5

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test5()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.isFollowing();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.countComponents());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:16,代码来源:TestFileFollowingPane.java

示例8: test7

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test7()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    boolean boolean0 = fileFollowingPane0.autoPositionCaret();
    assertEquals(3, fileFollowingPane0.countComponents());
    assertEquals(false, boolean0);
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:15,代码来源:TestFileFollowingPane.java

示例9: test8

import javax.swing.tree.DefaultTreeCellRenderer; //导入方法依赖的package包/类
@Test
public void test8()  throws Throwable  {
    File file0 = new File("");
    DefaultTreeCellRenderer defaultTreeCellRenderer0 = new DefaultTreeCellRenderer();
    Icon icon0 = defaultTreeCellRenderer0.getLeafIcon();
    JRadioButton jRadioButton0 = new JRadioButton("", icon0);
    FontUIResource fontUIResource0 = (FontUIResource)jRadioButton0.getFont();
    FileFollowingPane fileFollowingPane0 = new FileFollowingPane(file0, (-1042), (-1042), false, (Font) fontUIResource0, (-1042));
    assertNotNull(fileFollowingPane0);
    
    fileFollowingPane0.clear();
    assertEquals(false, fileFollowingPane0.autoPositionCaret());
    assertEquals(3, fileFollowingPane0.getComponentCount());
}
 
开发者ID:bwollman,项目名称:41_follow,代码行数:15,代码来源:TestFileFollowingPane.java


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