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);
-
debug
-
-
TRSeparator()
- Create a new lightweight horizontal separator.
-
TRSeparator(String)
- Create a new lightweight separator with a centered title and
a "raised" line.
-
TRSeparator(String, boolean)
- Create a new lightweight separator with a centered title.
-
TRSeparator(TROrientation)
- Create a new lightweight separator.
-
TRSeparator(TROrientation, boolean)
- Create a new lightweight separator.
-
addNotify()
- Internal use -- we intercept this call and get the font information.
-
minimumSize()
-
-
paint(Graphics)
- The "paint" method, which is the only thing we need to extend
from EZComponent.
-
preferredSize()
-
-
setBackground(Color)
-
-
setTitle(String)
- Reset the title.
debug
public static boolean debug
TRSeparator
public TRSeparator()
- Create a new lightweight horizontal separator.
TRSeparator
public TRSeparator(TROrientation type)
- Create a new lightweight separator.
- Parameters:
- type - either EZGui.HORIZONTAL or EZGui.VERTICAL.
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".
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".
TRSeparator
public TRSeparator(String title)
- Create a new lightweight separator with a centered title and
a "raised" line.
- Parameters:
- title - the centered title
addNotify
public void addNotify()
- Internal use -- we intercept this call and get the font information.
- Overrides:
- addNotify in class Canvas
setBackground
public void setBackground(Color c)
- Overrides:
- setBackground in class Component
setTitle
public void setTitle(String title)
- Reset the title.
preferredSize
public final Dimension preferredSize()
- Overrides:
- preferredSize in class Component
minimumSize
public final Dimension minimumSize()
- Overrides:
- minimumSize in class Component
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