de.javasoft.plaf.synthetica
Class TreeCollapsedIcon

java.lang.Object
  extended by de.javasoft.plaf.synthetica.TreeCollapsedIcon
All Implemented Interfaces:
javax.swing.Icon, javax.swing.plaf.UIResource

public class TreeCollapsedIcon
extends java.lang.Object
implements javax.swing.Icon, javax.swing.plaf.UIResource

JTree icon wrapper used for collapsed nodes.

Optional UI-properties:

  • Synthetica.tree.collapsedIcon - String, icon path for regular collapsed icon.
  • Synthetica.tree.selected.collapsedIcon - String, icon path for selected collapsed icon - can be null.
  • Version:
    1.01, 05.02.2013

    Field Summary
    protected static javax.swing.Icon icon
               
    protected static javax.swing.Icon selectedIcon
               
     
    Constructor Summary
    TreeCollapsedIcon()
               
     
    Method Summary
     int getIconHeight()
               
     int getIconWidth()
               
     void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    icon

    protected static javax.swing.Icon icon

    selectedIcon

    protected static javax.swing.Icon selectedIcon
    Constructor Detail

    TreeCollapsedIcon

    public TreeCollapsedIcon()
    Method Detail

    paintIcon

    public void paintIcon(java.awt.Component c,
                          java.awt.Graphics g,
                          int x,
                          int y)
    Specified by:
    paintIcon in interface javax.swing.Icon

    getIconWidth

    public int getIconWidth()
    Specified by:
    getIconWidth in interface javax.swing.Icon

    getIconHeight

    public int getIconHeight()
    Specified by:
    getIconHeight in interface javax.swing.Icon


    Copyright © 2004-2011 Jyloo Software. All Rights Reserved.