Class ReactionArrow
- java.lang.Object
-
- com.actelion.research.chem.AbstractDrawingObject
-
- com.actelion.research.chem.reaction.ReactionArrow
-
public class ReactionArrow extends AbstractDrawingObject
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE_STRING
-
Fields inherited from class com.actelion.research.chem.AbstractDrawingObject
DESCRIPTOR_END, DESCRIPTOR_START, DESCRIPTOR_TYPE, mIsSelected, mPoint, mProtectedFromDeletion, mTransformationReferenceX, mTransformationReferenceY, mTransformationValue1, mTransformationValue2, SELECTION_COLOR
-
-
Constructor Summary
Constructors Constructor Description ReactionArrow()
ReactionArrow(java.lang.String descriptorDetail)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkHiliting(double x, double y)
void
clearHiliting()
AbstractDrawingObject
clone()
boolean
contains(double x, double y)
Checks, whether this drawing object contains the point at x,yvoid
draw(GenericDrawContext context, DepictorTransformation t)
java.awt.geom.Rectangle2D.Double
getBoundingRect(GenericDrawContext context)
java.lang.String
getDescriptorDetail()
Creates a string encoding all properties specific to this drawing object.float
getLength()
java.lang.String
getTypeString()
void
hilite(GenericDrawContext context)
boolean
isOnProductSide(double x, double y)
void
setCoordinates(double x1, double y1, double x2, double y2)
void
translate(double x, double y)
-
Methods inherited from class com.actelion.research.chem.AbstractDrawingObject
getDescriptor, instantiate, isDeletable, isSelected, isSurroundedBy, move, scale, setDeletable, setSelected, toString, translateInit, zoomAndRotate, zoomAndRotateInit
-
-
-
-
Field Detail
-
TYPE_STRING
public static final java.lang.String TYPE_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeString
public java.lang.String getTypeString()
- Specified by:
getTypeString
in classAbstractDrawingObject
-
getDescriptorDetail
public java.lang.String getDescriptorDetail()
Description copied from class:AbstractDrawingObject
Creates a string encoding all properties specific to this drawing object. Its type is not part of the descriptor detail. The detail must start, but not end with a space. Example: ' size="12" x="50.0" y="80.0"'- Specified by:
getDescriptorDetail
in classAbstractDrawingObject
- Returns:
- concatenated property list, each property with a leading space
-
clone
public AbstractDrawingObject clone()
- Specified by:
clone
in classAbstractDrawingObject
-
getLength
public float getLength()
-
setCoordinates
public void setCoordinates(double x1, double y1, double x2, double y2)
-
translate
public void translate(double x, double y)
- Overrides:
translate
in classAbstractDrawingObject
-
draw
public void draw(GenericDrawContext context, DepictorTransformation t)
- Specified by:
draw
in classAbstractDrawingObject
-
hilite
public void hilite(GenericDrawContext context)
- Specified by:
hilite
in classAbstractDrawingObject
-
contains
public boolean contains(double x, double y)
Description copied from class:AbstractDrawingObject
Checks, whether this drawing object contains the point at x,y- Specified by:
contains
in classAbstractDrawingObject
- Returns:
-
checkHiliting
public boolean checkHiliting(double x, double y)
- Specified by:
checkHiliting
in classAbstractDrawingObject
-
clearHiliting
public void clearHiliting()
- Specified by:
clearHiliting
in classAbstractDrawingObject
-
getBoundingRect
public java.awt.geom.Rectangle2D.Double getBoundingRect(GenericDrawContext context)
- Overrides:
getBoundingRect
in classAbstractDrawingObject
-
isOnProductSide
public boolean isOnProductSide(double x, double y)
-
-