note description: "Description of point (implementation for X)" legal: "See notice at end of class."; status: "See notice at end of class."; date: "$Date$"; revision: "$Revision$" class POINT inherit OPEN_FIG redefine conf_recompute end; INTERIOR rename make as interior_make end; COORD_XY_FIG rename duplicate as coord_duplicate undefine unset_conf_modified, set_conf_modified, set_conf_modified_with redefine conf_recompute end; COORD_XY_FIG undefine set_conf_modified_with, set_conf_modified, unset_conf_modified redefine duplicate, conf_recompute select duplicate end create make feature -- Initialization make -- Create a point. do init_fig (Void); interior_make ; logical_function_mode := GXcopy; end; feature -- Duplication duplicate: like Current -- Create a copy of current point. do Result := coord_duplicate; Result.set_foreground_color (foreground_color) ensure then Result.is_superimposable (Current); Result.foreground_color = foreground_color end; feature -- Output draw -- Draw current point. do if drawing.is_drawable then set_drawing_attributes (drawing); drawing.draw_point (Current) end end; feature {CONFIGURE_NOTIFY} -- Updating conf_recompute do surround_box.set (x, y, 1, 1); end; invariant origin_user_type <= 2 note copyright: "Copyright (c) 1984-2006, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class POINT