public static class SelectionRotater.CenterPoint extends DrawHandle
Modifier and Type | Field and Description |
---|---|
private SelectionRotater.RotationCenter |
center |
private Motif.Helix |
customHelix |
private Nuc |
customNuc |
private java.awt.geom.Point2D.Float |
modelLocation |
private SelectionRotater |
owner |
private java.awt.geom.Point2D.Float |
previousCenter |
private int |
selectionHash |
_tmpPt, _tmpTr, allNucs, boxSize, cachedBounds, controller, customCursor, defaultBgColor, defaultLineColor, defaultOutline, icon, location, SNAP_DISTANCE, startLocation, targetNuc, view
Constructor and Description |
---|
CenterPoint(SceneController controller,
SelectionRotater owner) |
Modifier and Type | Method and Description |
---|---|
private void |
calcLocation(java.awt.geom.Point2D.Float p) |
private void |
calcLocation(java.awt.geom.Point2D.Float p,
SelectionRotater.RotationCenter rc) |
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) |
private void |
reset() |
void |
saveRelativeLocation() |
protected void |
selectionChanged() |
calcBoxPos, drag, dragComplete, dragStarted, draw, drawBox, getBounds, getBoxSize, getModelSpaceDeltaTransform, isEnabled, isUpdating, layoutUpdated, moveLocation, setBoxSize, setEnabled, setIcon, setSelection, settingsChanged
private SelectionRotater.RotationCenter center
private Motif.Helix customHelix
private Nuc customNuc
private java.awt.geom.Point2D.Float modelLocation
private final SelectionRotater owner
private java.awt.geom.Point2D.Float previousCenter
private int selectionHash
public CenterPoint(SceneController controller, SelectionRotater owner)
private void calcLocation(java.awt.geom.Point2D.Float p)
private void calcLocation(java.awt.geom.Point2D.Float p, SelectionRotater.RotationCenter rc)
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)
DrawHandle
performDrag
in class DrawHandle
protected void prepareDraw(boolean isDragging)
prepareDraw
in class DrawHandle
private void reset()
public void saveRelativeLocation()
protected void selectionChanged()
selectionChanged
in class DrawHandle