|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.fsa.swing.GrabLayouter
Called by a GrabManager to layout the Grabs of the Manager around the border of the Managers target.
The GrabLayouter used by the GrabManager is determined as follows:
If the target has a GrabLayouter defined as client property with name GrabLayouter.TARGET_PROPERTY
(which is the same as the result of
GrabLayouter.getLayouter(target)) that one is used. Otherwise GrabLayouter.get() is called to get the default Layouter.
Field Summary | |
static java.lang.String |
TARGET_PROPERTY
No comment provided by developer, please add a comment to improve documentation. |
Constructor Summary | |
GrabLayouter()
|
Method Summary | |
static GrabLayouter |
getDefaultLayouter()
|
static java.lang.Class |
getDefaultLayouterClass()
Get the defaultLayouterClass attribute of the GrabLayouter class |
static GrabLayouter |
getLayouter(javax.swing.JComponent comp)
The result of this method is either the layouter specified as client property of comp or if none is found the result of GrabLayouter.get() |
protected double[] |
getPreferredLayoutInformation(JGrab grab)
Retrieves the preferred orientation and alignment of the Grab and sets these values in the Grab. |
abstract void |
layout(GrabManager manager)
Assigns every Grab of manager a position on the border of the managers target |
void |
registerLayouterWithJComponent(javax.swing.JComponent comp)
Set this Layouter as default for comp by adding it to comps client properties |
static void |
setDefaultLayouterClass(java.lang.Class layouterClass)
Sets the defaultLayouterClass attribute of the GrabLayouter class |
static void |
unregisterLayouterFromJComponent(javax.swing.JComponent comp)
clears the default for comp by the field from the client properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TARGET_PROPERTY
Constructor Detail |
public GrabLayouter()
Method Detail |
public static GrabLayouter getDefaultLayouter()
public static void setDefaultLayouterClass(java.lang.Class layouterClass)
layouterClass
- The new defaultLayouterClass valuepublic static java.lang.Class getDefaultLayouterClass()
public static GrabLayouter getLayouter(javax.swing.JComponent comp)
comp
- the target for which a layouter is needed
registerLayouterWithJComponent(javax.swing.JComponent)
,
unregisterLayouterFromJComponent(javax.swing.JComponent)
,
getDefaultLayouter()
,
JComponent.getClientProperty(java.lang.Object)
public void registerLayouterWithJComponent(javax.swing.JComponent comp)
comp
- No description providedTARGET_PROPERTY
,
unregisterLayouterFromJComponent(javax.swing.JComponent)
,
getLayouter(javax.swing.JComponent)
public static void unregisterLayouterFromJComponent(javax.swing.JComponent comp)
comp
- No description providedTARGET_PROPERTY
,
registerLayouterWithJComponent(javax.swing.JComponent)
,
getLayouter(javax.swing.JComponent)
public abstract void layout(GrabManager manager)
manager
- the GrabManager for which the work is to be doneprotected double[] getPreferredLayoutInformation(JGrab grab)
This default implementation only inspects the first line of the Grab returned by grab.iteratorOfLines(). It gets the orientation and alignment that are closest to the other point of the line
grab
- the Grab to inspect
JGrab.setLayoutOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction)
,
JGrab.setLayoutAlignment(double)
,
JBend.iteratorOfLines()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |