de.uni_paderborn.fujaba.fsa.swing
Class CircleGrabLayouter

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.swing.GrabLayouter
      extended byde.uni_paderborn.fujaba.fsa.swing.CircleGrabLayouter

public class CircleGrabLayouter
extends GrabLayouter

THE choice for JCircle-Targets Cannot layout anything else

Version:
$Revision: 1.11 $
Author:
$Author: lowende $

Field Summary
 
Fields inherited from class de.uni_paderborn.fujaba.fsa.swing.GrabLayouter
TARGET_PROPERTY
 
Method Summary
static GrabLayouter get()
           
protected  double[] getPreferredLayoutInformation(JGrab grab)
          the preferred orientation and alignment are determined by the angle of the first line of the grab to the center of the circle
 void layout(GrabManager manager)
          does the layout.
protected  void layoutGrab(GrabManager manager, JGrab grab)
          layout the Grab around the Circle
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.GrabLayouter
getDefaultLayouter, getDefaultLayouterClass, getLayouter, registerLayouterWithJComponent, setDefaultLayouterClass, unregisterLayouterFromJComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static GrabLayouter get()
Returns:
the singleton instance

layout

public void layout(GrabManager manager)
does the layout.
the target of the manager must be a JCircle otherwise an Exception is thrown

Specified by:
layout in class GrabLayouter
Parameters:
manager - No description provided
Throws:
java.lang.IllegalArgumentException - if the target of manager is anything else than a JCircle
See Also:
GrabManager.getTarget(), layoutGrab(de.uni_paderborn.fujaba.fsa.swing.GrabManager, de.uni_paderborn.fujaba.fsa.swing.JGrab)

layoutGrab

protected void layoutGrab(GrabManager manager,
                          JGrab grab)
layout the Grab around the Circle

Parameters:
manager - No description provided
grab - No description provided
See Also:
getPreferredLayoutInformation(de.uni_paderborn.fujaba.fsa.swing.JGrab)

getPreferredLayoutInformation

protected double[] getPreferredLayoutInformation(JGrab grab)
the preferred orientation and alignment are determined by the angle of the first line of the grab to the center of the circle

Overrides:
getPreferredLayoutInformation in class GrabLayouter
Parameters:
grab - No description provided
Returns:
The preferredLayoutInformation value
See Also:
JGrab.setLayoutOrientation(de.uni_paderborn.fujaba.fsa.swing.Direction), JGrab.setLayoutAlignment(double), JBend.iteratorOfLines()