public class mxSpaceManager extends mxEventSource
mxEventSource.mxIEventListener
Modifier and Type | Field and Description |
---|---|
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 boolean |
extendParents
Optional string that specifies the attributename 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 mxEventSource.mxIEventListener |
resizeHandler |
protected boolean |
shiftDownwards
Optional string that specifies the attributename to be passed to
mxCell.is to check if the rule applies to a cell.
|
protected boolean |
shiftRightwards
Optional string that specifies the attributename to be passed to
mxCell.is to check if the rule applies to a cell.
|
eventListeners, eventsEnabled, eventSource
Constructor and Description |
---|
mxSpaceManager(mxGraph graph) |
Modifier and Type | Method and Description |
---|---|
protected void |
cellResized(java.lang.Object cell) |
protected void |
cellsResized(java.lang.Object[] cells) |
void |
destroy() |
protected java.lang.Object[] |
getCellsToShift(mxCellState state) |
mxGraph |
getGraph() |
boolean |
isCellIgnored(java.lang.Object cell) |
boolean |
isCellShiftable(java.lang.Object cell) |
boolean |
isEnabled() |
boolean |
isExtendParents() |
boolean |
isShiftDownwards() |
boolean |
isShiftRightwards() |
void |
setEnabled(boolean value) |
void |
setExtendParents(boolean extendParents) |
void |
setGraph(mxGraph graph) |
void |
setShiftDownwards(boolean shiftDownwards) |
void |
setShiftRightwards(boolean shiftRightwards) |
protected void |
shiftCell(java.lang.Object cell,
double dx,
double dy,
double x0,
double y0,
double right,
double bottom,
double fx,
double fy,
boolean extendParent) |
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
protected mxGraph graph
protected boolean enabled
protected boolean shiftRightwards
protected boolean shiftDownwards
protected boolean extendParents
protected mxEventSource.mxIEventListener resizeHandler
public mxSpaceManager(mxGraph graph)
public boolean isCellIgnored(java.lang.Object cell)
public boolean isCellShiftable(java.lang.Object cell)
public boolean isEnabled()
public void setEnabled(boolean value)
value
- the enabled to setpublic boolean isShiftRightwards()
public void setShiftRightwards(boolean shiftRightwards)
shiftRightwards
- the shiftRightwards to setpublic boolean isShiftDownwards()
public void setShiftDownwards(boolean shiftDownwards)
shiftDownwards
- the shiftDownwards to setpublic boolean isExtendParents()
public void setExtendParents(boolean extendParents)
extendParents
- the extendParents to setpublic mxGraph getGraph()
public void setGraph(mxGraph graph)
graph
- the graph to setprotected void cellsResized(java.lang.Object[] cells)
protected void cellResized(java.lang.Object cell)
protected void shiftCell(java.lang.Object cell, double dx, double dy, double x0, double y0, double right, double bottom, double fx, double fy, boolean extendParent)
protected java.lang.Object[] getCellsToShift(mxCellState state)
public void destroy()
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.