Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to draw reactions ? #65

Open
lpatiny opened this issue Dec 1, 2018 · 3 comments
Open

Possibility to draw reactions ? #65

lpatiny opened this issue Dec 1, 2018 · 3 comments

Comments

@lpatiny
Copy link
Member

lpatiny commented Dec 1, 2018

With the current version is it possible to draw reactions ?

Is it possible to have an example of code ?

@targos
Copy link
Member

targos commented Dec 1, 2018

I started to look into this. We need to implement createExtendedDepictor:

@Override
protected AbstractExtendedDepictor createExtendedDepictor() {
return null;
}

@targos
Copy link
Member

targos commented Dec 1, 2018

Here are the methods that need to be implemented:

public abstract AbstractDepictor createDepictor(StereoMolecule stereoMolecule, boolean mUseGraphics2D,DrawConfig cfg);
protected abstract void paintFragmentNumbers(T g);
protected abstract void paintStructures(T g);
protected abstract void paintDrawingObjects(T g);

@rufenerc
Copy link
Contributor

rufenerc commented Dec 1, 2018

All the required components are in the Java code. However, there are different opinions about how reactions should be handled:

  • Currently there's no support for information above/below the reaction arrow.
  • There's a "fixed" arrow which's layout and position is handled automatically.
    I will provide an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants