|
JGraph X 1.10.4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.util.mxEventSource
com.mxgraph.swing.handler.mxConnectPreview
public class mxConnectPreview
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 |
| Field Summary | |
|---|---|
protected mxGraphComponent |
graphComponent
|
protected mxCellState |
previewState
|
protected mxCellState |
sourceState
|
protected mxPoint |
startPoint
|
| Fields inherited from class com.mxgraph.util.mxEventSource |
|---|
eventListeners, eventsEnabled, eventSource |
| Constructor Summary | |
|---|---|
mxConnectPreview(mxGraphComponent graphComponent)
|
|
| Method Summary | |
|---|---|
protected Object |
createCell(mxCellState startState,
String style)
Creates a new instance of mxShape for previewing the edge. |
protected Rectangle |
getDirtyRect()
|
protected Rectangle |
getDirtyRect(mxRectangle dirty)
|
mxCellState |
getPreviewState()
|
mxCellState |
getSourceState()
|
mxPoint |
getStartPoint()
|
boolean |
isActive()
|
void |
paint(Graphics g)
|
protected void |
paintPreview(mxGraphics2DCanvas canvas)
Draws the preview using the graphics canvas. |
void |
revalidate(mxCellState pState,
Object cell)
|
void |
start(MouseEvent e,
mxCellState startState,
String style)
Updates the style of the edge preview from the incoming edge |
Object |
stop(boolean commit)
|
Object |
stop(boolean commit,
MouseEvent e)
|
protected mxPoint |
transformScreenPoint(double x,
double y)
|
void |
update(MouseEvent e,
mxCellState targetState,
double x,
double y)
|
| 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 mxGraphComponent graphComponent
protected mxCellState previewState
protected mxCellState sourceState
protected mxPoint startPoint
| Constructor Detail |
|---|
public mxConnectPreview(mxGraphComponent graphComponent)
graphComponent - | Method Detail |
|---|
protected Object createCell(mxCellState startState,
String style)
public boolean isActive()
public mxCellState getSourceState()
public mxCellState getPreviewState()
public mxPoint getStartPoint()
public void start(MouseEvent e,
mxCellState startState,
String style)
public void update(MouseEvent e,
mxCellState targetState,
double x,
double y)
protected Rectangle getDirtyRect()
protected Rectangle getDirtyRect(mxRectangle dirty)
protected mxPoint transformScreenPoint(double x,
double y)
public void revalidate(mxCellState pState,
Object cell)
public void paint(Graphics g)
protected void paintPreview(mxGraphics2DCanvas canvas)
public Object stop(boolean commit)
public Object stop(boolean commit,
MouseEvent e)
|
JGraph X 1.10.4.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||