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, settingsChanged
private SelectionRotater.CenterPoint center
public SelectionRotater(SceneController controller)
public void dragComplete(boolean success)
DrawHandle
dragComplete
in class DrawHandle
success
- Whether the action was successful (and therefore should be stored in the UNDO history).public SelectionRotater.CenterPoint getCenterPoint()
public SceneUpdateInfo getCompletionEvent()
getCompletionEvent
in class DrawHandle
public boolean isValid()
isValid
in class DrawHandle
protected void nucPositionsChanged()
DrawHandle
nucPositionsChanged
in class DrawHandle
protected void performDrag(java.awt.Point start, java.awt.Point prev, java.awt.Point current, SceneController.DragOpts options)
performDrag
in class DrawHandle
protected void prepareDraw(boolean isDragging)
prepareDraw
in class DrawHandle
void resetLocation()
protected void selectionChanged()
selectionChanged
in class DrawHandle
public void setSelection(Nuc focus, java.util.Collection<Nuc> selection)
setSelection
in class DrawHandle