[sc1.0-cvs] CVS update: /sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/ui/

yanas at dev.java.net yanas at dev.java.net
Sun Feb 5 20:36:27 CET 2006


User: yanas   
Date: 2006/02/05 11:36:27

Log:
 extended tree UI and toolbar separator UI

File Changes:

Directory: /sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/ui/
======================================================================================

File [added]: SIPCommTreeUI.java
Url: https://sip-communicator-1-0-draft.dev.java.net/source/browse/sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/ui/SIPCommTreeUI.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Added lines: 36
---------------
/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package net.java.sip.communicator.impl.gui.main.ui;

import java.awt.Graphics;
import java.awt.Insets;
import java.awt.Rectangle;

import javax.swing.JComponent;
import javax.swing.plaf.basic.BasicTreeUI;
import javax.swing.tree.TreePath;

import net.java.sip.communicator.impl.gui.main.utils.Constants;

public class SIPCommTreeUI extends BasicTreeUI {

	public SIPCommTreeUI() {
		
	}

	protected void paintHorizontalLine(Graphics g, JComponent c, int y,
			int left, int right) {

	}

	protected void paintVerticalLine(Graphics g, JComponent c, int x, int top,
			int bottom) {

	}

}

File [added]: SIPCommToolBarSeparatorUI.java
Url: https://sip-communicator-1-0-draft.dev.java.net/source/browse/sip-communicator-1-0-draft/src/net/java/sip/communicator/impl/gui/main/ui/SIPCommToolBarSeparatorUI.java?rev=1.1&content-type=text/vnd.viewcvs-markup
Added lines: 28
---------------
/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package net.java.sip.communicator.impl.gui.main.ui;

import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JComponent;
import javax.swing.plaf.basic.BasicToolBarSeparatorUI;

import net.java.sip.communicator.impl.gui.main.utils.Constants;

public class SIPCommToolBarSeparatorUI extends BasicToolBarSeparatorUI {

	public void paint(Graphics g,
            JComponent c){
		
		Graphics2D g2 = (Graphics2D)g;
		
		g2.setColor(Constants.TOOLBAR_SEPARATOR_COLOR);
		g2.drawLine(c.getWidth()/2, 0, c.getWidth()/2, c.getHeight());
	}
}




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator-1-0-draft.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator-1-0-draft.dev.java.net





More information about the commits mailing list