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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classFixed rectangle point that can be a point of a polyline.
- 
Field SummaryFieldsFields inherited from class chemaxon.struc.MObjectTRANSFORM_DISTORT
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedMRectanglePoint(MRectangle r, int i, double x, double y, double z) Contructs a rectangle corner point object.protectedCopy constructor.
- 
Method SummaryModifier 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.MPointcalcCenter, distanceFrom, getLocation, getLocation, getLocation, getPoint, getPointCount, getPointRef, getPointRefCount, isInternalSelectableMethods inherited from class chemaxon.struc.MObjectaddAttributeKeys, 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- 
positionInRectprotected transient byte positionInRect
- 
parentRect
 
- 
- 
Constructor Details- 
MRectanglePointContructs a rectangle corner point object.- Parameters:
- r- the parent rectangle
- i- position on the rectangle (0-3)
- x- the x coordinate
- y- the y coordinate
- z- the z coordinate
 
- 
MRectanglePointCopy constructor.- Parameters:
- p- the point
 
 
- 
- 
Method Details- 
hashCodepublic int hashCode()
- 
equalsTwo rectangle points equal if their parent rectangles are the same and they are on the same corner or edge.
- 
cloneDescription copied from class:MObjectCreates a clone.
- 
isSelectableNowpublic boolean isSelectableNow()Description copied from class:MObjectIs the object selectable now?- Overrides:
- isSelectableNowin class- MObject
- Returns:
- true for ordinary objects, false for some internal selectables
 
- 
isChildOfIs this object a children of another one?
- 
getPositionInRectpublic int getPositionInRect()Gets the position in the rectangle.- Returns:
- the position
- Since:
- Marvin 4.1, 03/06/2006
 
- 
getParentRectGets the parent rectangle.- Returns:
- the parent rectangle
- Since:
- Marvin 4.1, 03/06/2006
 
- 
addNotifyPoint added to a document.
- 
removeNotifyPoint removed from a document.- Overrides:
- removeNotifyin class- MObject
- Parameters:
- doc- The document from which the object is removed.
 
- 
setLocationSets the coordinates.- Overrides:
- setLocationin class- MPoint
- Parameters:
- p- the new location
- t- the viewing transformation or null
 
- 
transformTransforms all points.
- 
toStringDescription 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.
- 
isTransformablepublic boolean isTransformable()Description copied from class:MObjectIs it a transformable object?- Overrides:
- isTransformablein class- MObject
- Returns:
- true if the object can be transformed, false otherwise
 
 
-