Package com.actelion.research.gui.editor
Class GenericEditorToolbar
- java.lang.Object
-
- com.actelion.research.gui.editor.GenericEditorToolbar
-
- All Implemented Interfaces:
GenericMouseListener
public class GenericEditorToolbar extends java.lang.Object implements GenericMouseListener
-
-
Field Summary
Fields Modifier and Type Field Description protected static float
cButtonBorder
protected static int
cButtonCleanStructure
protected static int
cButtonClear
protected static float
cButtonSize
protected static int
cButtonsPerColumn
protected static int
cButtonUndo
protected static int
cESRMenuBorder
protected static int
cESRMenuX
protected static int
cESRMenuY
protected static int
cTool3Ring
protected static int
cTool4Ring
protected static int
cTool5Ring
protected static int
cTool6Ring
protected static int
cTool7Ring
protected static int
cToolAromRing
protected static int
cToolAtomBr
protected static int
cToolAtomC
protected static int
cToolAtomCl
protected static int
cToolAtomF
protected static int
cToolAtomH
protected static int
cToolAtomI
protected static int
cToolAtomN
protected static int
cToolAtomO
protected static int
cToolAtomOther
protected static int
cToolAtomP
protected static int
cToolAtomS
protected static int
cToolAtomSi
protected static int
cToolChain
protected static int
cToolDelete
protected static int
cToolDownBond
protected static int
cToolESR
protected static int
cToolESRAbs
protected static int
cToolESRAnd
protected static int
cToolESROr
static int
cToolLassoPointer
protected static int
cToolMapper
protected static int
cToolNegCharge
protected static int
cToolPosCharge
protected static int
cToolStdBond
protected static int
cToolText
protected static int
cToolUnknownParity
protected static int
cToolUpBond
protected static int
cToolZoom
protected int
mCurrentTool
protected int
mESRHilited
protected boolean
mESRMenuVisible
protected int
mESRSelected
protected int
mHeight
protected int
mMode
protected int
mPressedButton
protected int
mWidth
-
Constructor Summary
Constructors Constructor Description GenericEditorToolbar(GenericCanvas toolbarCanvas, GenericDrawArea theArea)
GenericEditorToolbar(GenericCanvas toolbarCanvas, GenericDrawArea theArea, int mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
createImage(java.lang.String fileName)
protected void
drawPressedButton(GenericDrawContext context, int button)
protected java.awt.Point
getButtonLocation(int button)
protected int
getButtonNo(GenericMouseEvent e)
int
getHeight()
int
getWidth()
void
mouseActionHappened(GenericMouseEvent e)
void
paintContent(GenericDrawContext context)
protected void
setButtonClip(GenericDrawContext context, int button)
void
setCurrentTool(int tool)
-
-
-
Field Detail
-
cButtonsPerColumn
protected static final int cButtonsPerColumn
- See Also:
- Constant Field Values
-
cButtonClear
protected static final int cButtonClear
- See Also:
- Constant Field Values
-
cButtonCleanStructure
protected static final int cButtonCleanStructure
- See Also:
- Constant Field Values
-
cToolLassoPointer
public static final int cToolLassoPointer
- See Also:
- Constant Field Values
-
cToolUnknownParity
protected static final int cToolUnknownParity
- See Also:
- Constant Field Values
-
cToolDelete
protected static final int cToolDelete
- See Also:
- Constant Field Values
-
cToolStdBond
protected static final int cToolStdBond
- See Also:
- Constant Field Values
-
cToolUpBond
protected static final int cToolUpBond
- See Also:
- Constant Field Values
-
cTool3Ring
protected static final int cTool3Ring
- See Also:
- Constant Field Values
-
cTool5Ring
protected static final int cTool5Ring
- See Also:
- Constant Field Values
-
cTool7Ring
protected static final int cTool7Ring
- See Also:
- Constant Field Values
-
cToolPosCharge
protected static final int cToolPosCharge
- See Also:
- Constant Field Values
-
cToolAtomC
protected static final int cToolAtomC
- See Also:
- Constant Field Values
-
cToolAtomN
protected static final int cToolAtomN
- See Also:
- Constant Field Values
-
cToolAtomO
protected static final int cToolAtomO
- See Also:
- Constant Field Values
-
cToolAtomF
protected static final int cToolAtomF
- See Also:
- Constant Field Values
-
cToolAtomBr
protected static final int cToolAtomBr
- See Also:
- Constant Field Values
-
cToolAtomH
protected static final int cToolAtomH
- See Also:
- Constant Field Values
-
cButtonUndo
protected static final int cButtonUndo
- See Also:
- Constant Field Values
-
cToolZoom
protected static final int cToolZoom
- See Also:
- Constant Field Values
-
cToolMapper
protected static final int cToolMapper
- See Also:
- Constant Field Values
-
cToolESR
protected static final int cToolESR
- See Also:
- Constant Field Values
-
cToolText
protected static final int cToolText
- See Also:
- Constant Field Values
-
cToolChain
protected static final int cToolChain
- See Also:
- Constant Field Values
-
cToolDownBond
protected static final int cToolDownBond
- See Also:
- Constant Field Values
-
cTool4Ring
protected static final int cTool4Ring
- See Also:
- Constant Field Values
-
cTool6Ring
protected static final int cTool6Ring
- See Also:
- Constant Field Values
-
cToolAromRing
protected static final int cToolAromRing
- See Also:
- Constant Field Values
-
cToolNegCharge
protected static final int cToolNegCharge
- See Also:
- Constant Field Values
-
cToolAtomSi
protected static final int cToolAtomSi
- See Also:
- Constant Field Values
-
cToolAtomP
protected static final int cToolAtomP
- See Also:
- Constant Field Values
-
cToolAtomS
protected static final int cToolAtomS
- See Also:
- Constant Field Values
-
cToolAtomCl
protected static final int cToolAtomCl
- See Also:
- Constant Field Values
-
cToolAtomI
protected static final int cToolAtomI
- See Also:
- Constant Field Values
-
cToolAtomOther
protected static final int cToolAtomOther
- See Also:
- Constant Field Values
-
cESRMenuBorder
protected static final int cESRMenuBorder
- See Also:
- Constant Field Values
-
cESRMenuX
protected static final int cESRMenuX
-
cESRMenuY
protected static final int cESRMenuY
-
cButtonBorder
protected static final float cButtonBorder
-
cButtonSize
protected static final float cButtonSize
-
cToolESRAbs
protected static final int cToolESRAbs
- See Also:
- Constant Field Values
-
cToolESROr
protected static final int cToolESROr
- See Also:
- Constant Field Values
-
cToolESRAnd
protected static final int cToolESRAnd
- See Also:
- Constant Field Values
-
mWidth
protected int mWidth
-
mHeight
protected int mHeight
-
mCurrentTool
protected int mCurrentTool
-
mPressedButton
protected int mPressedButton
-
mMode
protected int mMode
-
mESRSelected
protected int mESRSelected
-
mESRHilited
protected int mESRHilited
-
mESRMenuVisible
protected boolean mESRMenuVisible
-
-
Constructor Detail
-
GenericEditorToolbar
public GenericEditorToolbar(GenericCanvas toolbarCanvas, GenericDrawArea theArea)
-
GenericEditorToolbar
public GenericEditorToolbar(GenericCanvas toolbarCanvas, GenericDrawArea theArea, int mode)
-
-
Method Detail
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
createImage
public java.awt.image.BufferedImage createImage(java.lang.String fileName)
-
setCurrentTool
public void setCurrentTool(int tool)
-
paintContent
public void paintContent(GenericDrawContext context)
-
mouseActionHappened
public void mouseActionHappened(GenericMouseEvent e)
- Specified by:
mouseActionHappened
in interfaceGenericMouseListener
-
getButtonNo
protected int getButtonNo(GenericMouseEvent e)
-
setButtonClip
protected void setButtonClip(GenericDrawContext context, int button)
-
drawPressedButton
protected void drawPressedButton(GenericDrawContext context, int button)
-
getButtonLocation
protected java.awt.Point getButtonLocation(int button)
-
-