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 floatcButtonBorderprotected static intcButtonCleanStructureprotected static intcButtonClearprotected static floatcButtonSizeprotected static intcButtonsPerColumnprotected static intcButtonUndoprotected static intcESRMenuBorderprotected static intcESRMenuXprotected static intcESRMenuYprotected static intcTool3Ringprotected static intcTool4Ringprotected static intcTool5Ringprotected static intcTool6Ringprotected static intcTool7Ringprotected static intcToolAromRingprotected static intcToolAtomBrprotected static intcToolAtomCprotected static intcToolAtomClprotected static intcToolAtomFprotected static intcToolAtomHprotected static intcToolAtomIprotected static intcToolAtomNprotected static intcToolAtomOprotected static intcToolAtomOtherprotected static intcToolAtomPprotected static intcToolAtomSprotected static intcToolAtomSiprotected static intcToolChainprotected static intcToolDeleteprotected static intcToolDownBondprotected static intcToolESRprotected static intcToolESRAbsprotected static intcToolESRAndprotected static intcToolESROrstatic intcToolLassoPointerprotected static intcToolMapperprotected static intcToolNegChargeprotected static intcToolPosChargeprotected static intcToolStdBondprotected static intcToolTextprotected static intcToolUnknownParityprotected static intcToolUpBondprotected static intcToolZoomprotected intmCurrentToolprotected intmESRHilitedprotected booleanmESRMenuVisibleprotected intmESRSelectedprotected intmHeightprotected intmModeprotected intmPressedButtonprotected intmWidth
-
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.BufferedImagecreateImage(java.lang.String fileName)protected voiddrawPressedButton(GenericDrawContext context, int button)protected java.awt.PointgetButtonLocation(int button)protected intgetButtonNo(GenericMouseEvent e)intgetHeight()intgetWidth()voidmouseActionHappened(GenericMouseEvent e)voidpaintContent(GenericDrawContext context)protected voidsetButtonClip(GenericDrawContext context, int button)voidsetCurrentTool(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:
mouseActionHappenedin 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)
-
-