public class BranchSlider extends DrawHandle
Modifier and Type | Field and Description |
---|---|
private java.awt.geom.Point2D.Float |
_ptModel |
private Bond |
b3 |
private Bond |
b5 |
private Bond |
base |
private java.util.Set<Nuc> |
branchNucs |
private java.awt.Point |
handleOffset |
private Motif.Helix |
helix |
private Motif.Loop |
l3 |
private Motif.Loop |
l5 |
private static SceneUpdateInfo |
SlideBranch |
_tmpPt, _tmpTr, allNucs, boxSize, cachedBounds, controller, customCursor, defaultBgColor, defaultLineColor, defaultOutline, icon, location, SNAP_DISTANCE, startLocation, targetNuc, view
Constructor and Description |
---|
BranchSlider(SceneController controller) |
Modifier and Type | Method and Description |
---|---|
private void |
calcHandleOffset() |
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.
|
private void |
positionLoopNucs(Motif.Segment segment,
Ellipses.Circle circ,
boolean flipped) |
private void |
positionNucs(java.awt.geom.Point2D.Float newTargetLoc,
SceneController.DragOpts options) |
private void |
positionNucsRotate(java.awt.geom.Point2D.Float newTargetLoc,
SceneController.DragOpts options) |
protected void |
prepareDraw(boolean isDragging) |
protected void |
selectionChanged() |
void |
setSelection(Nuc focus,
java.util.Collection<Nuc> selection) |
calcBoxPos, drag, dragComplete, dragStarted, draw, drawBox, getBounds, getBoxSize, getModelSpaceDeltaTransform, isEnabled, isUpdating, layoutUpdated, moveLocation, setBoxSize, setEnabled, setIcon, settingsChanged
private java.awt.geom.Point2D.Float _ptModel
private Bond b3
private Bond b5
private Bond base
private java.util.Set<Nuc> branchNucs
private java.awt.Point handleOffset
private Motif.Helix helix
private Motif.Loop l3
private Motif.Loop l5
private static final SceneUpdateInfo SlideBranch
public BranchSlider(SceneController controller)
private void calcHandleOffset()
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
private void positionLoopNucs(Motif.Segment segment, Ellipses.Circle circ, boolean flipped)
private void positionNucs(java.awt.geom.Point2D.Float newTargetLoc, SceneController.DragOpts options)
private void positionNucsRotate(java.awt.geom.Point2D.Float newTargetLoc, SceneController.DragOpts options)
protected void prepareDraw(boolean isDragging)
prepareDraw
in class DrawHandle
protected void selectionChanged()
selectionChanged
in class DrawHandle
public void setSelection(Nuc focus, java.util.Collection<Nuc> selection)
setSelection
in class DrawHandle