fr.ifremer.coser.ui.widgets
Class ComponentTitledBorder

java.lang.Object
  extended by fr.ifremer.coser.ui.widgets.ComponentTitledBorder
All Implemented Interfaces:
MouseListener, EventListener, Border, SwingConstants

public class ComponentTitledBorder
extends Object
implements Border, MouseListener, SwingConstants


Field Summary
protected  Border border
           
protected  JComponent container
           
protected  int offset
           
protected  Rectangle rect
           
protected  Component titleComponent
           
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
ComponentTitledBorder(Component titleComponent, JComponent container, Border border)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void mouseClicked(MouseEvent me)
           
 void mouseEntered(MouseEvent me)
           
 void mouseExited(MouseEvent me)
           
 void mousePressed(MouseEvent me)
           
 void mouseReleased(MouseEvent me)
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

protected int offset

titleComponent

protected Component titleComponent

container

protected JComponent container

rect

protected Rectangle rect

border

protected Border border
Constructor Detail

ComponentTitledBorder

public ComponentTitledBorder(Component titleComponent,
                             JComponent container,
                             Border border)
Method Detail

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border

mouseClicked

public void mouseClicked(MouseEvent me)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent me)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent me)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent me)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent me)
Specified by:
mouseReleased in interface MouseListener


Copyright © 2010-2012 Ifremer. All Rights Reserved.