List of usage examples for java.awt Component isOpaque
public boolean isOpaque()
From source file:Main.java
/** * @param fc/*from w ww . j a va 2 s .com*/ * @param string */ private static void printComponentTree(final JComponent fc, final String string) { // c.setVisible(false); for (int i = 0; i < fc.getComponentCount(); i++) { final Component cc = fc.getComponent(i); System.out.println(string + "[" + i + "]" + cc.getClass().getSuperclass().getSimpleName() + ":" + cc + " Opaque: " + cc.isOpaque()); if (cc instanceof JComponent) { printComponentTree((JComponent) cc, string + "[" + i + "]"); } } }
From source file:self.philbrown.javaQuery.$.java
/** * Select all {@link View#INVISIBLE invisible}, {@link View#GONE gone}, and 0-alpha views within the * view hierarchy rooted at the given view * @param v the view hierarchy in which to search * @return a list the found views/*w ww. j ava2s.c om*/ */ private List<Component> recursivelySelectHidden(Component v) { List<Component> list = new ArrayList<Component>(); if (v instanceof Container) { for (int i = 0; i < ((Container) v).getComponentCount(); i++) { list.addAll(recursivelySelectHidden(((Container) v).getComponent(i))); } } if (!v.isVisible() || v.isOpaque()) list.add(v); return list; }
From source file:self.philbrown.javaQuery.$.java
/** * Select all {@link View#VISIBLE visible} and 1-alpha views within the given view hierarchy * @param v the view to search in/*from w w w . j a va2 s .c o m*/ * @return a list the found views */ private List<Component> recursivelySelectVisible(Component v) { List<Component> list = new ArrayList<Component>(); if (v instanceof Container) { for (int i = 0; i < ((Container) v).getComponentCount(); i++) { list.addAll(recursivelySelectVisible(((Container) v).getComponent(i))); } } if (v.isVisible() || !v.isOpaque()) list.add(v); return list; }