note description: "Implementation interface for objects that represent paragraph formatting information." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" deferred class EV_PARAGRAPH_FORMAT_I inherit EV_ANY_I redefine interface end feature -- Status report alignment: INTEGER -- Current alignment. See EV_PARAGRAPH_CONSTANTS -- for possible values. deferred end left_margin: INTEGER -- Left margin between border and text in pixels. deferred end right_margin: INTEGER -- Right margin between line end and border in pixels. deferred end top_spacing: INTEGER -- Spacing between top of paragraph and previous line in pixels. deferred end bottom_spacing: INTEGER -- Spacing between bottom of paragraph and next line in pixels. deferred end feature -- Status setting set_alignment (an_alignment: INTEGER) -- Assign `an_alignment' to `alignment. deferred ensure alignment_set: alignment = an_alignment end set_left_margin (a_margin: INTEGER) -- Set `left_margin' to `a_margin'. require margin_non_negative: a_margin >= 0 deferred ensure margin_set: left_margin = a_margin end set_right_margin (a_margin: INTEGER) -- Set `right_margin' to `a_margin'. require margin_non_negative: a_margin >= 0 deferred ensure margin_set: right_margin = a_margin end set_top_spacing (a_spacing: INTEGER) -- Set `top_spacing' to `a_spacing'. require spacing_non_negative: a_spacing >= 0 deferred ensure spacing_set: top_spacing = a_spacing end set_bottom_spacing (a_spacing: INTEGER) -- Set `bottom_spacing' to `a_spacing'. require spacing_non_negative: a_spacing >= 0 deferred ensure spacing_set: bottom_spacing = a_spacing end feature {EV_ANY, EV_ANY_I} -- Implementation interface: detachable EV_PARAGRAPH_FORMAT note option: stable attribute end; 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 EV_PARAGRAPH_FORMAT_I