|
mxGraph 2.3.0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.mxEventSource com.mxgraph.view.mxSwimlaneManager
public class mxSwimlaneManager
Manager for swimlanes and nested swimlanes that sets the size of newly added swimlanes to that of their siblings, and propagates changes to the size of a swimlane to its siblings, if siblings is true, and its ancestors, if bubbling is true.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource |
---|
mxEventSource.mxIEventListener |
Field Summary | |
---|---|
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
|
Fields inherited from class com.mxgraph.util.mxEventSource |
---|
eventListeners, eventsEnabled, eventSource |
Constructor Summary | |
---|---|
mxSwimlaneManager(mxGraph graph)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.mxgraph.util.mxEventSource |
---|
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected mxGraph graph
protected boolean enabled
protected boolean horizontal
protected boolean addEnabled
protected boolean resizeEnabled
protected mxEventSource.mxIEventListener addHandler
protected mxEventSource.mxIEventListener resizeHandler
Constructor Detail |
---|
public mxSwimlaneManager(mxGraph graph)
Method Detail |
---|
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()
|
mxGraph 2.3.0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |