com.mxgraph.swing.handler
Class mxMovePreview
- java.lang.Object
-
- com.mxgraph.util.mxEventSource
-
- com.mxgraph.swing.handler.mxMovePreview
-
public class mxMovePreview extends mxEventSource
Connection handler creates new connections between cells. This control is used to display the connector icon, while the preview is used to draw the line.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
-
-
Constructor Summary
Constructors Constructor and Description mxMovePreview(mxGraphComponent graphComponent)Constructs a new rubberband selection for the given graph component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description mxCellStatePreviewcreateCellStatePreview()java.lang.Object[]getCells(mxCellState initialState)java.lang.Object[]getMovingCells()FIXME: Cells should be assigned outside of getPreviewStatesintgetThreshold()booleanisActive()booleanisClonePreview()booleanisContextPreview()booleanisHideSelectionHandler()booleanisPlaceholderPreview()voidpaint(java.awt.Graphics g)voidsetClonePreview(boolean value)voidsetContextPreview(boolean value)voidsetHideSelectionHandler(boolean value)voidsetPlaceholderPreview(boolean value)voidsetThreshold(int value)voidstart(java.awt.event.MouseEvent e, mxCellState state)Sets the translation of the preview.java.lang.Object[]stop(boolean commit, java.awt.event.MouseEvent e, double dx, double dy, boolean clone, java.lang.Object target)voidupdate(java.awt.event.MouseEvent e, double dx, double dy, boolean clone)Sets the translation of the preview.-
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
-
-
-
-
Constructor Detail
-
mxMovePreview
public mxMovePreview(mxGraphComponent graphComponent)
Constructs a new rubberband selection for the given graph component.- Parameters:
graphComponent- Component that contains the rubberband.
-
-
Method Detail
-
getThreshold
public int getThreshold()
-
setThreshold
public void setThreshold(int value)
-
isPlaceholderPreview
public boolean isPlaceholderPreview()
-
setPlaceholderPreview
public void setPlaceholderPreview(boolean value)
-
isClonePreview
public boolean isClonePreview()
-
setClonePreview
public void setClonePreview(boolean value)
-
isContextPreview
public boolean isContextPreview()
-
setContextPreview
public void setContextPreview(boolean value)
-
isHideSelectionHandler
public boolean isHideSelectionHandler()
-
setHideSelectionHandler
public void setHideSelectionHandler(boolean value)
-
isActive
public boolean isActive()
-
getMovingCells
public java.lang.Object[] getMovingCells()
FIXME: Cells should be assigned outside of getPreviewStates
-
getCells
public java.lang.Object[] getCells(mxCellState initialState)
-
start
public void start(java.awt.event.MouseEvent e, mxCellState state)Sets the translation of the preview.
-
createCellStatePreview
public mxCellStatePreview createCellStatePreview()
-
update
public void update(java.awt.event.MouseEvent e, double dx, double dy, boolean clone)Sets the translation of the preview.
-
stop
public java.lang.Object[] stop(boolean commit, java.awt.event.MouseEvent e, double dx, double dy, boolean clone, java.lang.Object target)
-
paint
public void paint(java.awt.Graphics g)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG