public abstract class AbstractDirectReactionLayout extends AbstractDirectLayout<org.openscience.cdk.interfaces.IReaction>
Modifier and Type | Field and Description |
---|---|
protected Axis |
arrowAxis |
protected double |
arrowPos |
protected BoundsTree |
productBoundsTree |
protected LinearMoleculeSetLayout |
productLayout |
protected BoundsTree |
reactantBoundsTree |
protected LinearMoleculeSetLayout |
reactantLayout |
boundsTree, INVERTED, params, shouldInvert
Constructor and Description |
---|
AbstractDirectReactionLayout() |
AbstractDirectReactionLayout(boolean shouldInvert) |
AbstractDirectReactionLayout(boolean shouldInvert,
javax.vecmath.Vector2d moleculeAxis) |
Modifier and Type | Method and Description |
---|---|
Axis |
getArrowAxis() |
javax.vecmath.Point2d |
getArrowCenter() |
double |
getArrowPos() |
javax.vecmath.Vector2d |
getProductAxis() |
double |
getProductAxisPos() |
BoundsTree |
getProductBounds() |
javax.vecmath.Vector2d |
getReactantAxis() |
double |
getReactantAxisPos() |
BoundsTree |
getReactantBounds() |
void |
setArrowPos(double pos) |
void |
setParams(Params params) |
void |
shiftMoleculeSet(org.openscience.cdk.interfaces.IAtomContainerSet molSet,
BoundsTree molSetBoundsTree,
double dx,
double dy) |
void |
shiftReaction(org.openscience.cdk.interfaces.IReaction reaction,
javax.vecmath.Vector2d axis,
double x,
double y) |
align, getAxis, getAxisPosition, getParams, invert, layout, translateTo
protected BoundsTree reactantBoundsTree
protected BoundsTree productBoundsTree
protected Axis arrowAxis
protected double arrowPos
protected LinearMoleculeSetLayout reactantLayout
protected LinearMoleculeSetLayout productLayout
public AbstractDirectReactionLayout()
public AbstractDirectReactionLayout(boolean shouldInvert)
shouldInvert
- public AbstractDirectReactionLayout(boolean shouldInvert, javax.vecmath.Vector2d moleculeAxis)
shouldInvert
- moleculeAxis
- public void setParams(Params params)
setParams
in class AbstractDirectLayout<org.openscience.cdk.interfaces.IReaction>
params
- public BoundsTree getReactantBounds()
public BoundsTree getProductBounds()
public javax.vecmath.Vector2d getReactantAxis()
public javax.vecmath.Vector2d getProductAxis()
public double getReactantAxisPos()
public double getProductAxisPos()
public Axis getArrowAxis()
public void shiftReaction(org.openscience.cdk.interfaces.IReaction reaction, javax.vecmath.Vector2d axis, double x, double y)
reaction
- axis
- x
- y
- public void shiftMoleculeSet(org.openscience.cdk.interfaces.IAtomContainerSet molSet, BoundsTree molSetBoundsTree, double dx, double dy)
molSet
- molSetBoundsTree
- dx
- dy
- public javax.vecmath.Point2d getArrowCenter()
public double getArrowPos()
public void setArrowPos(double pos)
pos
-