T
- public abstract class AbstractDirectLayout<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected BoundsTree |
boundsTree |
static java.lang.String |
INVERTED |
protected Params |
params |
boolean |
shouldInvert |
Constructor and Description |
---|
AbstractDirectLayout() |
AbstractDirectLayout(boolean shouldInvert) |
Modifier and Type | Method and Description |
---|---|
void |
align(org.openscience.cdk.interfaces.IAtomContainer atomContainer,
javax.vecmath.Vector2d molAxis) |
abstract javax.vecmath.Vector2d |
getAxis() |
abstract double |
getAxisPosition() |
Params |
getParams() |
void |
invert(org.openscience.cdk.interfaces.IAtomContainer ac) |
abstract BoundsTree |
layout(T obj,
javax.vecmath.Vector2d axis) |
void |
setParams(Params params) |
void |
translateTo(org.openscience.cdk.interfaces.IAtomContainer ac,
double x,
double y,
java.awt.geom.Rectangle2D bounds) |
public static final java.lang.String INVERTED
protected Params params
protected BoundsTree boundsTree
public boolean shouldInvert
public AbstractDirectLayout()
public AbstractDirectLayout(boolean shouldInvert)
shouldInvert
- public abstract BoundsTree layout(T obj, javax.vecmath.Vector2d axis)
obj
- axis
- public abstract javax.vecmath.Vector2d getAxis()
public abstract double getAxisPosition()
public Params getParams()
public void setParams(Params params)
params
- public void translateTo(org.openscience.cdk.interfaces.IAtomContainer ac, double x, double y, java.awt.geom.Rectangle2D bounds)
ac
- x
- y
- bounds
- public void invert(org.openscience.cdk.interfaces.IAtomContainer ac)
ac
- public void align(org.openscience.cdk.interfaces.IAtomContainer atomContainer, javax.vecmath.Vector2d molAxis)
atomContainer
- molAxis
-