|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Implementations of this interface can be used to lay out
Composites on a lane. This arrangement of
Composites looks like a swimlane seen from the top. Every
CompositeSwimLane has a title and a watermark to clarify their
usage. The arrangement order goes from left to right.
A CompositeSwimLane can be contained or nested in a
CompositeSwimLanePool.
CompositeSwimLanePool| Field Summary | |
static int |
LANESTYLE_BEAM
Different styles of the lanes. |
static int |
LANESTYLE_RECTANGLE
Different styles of the lanes. |
static int |
TITLE_POSITION_INSIDE_BOTTOM_LEFT
Constants for the layout of the title. |
static int |
TITLE_POSITION_INSIDE_BOTTOM_RIGHT
Constants for the layout of the title. |
static int |
TITLE_POSITION_INSIDE_TOP_LEFT
Constants for the layout of the title. |
static int |
TITLE_POSITION_INSIDE_TOP_RIGHT
Constants for the layout of the title. |
static int |
TITLE_POSITION_OUTSIDE_BOTTOM_LEFT
Constants for the layout of the title. |
static int |
TITLE_POSITION_OUTSIDE_BOTTOM_RIGHT
Constants for the layout of the title. |
static int |
TITLE_POSITION_OUTSIDE_TOP_LEFT
Constants for the layout of the title. |
static int |
TITLE_POSITION_OUTSIDE_TOP_RIGHT
Constants for the layout of the title. |
static int |
WATERMARK_POSITIONING_CENTERED
Position constants for the watermark. |
static int |
WATERMARK_POSITIONING_REPEATED
Position constants for the watermark. |
static int |
WATERMARK_POSITIONING_REPEATED_MARGINED
Position constants for the watermark. |
| Fields inherited from interface com.tensegrity.composite.BaseComposite |
DELEGATE_INFOVALUE, EVENT_MASK_MOUSE, EVENT_MASK_SELECT, GENERAL_INFOVALUE, NON_INFOVALUE |
| Fields inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
TREE_SUBSET_POSTFIX |
| Method Summary | |
PaintFormat |
getBackgroundPaint()
Returns the background PaintFormat. |
StrokeFormat |
getBackgroundStroke()
Returns the background StrokeFormat. |
int |
getBeamArrowLength()
Returns the length of the beam arrows. |
int |
getBottomMargin()
Returns the bottom margin. |
int |
getLaneIndex()
Returns the index of the CompositeSwimLane. |
int |
getLaneStyle()
Returns the set lane-style. |
int |
getLaneWeight()
Returns the lane-weight. |
int |
getLeftMargin()
Returns the left margin. |
java.lang.String |
getTitle()
Returns the set title. |
FontFormat |
getTitleFont()
Returns the FontFormat of the title. |
PaintFormat |
getTitlePaint()
Returns the PaintFormat of the title. |
int |
getTitlePosition()
Returns the title position. |
StrokeFormat |
getTitleStroke()
Returns the StrokeFormat of the title. |
int |
getTopMargin()
Returns the top margin. |
java.lang.String |
getWatermark()
Returns the text of the waternmark. |
FontFormat |
getWatermarkFont()
Returns the FontFormat of the watermark. |
int |
getWatermarkPositioning()
Returns the position of the watermark. |
int |
getWatermarkRepetitionLength()
Returns the repetition-length of the watermark. |
boolean |
isTitleVisible()
Returns true, if the title is visible. |
boolean |
isWatermarkVisible()
Determines whether the watermark is visible. |
void |
setBackgroundPaint(PaintFormat paint)
Set the PaintFormat of the background. |
void |
setBackgroundStroke(StrokeFormat stroke)
Set the StrokeFormat of the background. |
void |
setBeamArrowLength(int beamarrowlength)
Set the length of the beam-arrow. |
void |
setLaneIndex(int index)
Sets the index of the CompositeSwimLane to the value given
by index. |
void |
setLaneStyle(int style)
Sets the lane-style. |
void |
setLaneWeight(int weight)
Set the lane weight. |
void |
setTitle(java.lang.String text)
Sets the title to the given String. |
void |
setTitleFont(FontFormat font)
Set the FontFormat of the title. |
void |
setTitlePaint(PaintFormat paint)
Set the PaintFormat of the title. |
void |
setTitlePosition(int position)
Sets the position of the title. |
void |
setTitleStroke(StrokeFormat stroke)
Set the StrokeFormat of the title. |
void |
setTitleVisible(boolean visible)
Set the title visible / invisible. |
void |
setWatermark(java.lang.String text)
Sets the text of the watermark. |
void |
setWatermarkFont(FontFormat font)
Sets the FontFormat of the watermark. |
void |
setWatermarkPositioning(int positioning)
Sets the position of the watermark. |
void |
setWatermarkRepetitionLength(int repetitionlength)
Sets the repetition-length of the watermark. |
void |
setWatermarkVisible(boolean visible)
Sets the watermark to visible / invisible. |
| Methods inherited from interface com.tensegrity.composite.BaseCompositeContainer |
addComposite, addComposites, getCompositeCount, getCompositeIterator, removeAllComposites, removeComposite, removeComposites, setComposites |
| Methods inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
addAttributableOnSetListener, areAttributableEventsEnabled, disableAttributableEvents, enableAttributableEvents, getAttributes, getAttributesTree, removeAttributableOnSetListener, setAttributes, setAttributesTree |
| Methods inherited from interface com.tensegrity.generic.attribute.Attributable |
getAttribute, getAttributeType, getAttributeValue, setAttribute, setAttributeValue |
| Methods inherited from interface com.tensegrity.graphics.interaction.BaseInteractable |
getBoundingBox, getInteractionDescriptor, getMoveItem, hits, internalEnableSelection, internalSelect, internalSetSelected, isMovable, isSelectable, isSelected, mouseClick, mouseDown, mouseEnter, mouseExit, mouseUp, postActing, preActing, select, setMovable, setSelectable, setSelected, startAction, stopAction |
| Methods inherited from interface com.tensegrity.graphics.interaction.Interactable |
calculateBoundingBox, isResizable, setResizable |
| Methods inherited from interface com.tensegrity.graphics.interaction.InteractionProvider |
actAt, descriptorChanged, dismissFromInteractionCycle, getCurrentInteractionItemFor, getCursorID, getInteractionProviders, getSelection, getSelectionBoundingBox, hasMultiSelection, hasSelection, hasSubSelection, hitsAt, mouseClickAt, mouseDownAt, mouseMoveAt, mouseUpAt, postAction, preAction, select, selectAll, selectAt, selectContaining, selectSubsequent, setSelection, startActionAt, stopActionAt, unselect, unselect, unselectAll, unselectSubsequent |
| Field Detail |
public static final int LANESTYLE_RECTANGLE
public static final int LANESTYLE_BEAM
public static final int TITLE_POSITION_OUTSIDE_TOP_LEFT
public static final int TITLE_POSITION_OUTSIDE_TOP_RIGHT
public static final int TITLE_POSITION_OUTSIDE_BOTTOM_LEFT
public static final int TITLE_POSITION_OUTSIDE_BOTTOM_RIGHT
public static final int TITLE_POSITION_INSIDE_TOP_LEFT
public static final int TITLE_POSITION_INSIDE_TOP_RIGHT
public static final int TITLE_POSITION_INSIDE_BOTTOM_LEFT
public static final int TITLE_POSITION_INSIDE_BOTTOM_RIGHT
public static final int WATERMARK_POSITIONING_CENTERED
public static final int WATERMARK_POSITIONING_REPEATED
public static final int WATERMARK_POSITIONING_REPEATED_MARGINED
| Method Detail |
public int getLaneIndex()
CompositeSwimLane. The index is
relative to the CompositeSwimLanePool the swimlane belongs
to.
CompositeSwimLane within the
CompositeSwimLanePoolpublic void setLaneIndex(int index)
Sets the index of the CompositeSwimLane to the value given
by index. The index should be relative to the
CompositeSwimLanePool the swimlane belongs to.
NOTICE:
The index of the Composite>SwimLane is set by the framework
so that in allmost every case there is no need to set it by yourself!
Only when the CompositeSwimLane is not added to a
CompositeSwimLanePool you have to set the index.
index - the index to set.public int getLaneStyle()
public void setLaneStyle(int style)
LANESTYLE_RECTANGLE
and LANESTYLE_BEAM.
style - the lane-style to set.public int getLaneWeight()
public void setLaneWeight(int weight)
weight - the weight to set.public int getTopMargin()
public int getBottomMargin()
public int getLeftMargin()
public StrokeFormat getBackgroundStroke()
StrokeFormat.
StrokeFormat.public void setBackgroundStroke(StrokeFormat stroke)
StrokeFormat of the background.
stroke - the StrokeFormat to set for the background.public PaintFormat getBackgroundPaint()
PaintFormat.
PaintFormat.public void setBackgroundPaint(PaintFormat paint)
PaintFormat of the background.
paint - the PaintFormat to set for the background.public int getBeamArrowLength()
public void setBeamArrowLength(int beamarrowlength)
beamarrowlength - the desired length of the beam-arrow.public StrokeFormat getTitleStroke()
StrokeFormat of the title.
StrokeFormat of the title.public void setTitleStroke(StrokeFormat stroke)
StrokeFormat of the title.
stroke - the StrokeFormat to set.public PaintFormat getTitlePaint()
PaintFormat of the title.
PaintFormat of the title.public void setTitlePaint(PaintFormat paint)
PaintFormat of the title.
paint - the PaintFormat to set.public FontFormat getTitleFont()
FontFormat of the title.
FontFormat of the title.public void setTitleFont(FontFormat font)
FontFormat of the title.
font - the FontFormat to set.public boolean isTitleVisible()
true, if the title is visible.
true, if the title is visible.public void setTitleVisible(boolean visible)
visible - true, if the title shall be visible.public java.lang.String getTitle()
public void setTitle(java.lang.String text)
String.
text - the title to set.public int getTitlePosition()
public void setTitlePosition(int position)
position - the position of the title.public FontFormat getWatermarkFont()
FontFormat of the watermark.
FontFormat of the watermark.public void setWatermarkFont(FontFormat font)
FontFormat of the watermark.
font - the FontFormat to set.public java.lang.String getWatermark()
public void setWatermark(java.lang.String text)
text - the text of the watermark.public boolean isWatermarkVisible()
true, if the watermark is visible.public void setWatermarkVisible(boolean visible)
visible - true, if the watermark shall be visible.public int getWatermarkPositioning()
public void setWatermarkPositioning(int positioning)
positioning - the postion of the watermark.public int getWatermarkRepetitionLength()
public void setWatermarkRepetitionLength(int repetitionlength)
repetitionlength - the length to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||