indexing
description: "Graphically representable objects."
status: "See notice at end of class"
keywords: "figure, graphic"
date: "$Date$"
revision: "$Revision$"
deferred class interface
EV_FIGURE
feature
group: EV_FIGURE_GROUP
Current
frozen id_object (an_id: INTEGER): IDENTIFIED
an_id
IDENTIFIED
ensure IDENTIFIED
consistent: Result = void or else Result.object_id = an_id
frozen object_id: INTEGER
IDENTIFIED
ensure IDENTIFIED
valid_id: id_object (Result) = Current
orientation: DOUBLE
Current
pebble: ANY
pebble_function: FUNCTION [ANY, TUPLE, ANY]
Voidpebble
point_array: ARRAY [EV_COORDINATE]
points
ensure
same_length: Result.count = points.count
point_count: INTEGER
Current
pointer_style: EV_CURSOR
target_name: STRING
Current
EV_ABSTRACT_PICK_AND_DROPABLE
world: EV_FIGURE_WORLD
Current
feature
has_capture: BOOLEAN
Current
is_sensitive: BOOLEAN
is_show_requested: BOOLEAN
Current
feature
disable_capture
world
require
in_world: world /= void
ensure
capture_released: not has_capture
disable_sensitive
ensure
insensitive_requested: not internal_is_sensitive
enable_capture
world
require
in_world: world /= void
ensure
capture_set: has_capture
enable_sensitive
ensure
sensitive_requested: internal_is_sensitive
hide
Currentgroup
ensure
not_is_show_requested: not is_show_requested
intersects (r: EV_RECTANGLE): BOOLEAN
rCurrentbounding_box
set_target_name (a_name: STRING)
a_nametarget_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
Currentgroup
True
ensure
is_show_requested: is_show_requested
feature
remove_pebble
pebbleVoidpebble_function
ensure EV_ABSTRACT_PICK_AND_DROPABLE
pebble_removed: pebble = void and pebble_function = void
set_accept_cursor (a_cursor: EV_CURSOR)
a_cursor
pebble
ensure EV_ABSTRACT_PICK_AND_DROPABLE
accept_cursor_assigned: accept_cursor.is_equal (a_cursor)
set_deny_cursor (a_cursor: EV_CURSOR)
a_cursor
ensure EV_ABSTRACT_PICK_AND_DROPABLE
deny_cursor_assigned: deny_cursor.is_equal (a_cursor)
set_origin (an_origin: EV_RELATIVE_POINT)
o
set_pebble (a_pebble: like pebble)
a_pebblepebble
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_functionpebble
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_cursorpointer_style
require
a_cursor_not_void: a_cursor /= void
ensure
pointer_style_assigned: pointer_style = a_cursor
feature
conforming_pick_actions: EV_NOTIFY_ACTION_SEQUENCE
drop_actions: EV_PND_ACTION_SEQUENCE
Current
pick_actions: EV_PND_START_ACTION_SEQUENCE
pebble
pointer_button_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
pointer_button_release_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
pointer_double_press_actions: EV_POINTER_BUTTON_ACTION_SEQUENCE
pointer_enter_actions: EV_NOTIFY_ACTION_SEQUENCE
pointer_leave_actions: EV_NOTIFY_ACTION_SEQUENCE
pointer_motion_actions: EV_POINTER_MOTION_ACTION_SEQUENCE
proximity_in_actions: EV_PROXIMITY_ACTION_SEQUENCE
proximity_out_actions: EV_PROXIMITY_ACTION_SEQUENCE
feature
bounding_box: EV_RECTANGLE
Current
ensure
not_void: Result /= void
position_on_figure (x, y: INTEGER): BOOLEAN
xy
invariant
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)
end -- EV_FIGURE