|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.figures.layouter.AbstractTagLayouter
org.openbp.cockpit.modeler.figures.layouter.MultiplexLayouter
public class MultiplexLayouter
Layout multiplexer that delegates layouting to a surrogate according to the direction of the tag.
| Field Summary |
|---|
| Fields inherited from class org.openbp.cockpit.modeler.figures.layouter.AbstractTagLayouter |
|---|
direction, insets, tagFigure |
| Constructor Summary | |
|---|---|
MultiplexLayouter(AbstractTagFigure tagFigure)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
applyDirection()
Initializes the layouter according to the current direction. |
java.awt.Rectangle |
calculateSize()
Calculates the dimensions of the figure by simulating the layout process. |
TagLayouter |
getActiveLayouter()
Gets the the currently active layouter. |
java.awt.Insets |
getInsets()
Gets the insets for each sub component. |
static MultiplexLayouter |
getLeftRightInstance(AbstractTagFigure tag)
The left-right multiplex layouter will layout the tag contents horizontally (from left to right). |
static MultiplexLayouter |
getRadialInstance(AbstractTagFigure tag)
The radial multiplex layouter will layout the tag contents radially according to the tag direction. |
static MultiplexLayouter |
getRadialInstance2(AbstractTagFigure tag)
The inverse radial multiplex layouter will layout the tag contents radially according to the tag direction, but in the inverse direction of the layouter returned by getRadialInstance(org.openbp.cockpit.modeler.figures.tag.AbstractTagFigure). |
static MultiplexLayouter |
getStraightInstance(AbstractTagFigure tag)
|
static MultiplexLayouter |
getUpDownInstance(AbstractTagFigure tag)
The left-right multiplex layouter will layout the tag contents vertically (from top to bottom). |
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 |
setInsets(java.awt.Insets insets)
Sets the insets for each sub component. |
void |
setLayouter(int begin,
int end,
TagLayouter layouter,
int mappedDir)
Sets the surrogate layouter for a given direction range. |
void |
setLayouter(int dir,
TagLayouter layouter,
int mappedDir)
Sets the surrogate layouter for a given direction. |
void |
setupLayouter()
Sets up the layouter. |
| Methods inherited from class org.openbp.cockpit.modeler.figures.layouter.AbstractTagLayouter |
|---|
determineDirection, setDirection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiplexLayouter(AbstractTagFigure tagFigure)
tagFigure - Tag to lay out| Method Detail |
|---|
public void setLayouter(int begin,
int end,
TagLayouter layouter,
int mappedDir)
begin - Begin of the range (inclusive, one of the direction constants of the CircleConstants class)end - End of the range (exclusive, one of the direction constants of the CircleConstants class)layouter - Layouter to set for this range or null for the layouter that is already
present at this range (i. e. the default HorizontalLayouter).mappedDir - Direction to use for the specified range
public void setLayouter(int dir,
TagLayouter layouter,
int mappedDir)
dir - Direction, one of the direction constants of the CircleConstants classlayouter - Layouter to set for this range or null for the layouter that is already
present at this range (i. e. the default HorizontalLayouter).mappedDir - Direction to use for the specified layouterpublic void setupLayouter()
AbstractTagLayouter
setupLayouter in class AbstractTagLayouterAbstractTagLayouter.setupLayouter()public void applyDirection()
AbstractTagLayouter
applyDirection in class AbstractTagLayouterAbstractTagLayouter.applyDirection()public boolean isVerticalLayouter()
TagLayouter
isVerticalLayouter in interface TagLayouterisVerticalLayouter in class AbstractTagLayouterAbstractTagLayouter.isVerticalLayouter()public java.awt.Rectangle calculateSize()
TagLayouter
TagLayouter.calculateSize()public void performLayout(java.awt.Rectangle box)
TagLayouter
box - Desired display box of the figureTagLayouter.performLayout(Rectangle box)public void setInsets(java.awt.Insets insets)
AbstractTagLayouter
setInsets in interface TagLayoutersetInsets in class AbstractTagLayouterinsets - New spacing dimensionsAbstractTagLayouter.setInsets(Insets insets)public java.awt.Insets getInsets()
AbstractTagLayouter
getInsets in interface TagLayoutergetInsets in class AbstractTagLayouterAbstractTagLayouter.getInsets()public TagLayouter getActiveLayouter()
public static MultiplexLayouter getStraightInstance(AbstractTagFigure tag)
public static MultiplexLayouter getLeftRightInstance(AbstractTagFigure tag)
tag - Tag to layout
public static MultiplexLayouter getUpDownInstance(AbstractTagFigure tag)
tag - Tag to layout
public static MultiplexLayouter getRadialInstance(AbstractTagFigure tag)
tag - Tag to layout
public static MultiplexLayouter getRadialInstance2(AbstractTagFigure tag)
getRadialInstance(org.openbp.cockpit.modeler.figures.tag.AbstractTagFigure).
tag - Tag to layout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||