indexing
description: "Closed figures filled with background_color."
legal: "See notice at end of class."
status: "See notice at end of class."
keywords: "figure, atomic, filled, closed"
date: "$Date: 2006-01-22 18:25:44 -0800 (Sun, 22 Jan 2006) $"
revision: "$Revision: 56675 $"
deferred class interface
EV_CLOSED_FIGURE
feature
background_color: EV_COLOR
`Current'
dashed_line_style: BOOLEAN
EV_ATOMIC_FIGURE
foreground_color: EV_COLOR
EV_ATOMIC_FIGURE
generating_type: STRING_8
ANY
generator: STRING_8
ANY
group: EV_FIGURE_GROUP
`Current'
EV_FIGURE
frozen id_object (an_id: INTEGER_32): IDENTIFIED
`an_id'
IDENTIFIED
ensure IDENTIFIED
consistent: Result = Void or else Result.object_id = an_id
line_width: INTEGER_32
EV_ATOMIC_FIGURE
frozen object_id: INTEGER_32
IDENTIFIED
ensure IDENTIFIED
valid_id: id_object (Result) = Current
orientation: REAL_64
`Current'
EV_FIGURE
pebble: ANY
EV_FIGURE
pebble_function: FUNCTION [ANY, TUPLE, ANY]
`Void'pebble
EV_FIGURE
point_array: ARRAY [EV_COORDINATE]
points
EV_FIGURE
ensure EV_FIGURE
same_length: Result.count = points.count
point_count: INTEGER_32
`Current'
EV_FIGURE
pointer_style: EV_POINTER_STYLE
EV_FIGURE
target_name: STRING_GENERAL
`Current'
EV_ABSTRACT_PICK_AND_DROPABLE
world: EV_FIGURE_WORLD
`Current'
EV_FIGURE
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
accept_cursor: EV_POINTER_STYLE
pebble
EV_FIGURE
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
deny_cursor: EV_POINTER_STYLE
EV_FIGURE
has_capture: BOOLEAN
`Current'
EV_FIGURE
is_filled: BOOLEAN
is_sensitive: BOOLEAN
EV_FIGURE
is_show_requested: BOOLEAN
`Current'
EV_FIGURE
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
feature
disable_capture
world
EV_FIGURE
require EV_FIGURE
in_world: world /= Void
ensure EV_FIGURE
capture_released: not has_capture
disable_dashed_line_style
EV_ATOMIC_FIGURE
ensure EV_ATOMIC_FIGURE
dashed_line_style_disabled: not dashed_line_style
disable_sensitive
EV_FIGURE
ensure EV_FIGURE
insensitive_requested: not internal_is_sensitive
enable_capture
world
EV_FIGURE
require EV_FIGURE
in_world: world /= Void
ensure EV_FIGURE
capture_set: has_capture
enable_dashed_line_style
EV_ATOMIC_FIGURE
ensure EV_ATOMIC_FIGURE
dashed_line_style_enabled: dashed_line_style
enable_sensitive
EV_FIGURE
ensure EV_FIGURE
sensitive_requested: internal_is_sensitive
hide
`Current'group
EV_FIGURE
ensure EV_FIGURE
not_is_show_requested: not is_show_requested
intersects (r: EV_RECTANGLE): BOOLEAN
`r'`Current'bounding_box
EV_FIGURE
remove_background_color
ensure
background_color_removed: background_color = Void
set_background_color (a_color: EV_COLOR)
background_color`a_color'
require
a_color_exists: a_color /= Void
ensure
background_color_assigned: background_color = a_color
set_foreground_color (a_color: EV_COLOR)
`a_color'foreground_color
EV_ATOMIC_FIGURE
require EV_ATOMIC_FIGURE
a_color_not_void: a_color /= Void
ensure EV_ATOMIC_FIGURE
foreground_color_assigned: foreground_color = a_color
set_line_width (a_width: INTEGER_32)
`a_width'line_width
EV_ATOMIC_FIGURE
require EV_ATOMIC_FIGURE
a_width_non_negative: a_width >= 0
ensure EV_ATOMIC_FIGURE
line_width_assigned: line_width = a_width
set_target_name (a_name: STRING_GENERAL)
`a_name'target_name
EV_ABSTRACT_PICK_AND_DROPABLE
require EV_ABSTRACT_PICK_AND_DROPABLE
a_name_not_void: a_name /= Void
ensure EV_ABSTRACT_PICK_AND_DROPABLE
target_name_assigned: a_name /= target_name and a_name.is_equal (target_name)
show
`Current'group
`True'
EV_FIGURE
ensure EV_FIGURE
is_show_requested: is_show_requested
feature
remove_pebble
pebble`Void'pebble_function
EV_FIGURE
ensure EV_ABSTRACT_PICK_AND_DROPABLE
pebble_removed: pebble = Void and pebble_function = Void
set_accept_cursor (a_cursor: EV_POINTER_STYLE)
`a_cursor'
pebble
EV_FIGURE
require EV_ABSTRACT_PICK_AND_DROPABLE
a_cursor_not_void: a_cursor /= Void
ensure EV_ABSTRACT_PICK_AND_DROPABLE
accept_cursor_assigned: accept_cursor.is_equal (a_cursor)
set_deny_cursor (a_cursor: EV_POINTER_STYLE)
`a_cursor'
EV_FIGURE
require EV_ABSTRACT_PICK_AND_DROPABLE
a_cursor_not_void: a_cursor /= Void
ensure EV_ABSTRACT_PICK_AND_DROPABLE
deny_cursor_assigned: deny_cursor.is_equal (a_cursor)
set_origin (an_origin: EV_RELATIVE_POINT)
`o'
EV_FIGURE
set_pebble (a_pebble: like pebble)
`a_pebble'pebble
EV_FIGURE
require EV_ABSTRACT_PICK_AND_DROPABLE
a_pebble_not_void: a_pebble /= Void
ensure EV_ABSTRACT_PICK_AND_DROPABLE
pebble_assigned: pebble = a_pebble
set_pebble_function (a_function: FUNCTION [ANY, TUPLE, ANY])
`a_function'pebble
EV_FIGURE
require EV_ABSTRACT_PICK_AND_DROPABLE
a_function_not_void: a_function /= Void
a_function_takes_two_integer_open_operands: a_function.valid_operands ([1, 1])
ensure EV_ABSTRACT_PICK_AND_DROPABLE
pebble_function_assigned: pebble_function = a_function
set_pointer_style (a_cursor: like pointer_style)
`a_cursor'pointer_style
EV_FIGURE
require EV_FIGURE
a_cursor_not_void: a_cursor /= Void
ensure EV_FIGURE
pointer_style_assigned: pointer_style = a_cursor
feature
copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
conforming_pick_actions: EV_NOTIFY_ACTION_SEQUENCE
EV_FIGURE
drop_actions: EV_PND_ACTION_SEQUENCE
`Current'
EV_FIGURE
pick_actions: EV_PND_START_ACTION_SEQUENCE
pebble
EV_FIGURE
pointer_button_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
EV_FIGURE
pointer_button_release_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
EV_FIGURE
pointer_double_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
EV_FIGURE
pointer_enter_actions: EV_NOTIFY_ACTION_SEQUENCE
EV_FIGURE
pointer_leave_actions: EV_NOTIFY_ACTION_SEQUENCE
EV_FIGURE
pointer_motion_actions: EV_POINTER_MOTION_ACTION_SEQUENCE
EV_FIGURE
feature
bounding_box: EV_RECTANGLE
`Current'
EV_FIGURE
ensure EV_FIGURE
not_void: Result /= Void
position_on_figure (x, y: INTEGER_32): BOOLEAN
`x'`y'
EV_FIGURE
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
invariant
EV_ATOMIC_FIGURE
foreground_color_exists: foreground_color /= Void
line_width_non_negative: line_width >= 0
EV_FIGURE
points_not_void: points /= Void
points_correct_size: points.count = point_count
points_items_not_void: all_points_exist (points)
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
indexing
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 EV_CLOSED_FIGURE