indexing
description: "Projection to Postscript files."
legal: "See notice at end of class."
status: "See notice at end of class."
keywords: "projector, events, postscript"
date: "$Date: 2006-05-16 08:02:16 -0700 (Tue, 16 May 2006) $"
revision: "$Revision: 58985 $"
class interface
EV_POSTSCRIPT_PROJECTOR
create
make_with_filename (a_world: EV_FIGURE_WORLD; a_filename: FILE_NAME)
`a_world'`a_filename'
require
a_world_not_void: a_world /= Void
a_filename_not_void: a_filename /= Void
feature
bottom_margin: INTEGER_32
EV_FIGURE_POSTSCRIPT_DRAWER
generating_type: STRING_8
ANY
generator: STRING_8
ANY
left_margin: INTEGER_32
EV_FIGURE_POSTSCRIPT_DRAWER
point_height: INTEGER_32
EV_FIGURE_POSTSCRIPT_DRAWER
point_width: INTEGER_32
EV_FIGURE_POSTSCRIPT_DRAWER
postscript_result: STRING_8
EV_FIGURE_POSTSCRIPT_DRAWER
world: EV_FIGURE_WORLD
EV_PROJECTOR
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
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
default_bottom_margin: INTEGER_32 is 20
EV_POSTSCRIPT_PAGE_CONSTANTS
default_left_margin: INTEGER_32 is 20
EV_POSTSCRIPT_PAGE_CONSTANTS
page_height (a_size: INTEGER_32; landscape: BOOLEAN): INTEGER_32
EV_POSTSCRIPT_PAGE_CONSTANTS
require EV_POSTSCRIPT_PAGE_CONSTANTS
valid_size: valid_page_size (a_size)
page_width (a_size: INTEGER_32; landscape: BOOLEAN): INTEGER_32
EV_POSTSCRIPT_PAGE_CONSTANTS
require EV_POSTSCRIPT_PAGE_CONSTANTS
valid_size: valid_page_size (a_size)
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
set_margins (a_left_margin, a_bottom_margin: INTEGER_32)
`left'`bottom'`a_left_margin'
`a_bottom_margin'
EV_FIGURE_POSTSCRIPT_DRAWER
set_page_size (a_size: INTEGER_32; landscape: BOOLEAN)
EV_FIGURE_POSTSCRIPT_DRAWER
set_world (a_world: EV_FIGURE_WORLD)
world`a_world'
EV_PROJECTOR
require EV_PROJECTOR
a_world_exists: a_world /= Void
ensure EV_PROJECTOR
world_assigned: world = a_world
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
is_projecting: BOOLEAN
EV_PROJECTION_ROUTINES
project
register_figure (a_figure: EV_FIGURE; a_routine: PROCEDURE [ANY, TUPLE [EV_FIGURE]])
`a_routine'`a_figure'
EV_PROJECTION_ROUTINES
feature
a0: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a1: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a2: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a3: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a4: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a5: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a6: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a7: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a8: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
a9: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b0: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b1: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b10: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9
EV_POSTSCRIPT_PAGE_CONSTANTS
b2: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b3: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b4: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b5: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b6: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b7: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b8: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
b9: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B10
EV_POSTSCRIPT_PAGE_CONSTANTS
c5envelope: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
comm10envelope: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
dlenvelope: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeFolioExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
executive: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
folio: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeExecutiveLetterLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
ledger: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
legal: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
letter: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLegalLedgerTabloidA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
tabloid: INTEGER_32 is unique
EV_POSTSCRIPT_PAGE_CONSTANTSComm10envelopeC5envelopeDlenvelopeFolioExecutiveLetterLegalLedgerA0A1A2A3A4A5A6A7A8A9B0B1B2B3B4B5B6B7B8B9B10
EV_POSTSCRIPT_PAGE_CONSTANTS
feature
valid_page_size (a_size: INTEGER_32): BOOLEAN
`a_size'
EV_POSTSCRIPT_PAGE_CONSTANTS
feature
draw_figure_arc (arc: EV_FIGURE_ARC)
`arc'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
arc_not_void: arc /= Void
draw_figure_dot (dot: EV_FIGURE_DOT)
`dot'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
dot_not_void: dot /= Void
draw_figure_ellipse (ellipse: EV_FIGURE_ELLIPSE)
`ellipse'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
ellipse_not_void: ellipse /= Void
draw_figure_equilateral (eql: EV_FIGURE_EQUILATERAL)
`eql'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
eql_not_void: eql /= Void
draw_figure_line (line: EV_FIGURE_LINE)
`line'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
line_not_void: line /= Void
draw_figure_picture (picture: EV_FIGURE_PICTURE)
`picture'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
picture_not_void: picture /= Void
draw_figure_pie_slice (slice: EV_FIGURE_PIE_SLICE)
`slice'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
slice_not_void: slice /= Void
draw_figure_polygon (polygon: EV_FIGURE_POLYGON)
`polygon'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
polygon_not_void: polygon /= Void
draw_figure_polyline (line: EV_FIGURE_POLYLINE)
`polyline'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
line_not_void: line /= Void
draw_figure_rectangle (rectangle: EV_FIGURE_RECTANGLE)
`rectangle'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
rectangle_not_void: rectangle /= Void
draw_figure_rounded_rectangle (rounded_rectangle: EV_FIGURE_ROUNDED_RECTANGLE)
`rounded_rectangle'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
f_not_void: rounded_rectangle /= Void
draw_figure_star (star: EV_FIGURE_STAR)
`star'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
star_not_void: star /= Void
draw_figure_text (text_figure: EV_FIGURE_TEXT)
`text_figure'
EV_FIGURE_POSTSCRIPT_DRAWER
require EV_FIGURE_DRAWING_ROUTINES
text_figure_not_void: text_figure /= Void
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_PROJECTOR
world_exists: world /= Void
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_POSTSCRIPT_PROJECTOR