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, settingsChangedprivate 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 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)
DrawHandleperformDrag in class DrawHandleprotected void prepareDraw(boolean isDragging)
prepareDraw in class DrawHandleprivate void reset()
public void saveRelativeLocation()
protected void selectionChanged()
selectionChanged in class DrawHandle