chemaxon.struc.graphics
Class MEFlow

java.lang.Object
  extended bychemaxon.struc.MObject
      extended bychemaxon.struc.graphics.MPolyline
          extended bychemaxon.struc.graphics.MEFlow
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class MEFlow
extends MPolyline

Electron flow arrow.

Since:
Marvin 3.5, 07/14/2004
Version:
3.5, 10/10/2004
Author:
Peter Csizmadia
See Also:
Serialized Form

Field Summary
static int E_SINK
          Electron sink.
static int E_SOURCE
          Electron source.
 
Fields inherited from class chemaxon.struc.graphics.MPolyline
ARROW_BACK_FLAG, ARROW_HALF_LEFT, ARROW_HALF_MASK, ARROW_HALF_RIGHT, CLOSED_FLAG, DEFAULT_THICKNESS, HEAD, TAIL, THICKNESS_SET_FLAG
 
Fields inherited from class chemaxon.struc.MObject
PAINT_ANTIALIAS, PAINT_FOCUSED, TRANSFORM_DISTORT
 
Constructor Summary
  MEFlow()
          Contructs an empty electron flow arrow.
  MEFlow(int ne)
          Contructs an empty electron flow arrow.
protected MEFlow(MEFlow l)
          Copy constructor.
  MEFlow(MPoint p1, MPoint p2, int ne)
          Contructs an electron flow arrow with the specified endpoints.
 
Method Summary
 java.lang.Object clone()
          Creates a clone.
 java.lang.Object getMolObject(int i)
          Gets the electron source or sink.
 int getNumElectrons()
          Gets the number of electrons the arrow represents.
 
Methods inherited from class chemaxon.struc.graphics.MPolyline
addAttributeKeys, calcCenter, checkValidity, containsAtom, copyProperties, distanceFrom, finishCloning, fixMidPointClones, getArcAngle, getArcCenter, getArcRadius, getArrowFlags, getArrowLength, getArrowWidth, getAttribute, getFlags, getMidPointLocation, getPoint, getPointCount, getPointRef, getPointRefCount, getPoints, getSkip, getThickness, hasBackground, hasColor, hasFace, hasLineColor, hasOutline, isArrow, isEmpty, isThicknessSet, paint, removeChild, replaceAtom, setArcAngle, setArrow, setArrowFlags, setArrowLength, setArrowWidth, setAttribute, setFlags, setPoints, setSkip, setThickness, transform, unselectContents
 
Methods inherited from class chemaxon.struc.MObject
addCdataAttributeKeys, addNotify, distanceFrom, getBackground, getColor, getLineColor, isChildOf, isInternalSelectable, isSelectableNow, isSelected, isTransformable, makeColor, removeNotify, setBackground, setColor, setLineColor, setSelected, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

E_SOURCE

public static final int E_SOURCE
Electron source.

See Also:
getMolObject(int), Constant Field Values

E_SINK

public static final int E_SINK
Electron sink.

See Also:
getMolObject(int), Constant Field Values
Constructor Detail

MEFlow

public MEFlow()
Contructs an empty electron flow arrow.


MEFlow

public MEFlow(int ne)
Contructs an empty electron flow arrow.

Parameters:
ne - one-electron (1) or two-electron (2) transfer

MEFlow

public MEFlow(MPoint p1,
              MPoint p2,
              int ne)
Contructs an electron flow arrow with the specified endpoints.

Parameters:
p1 - the starting point
p2 - the endpoint
ne - one-electron (1) or two-electron (2) transfer

MEFlow

protected MEFlow(MEFlow l)
Copy constructor.

Parameters:
l - the original arrow
Method Detail

getNumElectrons

public int getNumElectrons()
Gets the number of electrons the arrow represents.

Returns:
1 or 2

clone

public java.lang.Object clone()
Description copied from class: MObject
Creates a clone.

Overrides:
clone in class MPolyline

getMolObject

public java.lang.Object getMolObject(int i)
Gets the electron source or sink.

Parameters:
i - E_SOURCE or E_SINK
Returns:
a MolAtom, MolBond or MolAtom[2] (incipient bond) object