@TestClass(value="org.openscience.cdk.renderer.visitor.AbstractAWTDrawVisitorTest") public abstract class AbstractAWTDrawVisitor extends Object implements IDrawVisitor
IDrawVisitor
interface for the AWT
widget toolkit, allowing molecules to be rendered with toolkits based on
AWT, like the Java reference graphics platform Swing.Constructor and Description |
---|
AbstractAWTDrawVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
setTransform(AffineTransform transform)
Sets a new affine transformation to convert world coordinates into
screen coordinates.
|
int[] |
transformPoint(double xCoord,
double yCoord)
Transforms a point according to the current affine transformation,
converting a world coordinate into a screen coordinate.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setFontManager, setRendererModel
visit
@TestMethod(value="testTransformPoint") public int[] transformPoint(double xCoord, double yCoord)
xCoord
- x-coordinate of the world point to transformyCoord
- y-coordinate of the world point to transform@TestMethod(value="testSetAffineTransformation") public void setTransform(AffineTransform transform)
setTransform
in interface IRenderingVisitor
transform
- the new AffineTransform
.