public class SelectionRotater extends DrawHandle
| Modifier and Type | Class and Description |
|---|---|
static class |
SelectionRotater.CenterPoint |
static class |
SelectionRotater.RotationCenter |
| Modifier and Type | Field and Description |
|---|---|
private SelectionRotater.CenterPoint |
center |
_tmpPt, _tmpTr, allNucs, boxSize, cachedBounds, controller, customCursor, defaultBgColor, defaultLineColor, defaultOutline, icon, location, SNAP_DISTANCE, startLocation, targetNuc, view| Constructor and Description |
|---|
SelectionRotater(SceneController controller) |
| Modifier and Type | Method and Description |
|---|---|
void |
dragComplete(boolean success)
Called when the user has completed dragging (e.g.
|
SelectionRotater.CenterPoint |
getCenterPoint() |
SceneUpdateInfo |
getCompletionEvent() |
boolean |
isValid() |
protected void |
nucPositionsChanged()
Called when any nucleotides in the scene changed position,
EXCEPT when THIS DrawHandle is in the middle of a performDrag operation
(because any nucleotide changes then are likely due to its own drag operation).
|
protected void |
performDrag(java.awt.Point start,
java.awt.Point prev,
java.awt.Point current,
SceneController.DragOpts options)
Called when this handle has been dragged by the user.
|
protected void |
prepareDraw(boolean isDragging) |
(package private) void |
resetLocation() |
protected void |
selectionChanged() |
void |
setSelection(Nuc focus,
java.util.Collection<Nuc> selection) |
calcBoxPos, drag, dragStarted, draw, drawBox, getBounds, getBoxSize, getModelSpaceDeltaTransform, isEnabled, isUpdating, layoutUpdated, moveLocation, setBoxSize, setEnabled, setIcon, settingsChangedprivate SelectionRotater.CenterPoint center
public SelectionRotater(SceneController controller)
public void dragComplete(boolean success)
DrawHandledragComplete in class DrawHandlesuccess - Whether the action was successful (and therefore should be stored in the UNDO history).public SelectionRotater.CenterPoint getCenterPoint()
public SceneUpdateInfo getCompletionEvent()
getCompletionEvent in class DrawHandlepublic boolean isValid()
isValid in class DrawHandleprotected void nucPositionsChanged()
DrawHandlenucPositionsChanged in class DrawHandleprotected void performDrag(java.awt.Point start,
java.awt.Point prev,
java.awt.Point current,
SceneController.DragOpts options)
performDrag in class DrawHandleprotected void prepareDraw(boolean isDragging)
prepareDraw in class DrawHandlevoid resetLocation()
protected void selectionChanged()
selectionChanged in class DrawHandlepublic void setSelection(Nuc focus, java.util.Collection<Nuc> selection)
setSelection in class DrawHandle