indexing
description: "Pixels on `point' with size `line_width'."
status: "See notive at end of class"
keywords: "figure, dot, point, pixel"
date: "$Date$"
revision: "$Revision$"
class interface
EV_FIGURE_DOT
create
default_create
EV_ATOMIC_FIGURE
make_with_point (a_point: EV_RELATIVE_POINT)
a_point
EV_SINGLE_POINTED_FIGURE
require EV_SINGLE_POINTED_FIGURE
a_point_not_void: a_point /= void
feature
default_create
EV_ATOMIC_FIGURE
feature
dashed_line_style: BOOLEAN
EV_ATOMIC_FIGURE
foreground_color: EV_COLOR
EV_ATOMIC_FIGURE
group: EV_FIGURE_GROUP
Current
EV_FIGURE
frozen id_object (an_id: INTEGER): IDENTIFIED
an_id
IDENTIFIED
ensure IDENTIFIED
consistent: Result = void or else Result.object_id = an_id
line_width: INTEGER
EV_ATOMIC_FIGURE
frozen object_id: INTEGER
IDENTIFIED
ensure IDENTIFIED
valid_id: id_object (Result) = Current
orientation: DOUBLE
Current
EV_FIGURE
pebble: ANY
EV_FIGURE
pebble_function: FUNCTION [ANY, TUPLE, ANY]
Voidpebble
EV_FIGURE
point: EV_RELATIVE_POINT
Current
EV_SINGLE_POINTED_FIGURE
point_array: ARRAY [EV_COORDINATE]
points
EV_FIGURE
ensure EV_FIGURE
same_length: Result.count = points.count
point_count: INTEGER
Current
EV_SINGLE_POINTED_FIGURE
pointer_style: EV_CURSOR
EV_FIGURE
target_name: STRING
Current
EV_ABSTRACT_PICK_AND_DROPABLE
world: EV_FIGURE_WORLD
Current
EV_FIGURE
feature
has_capture: BOOLEAN
Current
EV_FIGURE
is_sensitive: BOOLEAN
EV_FIGURE
is_show_requested: BOOLEAN
Current
EV_FIGURE
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
Currentgroup
EV_FIGURE
ensure EV_FIGURE
not_is_show_requested: not is_show_requested
intersects (r: EV_RECTANGLE): BOOLEAN
rCurrentbounding_box
EV_FIGURE
set_foreground_color (a_color: EV_COLOR)
a_colorforeground_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)
a_widthline_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_point (a_point: EV_RELATIVE_POINT)
a_pointpoint
EV_SINGLE_POINTED_FIGURE
require EV_SINGLE_POINTED_FIGURE
a_point_not_void: a_point /= void
ensure EV_SINGLE_POINTED_FIGURE
point_assigned: point = a_point
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
EV_FIGURE
ensure EV_FIGURE
is_show_requested: is_show_requested
feature
remove_pebble
pebbleVoidpebble_function
EV_FIGURE
ensure EV_ABSTRACT_PICK_AND_DROPABLE
pebble_removed: pebble = void and pebble_function = void
set_accept_cursor (a_cursor: EV_CURSOR)
a_cursor
pebble
EV_FIGURE
ensure EV_ABSTRACT_PICK_AND_DROPABLE
accept_cursor_assigned: accept_cursor.is_equal (a_cursor)
set_deny_cursor (a_cursor: EV_CURSOR)
a_cursor
EV_FIGURE
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_pebblepebble
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_functionpebble
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_cursorpointer_style
EV_FIGURE
require EV_FIGURE
a_cursor_not_void: a_cursor /= void
ensure EV_FIGURE
pointer_style_assigned: pointer_style = a_cursor
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
proximity_in_actions: EV_PROXIMITY_ACTION_SEQUENCE
EV_FIGURE
proximity_out_actions: EV_PROXIMITY_ACTION_SEQUENCE
EV_FIGURE
feature
position_on_figure (x, y: INTEGER): BOOLEAN
xy
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
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)
end -- EV_FIGURE_DOT