org.openbp.cockpit.modeler.figures.layouter
Interface TagLayouter

All Known Implementing Classes:
AbstractTagLayouter, HorizontalLayouter, MultiplexLayouter, VerticalLayouter

public interface TagLayouter

A direction-sensitive layouter.

Author:
Stephan Moritz

Method Summary
 java.awt.Rectangle calculateSize()
          Calculates the dimensions of the figure by simulating the layout process.
 void determineDirection()
          Determines the direction of the tag by the angle of the associated figure and updates the layouter accordingly.
 java.awt.Insets getInsets()
          Get the insets for spacing between the figure and its subfigures
 boolean isVerticalLayouter()
          Checks if the orientation of the tag is vertical or horizontal.
 void performLayout(java.awt.Rectangle box)
          Performs the layout of the figure.
 void setDirection(int direction)
          Sets the direction to which the tag currently faces and updates the layouter accordingly.
 void setInsets(java.awt.Insets newInsets)
          Set the insets for spacing between the figure and its subfigures
 

Method Detail

calculateSize

java.awt.Rectangle calculateSize()
Calculates the dimensions of the figure by simulating the layout process.

Returns:
The new dimensions of the figure

performLayout

void performLayout(java.awt.Rectangle box)
Performs the layout of the figure.

Parameters:
box - Desired display box of the figure

setInsets

void setInsets(java.awt.Insets newInsets)
Set the insets for spacing between the figure and its subfigures

Parameters:
newInsets - New spacing dimensions

getInsets

java.awt.Insets getInsets()
Get the insets for spacing between the figure and its subfigures

Returns:
spacing dimensions

setDirection

void setDirection(int direction)
Sets the direction to which the tag currently faces and updates the layouter accordingly.

Parameters:
direction - One of the direction constants of this class

determineDirection

void determineDirection()
Determines the direction of the tag by the angle of the associated figure and updates the layouter accordingly.


isVerticalLayouter

boolean isVerticalLayouter()
Checks if the orientation of the tag is vertical or horizontal.



Copyright © 2011. All Rights Reserved.