fenfire-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fenfire-dev] PEG imagescrollblock--humppake


From: Asko Soukka
Subject: [Fenfire-dev] PEG imagescrollblock--humppake
Date: Fri, 5 Sep 2003 09:37:44 +0300 (EEST)

==========================================================================
PEG imagescrollblock--humppake: interface ImageScrollBlock
==========================================================================

:Authors:  Asko Soukka
:Date-Created: 2003-09-03
:Last-Modified: $Date: 2003/09/04 07:37:25 $
:Revision: $Revision: 1.2 $
:Status:   Current
:Status:   Incomplete
:Scope:    Minor
:Type:     Interface

This PEG prososes a new Alph scrollblock type: ImageScrollBlock.
ImageScrollBlock would be the interface for Alph scrollblocks
containing only a single image.

Own scrollblock type for images is needed because handling images
differ from handling any of the current scrollblock types. Therefore
imagescrollblocks must be able to distinguish from other scrollblocks
and they need their own type.

Issues
======

Aren't current interfaces enough?

    RESOLVED: The currently existing scrollblock interfaces are
    PageScrollBlock and TextScrollBlock, both extending the basic
    ScrollBlock interface. TextScrollBlock is meant for text and
    PageScrollBlock for PDF and PS documents.
 
    scrollblocks containing single images should be handled
    separately from both the text scrollblocks and PDF/PS document
    scrollblocks. Therefore, they need their own scrollblock
    interface.

What spesific methods should the new interface provide?

    RESOLVED: None for now. The interface is currently needed only
    to separate ImageScrollBlocks from other ScrollBlocks. New 
    ImageScrollBlock spesific methods could be pegged later, if
    found necessary.

Changes
=======

Create the new interface ``org.nongnu.alph.ImageScrollBlock`` with no
any methods.

Change SimpleImageScroll to implement the new interface. No changes
into SimpleImageScroll's code is needed, since the interface doesn't
present any new methods.

-- 
Asko Soukka <address@hidden>
<http://www.iki.fi/asko.soukka/>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]