Package chemaxon.struc.graphics
Class MRectanglePoint
java.lang.Object
chemaxon.struc.MObject
chemaxon.struc.MPoint
chemaxon.struc.graphics.MRectanglePoint
- All Implemented Interfaces:
 Serializable,Cloneable
- Direct Known Subclasses:
 MRectanglePoint.Sticky
Rectangle point object.
- Since:
 - Marvin 3.3, 10/18/2003
 - See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFixed rectangle point that can be a point of a polyline. - 
Field Summary
FieldsFields inherited from class chemaxon.struc.MObject
TRANSFORM_DISTORT - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMRectanglePoint(MRectangle r, int i, double x, double y, double z) Contructs a rectangle corner point object.protectedCopy constructor. - 
Method Summary
Modifier and TypeMethodDescriptionvoidPoint added to a document.clone()Creates a clone.booleanTwo rectangle points equal if their parent rectangles are the same and they are on the same corner or edge.Gets the parent rectangle.intGets the position in the rectangle.inthashCode()booleanIs this object a children of another one?booleanIs the object selectable now?booleanIs it a transformable object?voidremoveNotify(MDocument doc) Point removed from a document.voidsetLocation(DPoint3 p, CTransform3D t) Sets the coordinates.toString()Overrides Object.toString() to ease debugging.voidtransform(CTransform3D t, int opts, CTransform3D trot) Transforms all points.Methods inherited from class chemaxon.struc.MPoint
calcCenter, distanceFrom, getLocation, getLocation, getLocation, getPoint, getPointCount, getPointRef, getPointRefCount, isInternalSelectableMethods inherited from class chemaxon.struc.MObject
addAttributeKeys, addCdataAttributeKeys, checkValidity, clearProperties, connectToSgroupOfAtom, containsAtom, containsPoint, containsPropertyKey, distanceFrom, finishCloning, fixClonedPoints, getAttribute, getBackground, getColor, getContainerMObject, getLineColor, getProperty, hasBackground, hasColor, hasLineColor, isEmpty, isReactionArrow, isSelected, makeColor, propertyCount, propertyKeySet, propertySet, putProperty, removeAtom, removeChild, removeProperty, replaceAtom, setAttribute, setBackground, setColor, setLineColor, setSelected, unselectContents, updateBoundingRect, updateBoundingRect 
- 
Field Details
- 
positionInRect
protected transient byte positionInRect - 
parentRect
 
 - 
 - 
Constructor Details
- 
MRectanglePoint
Contructs a rectangle corner point object.- Parameters:
 r- the parent rectanglei- position on the rectangle (0-3)x- the x coordinatey- the y coordinatez- the z coordinate
 - 
MRectanglePoint
Copy constructor.- Parameters:
 p- the point
 
 - 
 - 
Method Details
- 
hashCode
public int hashCode() - 
equals
Two rectangle points equal if their parent rectangles are the same and they are on the same corner or edge. - 
clone
Description copied from class:MObjectCreates a clone. - 
isSelectableNow
public boolean isSelectableNow()Description copied from class:MObjectIs the object selectable now?- Overrides:
 isSelectableNowin classMObject- Returns:
 - true for ordinary objects, false for some internal selectables
 
 - 
isChildOf
Is this object a children of another one? - 
getPositionInRect
public int getPositionInRect()Gets the position in the rectangle.- Returns:
 - the position
 - Since:
 - Marvin 4.1, 03/06/2006
 
 - 
getParentRect
Gets the parent rectangle.- Returns:
 - the parent rectangle
 - Since:
 - Marvin 4.1, 03/06/2006
 
 - 
addNotify
Point added to a document. - 
removeNotify
Point removed from a document.- Overrides:
 removeNotifyin classMObject- Parameters:
 doc- The document from which the object is removed.
 - 
setLocation
Sets the coordinates.- Overrides:
 setLocationin classMPoint- Parameters:
 p- the new locationt- the viewing transformation or null
 - 
transform
Transforms all points. - 
toString
Description copied from class:MObjectOverrides Object.toString() to ease debugging. Returns a string consisting of the classname (without the package name!), the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. - 
isTransformable
public boolean isTransformable()Description copied from class:MObjectIs it a transformable object?- Overrides:
 isTransformablein classMObject- Returns:
 - true if the object can be transformed, false otherwise
 
 
 -