Dépôt officiel du code source de l'ERP OpenConcerto
/trunk/OpenConcerto/src/org/openconcerto/openoffice/spreadsheet/BytesProducer.java |
---|
28,7 → 28,7 |
import org.jdom.Element; |
abstract class BytesProducer { |
public abstract class BytesProducer { |
/** |
* The data of an image to put in <code>frame</code>. |
36,7 → 36,7 |
* @param frame the frame where this image will be put. |
* @return the corresponding bytes. |
*/ |
abstract byte[] getBytes(ODFrame<?> frame); |
public abstract byte[] getBytes(ODFrame<?> frame); |
/** |
* The format of the data returned by {@link #getBytes(Element)}. |
43,12 → 43,12 |
* |
* @return the name of the format, <code>null</code> if unknown, eg "png". |
*/ |
abstract String getFormat(); |
public abstract String getFormat(); |
// *** concrete subclasses |
// a no-op Producer |
static final class ByteArrayProducer extends BytesProducer { |
static public final class ByteArrayProducer extends BytesProducer { |
private final byte[] data; |
private final boolean keepRatio; |
104,7 → 104,7 |
} |
// will generate a new png image (and can also keep ratio) |
static final class ImageProducer extends BytesProducer { |
static public final class ImageProducer extends BytesProducer { |
private final Image img; |
private final boolean keepRatio; |