All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tropo.awt.TRSeparator

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----tropo.awt.TRSeparator

public class TRSeparator
extends Canvas
The Lumos version of a separator, which is a simple raised or lowered line that can be used to create a more visual separation or components. The EZSeparator is very small by default, so make sure to use a layout that fills the separator either vertically or horizontally, depending on its type.

 EZGridBagPanel p = new EZGridBagPanel();
 EZSeparator s1 = new EZSeparator( EZGui.HORIZONTAL);
 p.fillHorizontal();
 p.add( s1, 0, 1);
 


Variable Index

 o debug

Constructor Index

 o TRSeparator()
Create a new lightweight horizontal separator.
 o TRSeparator(String)
Create a new lightweight separator with a centered title and a "raised" line.
 o TRSeparator(String, boolean)
Create a new lightweight separator with a centered title.
 o TRSeparator(TROrientation)
Create a new lightweight separator.
 o TRSeparator(TROrientation, boolean)
Create a new lightweight separator.

Method Index

 o addNotify()
Internal use -- we intercept this call and get the font information.
 o minimumSize()
 o paint(Graphics)
The "paint" method, which is the only thing we need to extend from EZComponent.
 o preferredSize()
 o setBackground(Color)
 o setTitle(String)
Reset the title.

Variables

 o debug
 public static boolean debug

Constructors

 o TRSeparator
 public TRSeparator()
Create a new lightweight horizontal separator.

 o TRSeparator
 public TRSeparator(TROrientation type)
Create a new lightweight separator.

Parameters:
type - either EZGui.HORIZONTAL or EZGui.VERTICAL.
 o TRSeparator
 public TRSeparator(TROrientation type,
                    boolean raised)
Create a new lightweight separator.

Parameters:
type - either TROrientation.HORIZONTAL or TROrientation.VERTICAL.
raised - if true, the separator appears "raised" from the screen, otherwise it appears "lowered".
 o TRSeparator
 public TRSeparator(String title,
                    boolean raised)
Create a new lightweight separator with a centered title.

Parameters:
title - the centered title
raised - if true, the separator appears "raised" from the screen, otherwise it appears "lowered".
 o TRSeparator
 public TRSeparator(String title)
Create a new lightweight separator with a centered title and a "raised" line.

Parameters:
title - the centered title

Methods

 o addNotify
 public void addNotify()
Internal use -- we intercept this call and get the font information.

Overrides:
addNotify in class Canvas
 o setBackground
 public void setBackground(Color c)
Overrides:
setBackground in class Component
 o setTitle
 public void setTitle(String title)
Reset the title.

 o preferredSize
 public final Dimension preferredSize()
Overrides:
preferredSize in class Component
 o minimumSize
 public final Dimension minimumSize()
Overrides:
minimumSize in class Component
 o paint
 public void paint(Graphics g)
The "paint" method, which is the only thing we need to extend from EZComponent.

Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index