Copyright © 2018 Lloyd R. Prentice
Version: .01
Authors: Lloyd R. Prentice.
License: MIT File: ep_panel.erl Description: Create panel map
Panels wrap boxes (ep_box.erl) in tupleis to facilitate page design and layout functions
Panels "contain" content elements, either text or images.
Sets of panels are composed into a "page grids" to organize content and direct "eye path."
Position = {X,Y} X = upper left X coordinate of panel in points Y = upper left Y coordinate of panel in points Size = {Width, Height} Width = width of box in points Height = height of box in pnts id = {page number, panel index, name}
IMPORTANT NOTE:
PDF assumes that 0, 0 XY coordinates are at lower-left This seems unnatural for folks who read top-to_bottom So for convenience, we'll assume that 0, 0 XY is at upper-left of the panel. This means that y will have to be inverted relative to paper stock height when we print.| break/1 | Advance content cursor (NextLine) in panel. |
| consumed/2 | Return vertical space in panel consumed by lines. |
| create/3 | Create panel map. |
| default_panel/0 | Create default panel. |
| get_available/1 | Return available space in panel in pixels (remaining to the bottom). |
| get_available_lines/3 | Given tag, return available lines in panel. |
| get_border/1 | Get border. |
| get_border_color/1 | Get border color. |
| get_border_style/1 | Get border style. |
| get_content_cursor/1 | Get next line. |
| get_id/1 | Get panel id. |
| get_indent/1 | Get indent. |
| get_jump_prompt/1 | Get jump prompt. |
| get_li_fill/1 | Get li fill color. |
| get_margin/1 | Get margin. |
| get_measure/1 | Get measure. |
| get_name_string/1 | Get panel name as string: PageNumber-PanelIndex-"PanelName". |
| get_page_number/1 | Get page number. |
| get_panel_index/1 | Get panel index. |
| get_panel_name/1 | Get panel name. |
| get_position/1 | Get position. |
| get_radius/1 | Get radius. |
| get_rot/1 | Get rot; text rotation angle. |
| get_size/1 | Get size. |
| get_text_position/1 | Get text position. |
| get_typestyle/1 | Get typestyle. |
| one_line_space/3 | Update content cursor by one line. |
| panel/3 | |
| reveal/1 | Make panelmap displayable. |
| update_background_color/2 | Update background color. |
| update_border/2 | Update border. |
| update_border_color/2 | Update border color. |
| update_border_style/2 | Update border style. |
| update_content_cursor/2 | Update next line. |
| update_id/2 | Update panel id. |
| update_jump_prompt/2 | Update jump prompt. |
| update_li_fill/2 | Update li fill color. |
| update_margin/2 | Update margin. |
| update_panel/3 | Update content cursor (NextLine) in panel. |
| update_position/2 | Update position. |
| update_radius/2 | Update radius. |
| update_rot/2 | Update rot. |
| update_size/2 | Update size. |
| update_typestyle/2 | Update typestyle. |
| will_fit/3 | Returns true if lines fit in panel. |
break(PanelMap::ep_panel()) -> ep_panel()
Advance content cursor (NextLine) in panel
consumed(Tag::atom(), Lines::list()) -> integer()
Return vertical space in panel consumed by lines
create(ID::ep_panel_id(), Position::xy(), Size::xy()) -> ep_panel()
Create panel map
default_panel() -> ep_panel()
Create default panel
get_available(X1::ep_panel()) -> integer()
Return available space in panel in pixels (remaining to the bottom).
get_available_lines(TypeStyle::atom(), Tag::atom(), PanelMap::ep_panel()) -> integer()
Given tag, return available lines in panel
get_border(X1::ep_panel()) -> any()
Get border
get_border_color(X1::ep_panel()) -> color()
Get border color
get_border_style(X1::ep_panel()) -> atom()
Get border style
get_content_cursor(X1::ep_panel()) -> points()
Get next line
get_id(X1::ep_panel()) -> ep_panel_id()
Get panel id
get_indent(X1::ep_panel()) -> points()
Get indent
get_jump_prompt(X1::ep_panel()) -> string()
Get jump prompt
get_li_fill(X1::ep_panel()) -> color()
Get li fill color
get_margin(X1::ep_panel()) -> points()
Get margin
get_measure(X1::ep_panel()) -> integer()
Get measure
get_name_string(X1::ep_panel()) -> string()
Get panel name as string: PageNumber-PanelIndex-"PanelName"
get_page_number(X1::ep_panel()) -> integer()
Get page number
get_panel_index(X1::ep_panel()) -> integer()
Get panel index
get_panel_name(X1::ep_panel()) -> string()
Get panel name
get_position(X1::ep_panel()) -> xy()
Get position
get_radius(X1::ep_panel()) -> number()
Get radius
get_rot(X1::ep_panel()) -> number()
Get rot; text rotation angle
get_size(X1::ep_panel()) -> xy()
Get size
get_text_position(X1::ep_panel()) -> xy()
Get text position
get_typestyle(X1::ep_panel()) -> atom()
Get typestyle
one_line_space(Tag::atom(), TypeStyle::atom(), PanelMap::ep_panel()) -> ep_panel()
Update content cursor by one line
panel(PDF::pdf_server_pid(), Job::ep_job(), PanelMap::ep_panel()) -> ok
reveal(PanelMap::ep_panel()) -> ep_panel()
Make panelmap displayable
update_background_color(BackgroundColor::color(), PanelMap::ep_panel()) -> ep_panel()
Update background color
update_border(Border::number(), PanelMap::ep_panel()) -> ep_panel()
Update border
update_border_color(BorderColor::color(), PanelMap::ep_panel()) -> ep_panel()
Update border color
update_border_style(BorderStyle::atom(), PanelMap::ep_panel()) -> ep_panel()
Update border style
update_content_cursor(Pixels::points(), PanelMap::ep_panel()) -> ep_panel()
Update next line
update_id(Id::ep_panel_id(), PanelMap::ep_panel()) -> ep_panel()
Update panel id
update_jump_prompt(JumpPrompt::string(), PanelMap::ep_panel()) -> ep_panel()
Update jump prompt
update_li_fill(LiFill::atom(), PanelMap::ep_panel()) -> ep_panel()
Update li fill color
update_margin(Margin::points(), PanelMap::ep_panel()) -> ep_panel()
Update margin
update_panel(Tag::atom(), Lines::list(), PanelMap::ep_panel()) -> ep_panel()
Update content cursor (NextLine) in panel
update_position(Position::xy(), PanelMap::ep_panel()) -> ep_panel()
Update position
update_radius(Radius::points(), PanelMap::ep_panel()) -> ep_panel()
Update radius
update_rot(Rot::number(), PanelMap::ep_panel()) -> ep_panel()
Update rot
update_size(Size::xy(), PanelMap::ep_panel()) -> ep_panel()
Update size
update_typestyle(TypeStyle::atom(), PanelMap::ep_panel()) -> ep_panel()
Update typestyle
will_fit(Tag::atom(), Lines::list(), PanelMap::ep_panel()) -> boolean()
Returns true if lines fit in panel
Generated by EDoc