Class AbstractDrawingObject

    • Field Detail

      • DESCRIPTOR_START

        protected static final java.lang.String DESCRIPTOR_START
        See Also:
        Constant Field Values
      • DESCRIPTOR_TYPE

        protected static final java.lang.String DESCRIPTOR_TYPE
        See Also:
        Constant Field Values
      • SELECTION_COLOR

        protected static final java.awt.Color SELECTION_COLOR
      • mPoint

        protected java.awt.geom.Point2D.Double[] mPoint
      • mIsSelected

        protected boolean mIsSelected
      • mProtectedFromDeletion

        protected boolean mProtectedFromDeletion
      • mTransformationReferenceX

        protected double mTransformationReferenceX
      • mTransformationReferenceY

        protected double mTransformationReferenceY
      • mTransformationValue1

        protected double[] mTransformationValue1
      • mTransformationValue2

        protected double[] mTransformationValue2
    • Constructor Detail

      • AbstractDrawingObject

        public AbstractDrawingObject()
    • Method Detail

      • clearHiliting

        public abstract void clearHiliting()
      • contains

        public abstract boolean contains​(double x,
                                         double y)
        Checks, whether this drawing object contains the point at x,y
        Parameters:
        x -
        y -
        Returns:
      • checkHiliting

        public abstract boolean checkHiliting​(double x,
                                              double y)
      • getDescriptorDetail

        public abstract java.lang.String getDescriptorDetail()
        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"'
        Returns:
        concatenated property list, each property with a leading space
      • getTypeString

        public abstract java.lang.String getTypeString()
      • move

        public void move​(double dx,
                         double dy)
      • scale

        public void scale​(double f)
      • isDeletable

        public boolean isDeletable()
      • setDeletable

        public void setDeletable​(boolean d)
      • isSelected

        public boolean isSelected()
      • setSelected

        public void setSelected​(boolean s)
      • getBoundingRect

        public java.awt.geom.Rectangle2D.Double getBoundingRect​(GenericDrawContext context)
      • isSurroundedBy

        public boolean isSurroundedBy​(GenericShape shape)
      • translateInit

        public void translateInit​(double x,
                                  double y)
      • translate

        public void translate​(double x,
                              double y)
      • zoomAndRotateInit

        public void zoomAndRotateInit​(double x,
                                      double y)
      • zoomAndRotate

        public void zoomAndRotate​(double zoom,
                                  double angle)
      • getDescriptor

        public java.lang.String getDescriptor()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object