O'Reilly logo

Groovy: Grundlagen und fortgeschrittene Techniken by Joachim Baumann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

B Erbauermethoden562
B.2.2 MultiSplitLayout – Methoden
/>29./ <56H<?81
TREE +95REE
"TTRIBUTE
cellRenderer5REE$ELL3ENDERER
closedIcon*CONcollapsedIcon*CON
expandedIcon*CONleafIcon*CONmodel
5REE.ODEL
openIcon*CONoverwriteRenderer
Icons
#OOLEANrolloverEnabled#OOLEAN
searchable4EARCHABLEvalue)ASHTABLEODER-IST
ODER5REE.ODELODER5REE/ODE
TREE5ABLE +95REE5ABLE
"TTRIBUTE
closedIcon*CONcollapsedIcon*CON
expandedIcon*CONexpandsSelectedPaths
#OOLEAN
filters'ILTER1IPELINElargeModel
#OOLEAN
leafIcon*CONmodel5ABLE.ODEL
openIcon*CONrootVisible#OOLEANrowHeight
*NTEGER
scrollsOnExpand#OOLEAN
selectionMode*NTEGERshowsRootHandles
#OOLEAN
sortable#OOLEANtoggleClickCount
*NTEGER
treeCellRenderer5REE$ELL3ENDERER
treeTableModel5REE5ABLE.ODEL
.ETHODE &RKLhRUNG
SPLIT &RZEUGTHORIZONTALEODERVERTIKALE5EILUNG#EGINNMITVERTIKALER
5EILUNGAUeER
rowLayoutISTfalse
"TTRIBUT
rowLayout7ORGABEWERTtrue
DIVIDER 6NTERTEILTEINZELNE#EREICHEVON-EAFS
"TTRIBUTEKEINE
LEAF &RZEUGTEINEN#EREICHFkRDIE1LATZIERUNGVON,OMPONENTEN
"TTRIBUT
name4TRING
563B.2 SwingXBuilder
B.2.3 Painter
Painter sind eine neue SwingX-Komponente, an die andere SwingX-
Komponenten die Aufgabe des Zeichnens delegieren können.
Painter, die andere Painter akzeptieren (hierarchisch)
Untergeordnete Painter können auch in der Closure definiert werden.
Normale Painter
/>29./ <56H<?81
ALPHA1AINTER "LPHA1AINTER
"TTRIBUTE
alpha'LOATpainters-IST1AINTERODER
1AINTER<>
COMPOUND1AINTER $OMPOUND1AINTER
"TTRIBUT
painters-IST1AINTERODER1AINTER<>
/>29./ <56H<?81
BUSY1AINTER #USY1AINTER
"TTRIBUTE
barLength'LOATbarWidth'LOAT
baseColor$OLOR
CAPSULE1AINTER $APSULE1AINTER
"TTRIBUT
portion$APSULE1AINTER1ORTION
CHECKERBOARD1AINTER $HECKERBOARD1AINTER
"TTRIBUTE
squareSize'LOATlightPaint$OLOR
darkPaint$OLOR
GLOSS1AINTER (LOSS1AINTER
"TTRIBUTE
position(LOSS1AINTER(LOSS1OSITIONpaint
1AINT
IMAGE1AINTER *MAGE1AINTER
"TTRIBUTE
image#UFFERED*MAGEurl63-style
"BSTRACT"REA1AINTER4TYLE
horizontal
"BSTRACT-AYOUT1AINTER)ORIZONTAL"LIGNMENT
vertical
"BSTRACT-AYOUT1AINTER7ERTICAL"LIGNMENT
*MAGE1AINTER
ALTERNATIV
*MAGE1AINTER
"TTRIBUTE
widthINTEGERheightINTEGERrounded
BOOLEAN
roundHeight*NTEGERroundWidth
*NTEGER
fillPaint$OLOR
MATTE1AINTER .ATTE1AINTER
"TTRIBUTE
paint1AINTpaintStretched#OOLEAN
B Erbauermethoden564
B.2.4 Effekte
Effekte können bei Painter-Objekten eingesetzt werden. Hierfür ver-
wenden Sie im Normalfall das Attribut effects.
B.2.5 Filter
/>29./ <56H<?81
PINSTRIPE1AINTER 1INSTRIPE1AINTER
"TTRIBUTE
paint1AINTangle%OUBLEstripeWidth
%OUBLE
spacing%OUBLE
RECTANGLE1AINTER 3ECTANGLE1AINTER
"TTRIBUTE
top*NTEGERleft*NTEGERbottom*NTEGER
right*NTEGERborderWidth'LOATrounded
#OOLEAN
roundWidth*NTEGERroundHeight
*NTEGER
fillPaint1AINTstrokeWidth'LOAT
borderPaint1AINTinsets*NSETSODER-ISTE<XY
XY>
paintStretched#OOLEANstyle
"BSTRACT"REA1AINTER4TYLE
SHAPE1AINTER 4HAPE1AINTER
"TTRIBUTE
shape4HAPEpaint1AINTstyle
"BSTRACT"REA1AINTER4TYLE
TEXT1AINTER 5EXT1AINTER
"TTRIBUTE
font'ONTtext4TRINGpaint1AINT
URL1AINTER 63-1AINTER
"TTRIBUTE
file'ILEurl4TRINGODER63-
00/5> <56H<?81
(LOW1ATH&FFECT ;EICHNET(LkHENUMDEN1AINTER
*NNER(LOW1ATH&FFECT ;EICHNET(LkHENINNERHALBDESDURCHDEN1AINTER
ERZEUGTEN#EREICHS
*NNER4HADOW1ATH&FFECT ;EICHNETEINEN4CHATTENINNERHALBDESDURCHDEN
1AINTERERZEUGTEN#EREICHS
/EON#ORDER&FFECT ;EICHNETEINEMEHRFARBIGE(RENZEUMDEN1AINTERMIT
dBERGANGZWISCHENDENANGEGEBENEN'ARBEN
"TTRIBUTE
edgeColor$OLORcenterColor$OLOR
effectWidth*NTEGER
4HADOW1ATH&FFECT ;EICHNETEINEN4CHATTENUMDEN1AINTER
/>29./ <56H<?81
COLOR5INT'ILTER 'ARBSTICH'ILTER
"TTRIBUTE
mixColor$OLORmixValue'LOAT
FAST#LUR'ILTER 4CHNELLER6NSCHhRFE'ILTER
"TTRIBUT
radius*NTEGER

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required