note description: "Print in lines the eiffel type with all its eiffel features corresponding to the given dotnet type name." legal: "See notice at end of class." status: "See notice at end of class." author: "Julien" date: "$Date$" revision: "$Revision$" class DISPLAYED_LINE create make feature {NONE} -- Initialization make -- Initialiaze `entities'. do create entities.make create path_icon.make_empty ensure non_void_entities: entities /= Void non_void_path_icon: path_icon /= Void end feature -- Access entities: LINKED_LIST [ENTITY_LINE] -- entities contained in line. path_icon: STRING -- Path to icon. selected: BOOLEAN -- Is line selected? feature -- Status Setting set_selected (a_bool: BOOLEAN) -- set `selected' wit `a_bool'. do selected := a_bool ensure selected_set: selected = a_bool end set_path_icon (a_path: STRING) -- Set `path_icon' with `a_path'. do path_icon := a_path ensure path_icon_set: path_icon = a_path end feature -- Basic Operation clear -- wipe out `entities'. do entities.wipe_out ensure entities_empty: entities.count = 0 end number_characters: INTEGER -- number of characters of line. local initial_cursor: CURSOR do initial_cursor := entities.cursor from entities.start until entities.after loop Result := Result + entities.item.image.count entities.forth end entities.go_to (initial_cursor) end number_pixels: INTEGER -- number of pixels of line. local initial_cursor: CURSOR do initial_cursor := entities.cursor from entities.start until entities.after loop Result := Result + entities.item.font.string_width (entities.item.image) entities.forth end entities.go_to (initial_cursor) end invariant non_void_entities: entities /= Void non_void_path_icon: path_icon /= Void note copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" 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 DISPLAYED_LINE