|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiDataTransferOperation
This class represents a data transfer operation, usually associated with a drag-and-drop operation or a 'paste from clipboard' operation.
| Constructor Summary | |
MiDataTransferOperation(MiPart source)
Constructs a new MiDataTransferOperation for the given source part. |
|
| Method Summary | |
static java.lang.String |
getCommonDataFormat(MiiDragAndDropParticipant source,
MiiDragAndDropParticipant target)
|
java.lang.Object |
getData()
Get the data to be transferred. |
java.lang.String |
getDataFormat()
|
MiPart |
getLook()
|
MiBounds |
getLookTargetBounds()
Gets the bounds of the graphics that is being dragged in target editor coordinates |
MiPoint |
getLookTargetPosition()
Gets the location of the cursor that is dragging the part |
MiPart |
getSource()
|
MiPart |
getTarget()
|
java.lang.Object |
getTransferredData()
Gets the data that was transferred. |
boolean |
isDragAndCut()
|
void |
setData(java.lang.Object data)
Set the data to be transferred. |
void |
setDataFormat(java.lang.String flavor)
|
void |
setLook(MiPart part)
|
void |
setLookTargetBounds(MiBounds b)
Sets the bounds of the graphics that is being dragged in target editor coordinates |
void |
setLookTargetPosition(MiPoint pt)
Sets the location of the cursor that is dragging the part |
void |
setSource(MiPart src)
Set the data to be transferred. |
void |
setTarget(MiPart obj)
|
void |
setTransferredData(java.lang.Object data)
Sets the data that was transferred. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MiDataTransferOperation(MiPart source)
source - the source of the data to be
transferred| Method Detail |
public boolean isDragAndCut()
public void setData(java.lang.Object data)
data - the data to transferpublic java.lang.Object getData()
public void setTransferredData(java.lang.Object data)
data - the data that was transferredpublic java.lang.Object getTransferredData()
public void setSource(MiPart src)
public MiPart getSource()
public void setDataFormat(java.lang.String flavor)
public java.lang.String getDataFormat()
public void setTarget(MiPart obj)
public MiPart getTarget()
public void setLook(MiPart part)
public MiPart getLook()
public void setLookTargetPosition(MiPoint pt)
pt - location of cursor in target editor coordinatesgetLookTargetPosition(),
getLookTargetBounds()public MiPoint getLookTargetPosition()
getLookTargetBounds(),
setLookTargetPosition(com.swfm.mica.core.MiPoint)public void setLookTargetBounds(MiBounds b)
b - bounds of graphics in target editor coordinatesgetLookTargetPosition(),
getLookTargetBounds(),
setLookTargetPosition(com.swfm.mica.core.MiPoint)public MiBounds getLookTargetBounds()
getLookTargetPosition(),
setLookTargetBounds(com.swfm.mica.core.MiBounds)
public static java.lang.String getCommonDataFormat(MiiDragAndDropParticipant source,
MiiDragAndDropParticipant target)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||