|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.explodingpixels.macwidgets.TriAreaComponent
public class TriAreaComponent
A component that has three areas in which it widgets can be added.
| Constructor Summary | |
|---|---|
TriAreaComponent()
Creates a TriAreaComponent that uses a padding of 0 pixels between components. |
|
TriAreaComponent(int spacer_pixels)
Creates a TriAreaComponent that uses the given padding between components. |
|
| Method Summary | |
|---|---|
void |
addComponentToCenter(JComponent toolToAdd)
Adds the given component to the center of this TriAreaComponent. |
void |
addComponentToCenter(JComponent toolToAdd,
int spacer_pixels)
Adds the given component to the center of this TriAreaComponent. |
void |
addComponentToLeft(JComponent toolToAdd)
Adds the given component to the left side of this TriAreaComponent. |
void |
addComponentToLeft(JComponent toolToAdd,
int spacer_pixels)
Adds the given component to the left side of this TriAreaComponent followed by the
given an empty space of the given pixel width. |
void |
addComponentToRight(JComponent toolToAdd)
Adds the given component to the right side of this TriAreaComponent. |
void |
addComponentToRight(JComponent toolToAdd,
int spacer_pixels)
Adds the given component to the right side of this TriAreaComponent. |
protected int |
getCenterComponentCount()
|
JComponent |
getComponent()
Gets the user interface component representing this SourceList. |
protected int |
getLeftComponentCount()
|
protected int |
getRightComponentCount()
|
void |
installWindowDraggerOnWindow(Window window)
Installs a WindowDragger on the given Window. |
void |
setBackgroundPainter(Painter<Component> backgroundPainter)
Set's the background Painter that this TriAreaComponent uses. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TriAreaComponent()
TriAreaComponent that uses a padding of 0 pixels between components.
public TriAreaComponent(int spacer_pixels)
TriAreaComponent that uses the given padding between components.
spacer_pixels - the space in pixels to add between components.| Method Detail |
|---|
public JComponent getComponent()
SourceList. The returned
JComponent should be added to a container that will be displayed.
SourceList.public void installWindowDraggerOnWindow(Window window)
WindowDragger on the given Window.
window - the Window to install the WindowDragger on.public void addComponentToLeft(JComponent toolToAdd)
TriAreaComponent.
toolToAdd - the tool to add to this TriAreaComponent.
public void addComponentToLeft(JComponent toolToAdd,
int spacer_pixels)
TriAreaComponent followed by the
given an empty space of the given pixel width.
toolToAdd - the tool to add to this TriAreaComponent.spacer_pixels - the amount of space to post-pend the added component with.public void addComponentToCenter(JComponent toolToAdd)
TriAreaComponent.
toolToAdd - the tool to add to this TriAreaComponent.
public void addComponentToCenter(JComponent toolToAdd,
int spacer_pixels)
TriAreaComponent. If this is not the
first component to be added to the center, then the given component will be preceeded by a
space of the given width.
toolToAdd - the tool to add to this TriAreaComponent.spacer_pixels - the amount of space to pre-pend the added component with *if* the given
component is *not* the first component to be added to the center.public void addComponentToRight(JComponent toolToAdd)
TriAreaComponent.
toolToAdd - the tool to add to this TriAreaComponent.
public void addComponentToRight(JComponent toolToAdd,
int spacer_pixels)
TriAreaComponent. If this is not
the first component to be added to the right, then the given component will be followed by a
space of the given width.
toolToAdd - the tool to add to this TriAreaComponent.spacer_pixels - the amount of space to post-pend the added component with *if* the given
component is *not* the first component to be added to the center.public void setBackgroundPainter(Painter<Component> backgroundPainter)
Painter that this TriAreaComponent uses.
backgroundPainter - the background Painter that this TriAreaComponent
uses.protected final int getLeftComponentCount()
protected final int getCenterComponentCount()
protected final int getRightComponentCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||