Package com.mxgraph.view
Class mxSpaceManager
- java.lang.Object
-
- com.mxgraph.util.mxEventSource
-
- com.mxgraph.view.mxSpaceManager
-
public class mxSpaceManager extends mxEventSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanenabledOptional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.protected booleanextendParentsOptional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.protected mxGraphgraphDefines the type of the source or target terminal.protected mxEventSource.mxIEventListenerresizeHandlerprotected booleanshiftDownwardsOptional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.protected booleanshiftRightwardsOptional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.-
Fields inherited from class com.mxgraph.util.mxEventSource
eventListeners, eventsEnabled, eventSource
-
-
Constructor Summary
Constructors Constructor Description mxSpaceManager(mxGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcellResized(java.lang.Object cell)protected voidcellsResized(java.lang.Object[] cells)voiddestroy()protected java.lang.Object[]getCellsToShift(mxCellState state)mxGraphgetGraph()booleanisCellIgnored(java.lang.Object cell)booleanisCellShiftable(java.lang.Object cell)booleanisEnabled()booleanisExtendParents()booleanisShiftDownwards()booleanisShiftRightwards()voidsetEnabled(boolean value)voidsetExtendParents(boolean extendParents)voidsetGraph(mxGraph graph)voidsetShiftDownwards(boolean shiftDownwards)voidsetShiftRightwards(boolean shiftRightwards)protected voidshiftCell(java.lang.Object cell, double dx, double dy, double x0, double y0, double right, double bottom, double fx, double fy, boolean extendParent)-
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
-
-
-
-
Field Detail
-
graph
protected mxGraph graph
Defines the type of the source or target terminal. The type is a string passed to mxCell.is to check if the rule applies to a cell.
-
enabled
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.
-
shiftRightwards
protected boolean shiftRightwards
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
-
shiftDownwards
protected boolean shiftDownwards
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
-
extendParents
protected boolean extendParents
Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
-
resizeHandler
protected mxEventSource.mxIEventListener resizeHandler
-
-
Constructor Detail
-
mxSpaceManager
public mxSpaceManager(mxGraph graph)
-
-
Method Detail
-
isCellIgnored
public boolean isCellIgnored(java.lang.Object cell)
-
isCellShiftable
public boolean isCellShiftable(java.lang.Object cell)
-
isEnabled
public boolean isEnabled()
- Returns:
- the enabled
-
setEnabled
public void setEnabled(boolean value)
- Parameters:
value- the enabled to set
-
isShiftRightwards
public boolean isShiftRightwards()
- Returns:
- the shiftRightwards
-
setShiftRightwards
public void setShiftRightwards(boolean shiftRightwards)
- Parameters:
shiftRightwards- the shiftRightwards to set
-
isShiftDownwards
public boolean isShiftDownwards()
- Returns:
- the shiftDownwards
-
setShiftDownwards
public void setShiftDownwards(boolean shiftDownwards)
- Parameters:
shiftDownwards- the shiftDownwards to set
-
isExtendParents
public boolean isExtendParents()
- Returns:
- the extendParents
-
setExtendParents
public void setExtendParents(boolean extendParents)
- Parameters:
extendParents- the extendParents to set
-
getGraph
public mxGraph getGraph()
- Returns:
- the graph
-
setGraph
public void setGraph(mxGraph graph)
- Parameters:
graph- the graph to set
-
cellsResized
protected void cellsResized(java.lang.Object[] cells)
-
cellResized
protected void cellResized(java.lang.Object cell)
-
shiftCell
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)
-
getCellsToShift
protected java.lang.Object[] getCellsToShift(mxCellState state)
-
destroy
public void destroy()
-
-