本文整理汇总了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());
}
示例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());
}
示例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());
}
示例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);
}
示例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());
}
示例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());
}
示例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());
}
示例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);
}
示例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());
}