public class mxSwimlaneManager extends mxEventSource
mxEventSource.mxIEventListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
addEnabled
Specifies if newly added cells should be resized to match the size of their
existing siblings.
|
protected mxEventSource.mxIEventListener |
addHandler |
protected boolean |
enabled
Optional string that specifies the value of the attribute to be passed
to mxCell.is to check if the rule applies to a cell.
|
protected mxGraph |
graph
Defines the type of the source or target terminal.
|
protected boolean |
horizontal
Optional string that specifies the attributename to be passed to
mxCell.is to check if the rule applies to a cell.
|
protected boolean |
resizeEnabled
Specifies if resizing of swimlanes should be handled.
|
protected mxEventSource.mxIEventListener |
resizeHandler |
eventListeners, eventsEnabled, eventSource
Constructor and Description |
---|
mxSwimlaneManager(mxGraph graph) |
Modifier and Type | Method and Description |
---|---|
protected void |
cellsAdded(Object[] cells)
Called if any cells have been added.
|
protected void |
cellsResized(Object[] cells)
Called if any cells have been resizes.
|
void |
destroy() |
mxGraph |
getGraph() |
boolean |
isAddEnabled() |
protected boolean |
isCellHorizontal(Object cell)
Returns true if the given cell is horizontal.
|
boolean |
isEnabled() |
boolean |
isHorizontal() |
boolean |
isResizeEnabled() |
protected boolean |
isSwimlaneIgnored(Object swimlane)
Returns true if the given swimlane should be ignored.
|
protected void |
resizeSwimlane(Object swimlane,
double w,
double h,
boolean parentHorizontal)
Sets the width or height of the given swimlane to the given value depending
on
|
void |
setAddEnabled(boolean value) |
void |
setEnabled(boolean value) |
void |
setGraph(mxGraph graph) |
void |
setHorizontal(boolean value) |
void |
setResizeEnabled(boolean value) |
protected void |
swimlaneAdded(Object swimlane)
Called for each swimlane which has been added.
|
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
protected mxGraph graph
protected boolean enabled
protected boolean horizontal
protected boolean addEnabled
protected boolean resizeEnabled
protected mxEventSource.mxIEventListener addHandler
protected mxEventSource.mxIEventListener resizeHandler
public mxSwimlaneManager(mxGraph graph)
public boolean isEnabled()
public void setEnabled(boolean value)
value
- the enabled to setpublic boolean isHorizontal()
public void setHorizontal(boolean value)
value
- the bubbling to setpublic boolean isAddEnabled()
public void setAddEnabled(boolean value)
value
- the addEnabled to setpublic boolean isResizeEnabled()
public void setResizeEnabled(boolean value)
value
- the resizeEnabled to setpublic mxGraph getGraph()
public void setGraph(mxGraph graph)
graph
- the graph to setprotected boolean isSwimlaneIgnored(Object swimlane)
protected boolean isCellHorizontal(Object cell)
protected void cellsAdded(Object[] cells)
protected void swimlaneAdded(Object swimlane)
protected void cellsResized(Object[] cells)
protected void resizeSwimlane(Object swimlane, double w, double h, boolean parentHorizontal)
public void destroy()
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.