|
All Methods zio package context |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zio.ZObject zio.ZComponent
Converts JComponent
s to ZObject
s.
If you want to use a Swing object that is not
(yet) available in these
classes, you can still use it by wrapping a
ZComponent
object around it.
Constructor Summary | |
ZComponent(javax.swing.JComponent c)
Creates a ZObject corresponding to a JComponent . |
Method Summary | |
ZComponent |
background(java.awt.Color c)
Suffix that determines the background color of the JComponent . |
ZComponent |
debug(java.lang.String debugId)
Suffix that creates debug output. |
ZComponent |
expandH()
Suffix that enables the JComponent to be stretched
in the horizontal direction. |
ZComponent |
expandV()
Suffix that enables the JComponent to be stretched
in the vertical direction. |
ZComponent |
foreground(java.awt.Color c)
Suffix that determines the foreground color of the JComponent area. |
ZComponent |
framed(int margin)
Suffix that creates an etched frame around the ZComponent . |
javax.swing.JComponent |
getJComponent()
Method for obtaining the JComponent . |
ZComponent |
size(java.awt.Dimension desiredSize)
Suffix that overrides Swing's notion of what the JComponent 's minimum/preferred should be. |
ZComponent |
unframed(int margin)
Suffix that creates the margin used with a frame without creating the frame. |
Methods inherited from class zio.ZObject |
getSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZComponent(javax.swing.JComponent c)
JComponent
.
Do NOT use this for a JComponent
obtained with
with getContentPane
(or any other Swing method
that gives you a Component
which belongs to
another Component
).
c
- the JComponent
to be brought into the zio systemMethod Detail |
public final ZComponent debug(java.lang.String debugId)
debugId
- a string to identify this component
in the debug outputpublic final ZComponent size(java.awt.Dimension desiredSize)
JComponent
's minimum/preferred should be. It is
very common
for this suffix to be needed as Swing often does not
set a minimum size.
desiredSize
- the desired sizepublic final ZComponent expandV()
JComponent
to be stretched
in the vertical direction.
public final ZComponent expandH()
JComponent
to be stretched
in the horizontal direction.
public final ZComponent foreground(java.awt.Color c)
JComponent
area.
c
- the desired foreground colorpublic final ZComponent background(java.awt.Color c)
JComponent
.
c
- the desired background colorpublic ZComponent framed(int margin)
ZComponent
.
Do not use with unframed()
suffix.
margin
- size of margin between ZComponent
and framepublic ZComponent unframed(int margin)
framed()
suffix.
margin
- size of margin around the ZComponent
public javax.swing.JComponent getJComponent()
JComponent
.
JComponent
this ZComponent
is associated with
|
author context |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |