KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > stefanochizzolini > clown > documents > contents > entities > Entity


1 /*
2   Copyright © 2006 Stefano Chizzolini. http://clown.stefanochizzolini.it
3
4   Contributors:
5     * Stefano Chizzolini (original code developer, info@stefanochizzolini.it):
6       contributed code is Copyright © 2006 by Stefano Chizzolini.
7
8   This file should be part of the source code distribution of "PDF Clown library"
9   (the Program): see the accompanying README files for more info.
10
11   This Program is free software; you can redistribute it and/or modify it under
12   the terms of the GNU General Public License as published by the Free Software
13   Foundation; either version 2 of the License, or (at your option) any later version.
14
15   This Program is distributed in the hope that it will be useful, but WITHOUT ANY
16   WARRANTY, either expressed or implied; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details.
18
19   You should have received a copy of the GNU General Public License along with this
20   Program (see README files); if not, go to the GNU website (http://www.gnu.org/).
21
22   Redistribution and use, with or without modification, are permitted provided that such
23   redistributions retain the above copyright notice, license and disclaimer, along with
24   this list of conditions.
25 */

26
27 package it.stefanochizzolini.clown.documents.contents.entities;
28
29 import it.stefanochizzolini.clown.documents.Document;
30 import it.stefanochizzolini.clown.documents.contents.composition.ContentBuilder;
31 import it.stefanochizzolini.clown.documents.contents.xObjects.XObject;
32
33 /**
34   Abstract specialized graphic object
35 */

36 public abstract class Entity
37 {
38   // <class>
39
// <dynamic>
40
// <interface>
41
// <public>
42
/**
43     Renders the entity as an external (independent) object (see also [PDF:1.6:4.7]).
44     @param context Target document.
45     @return The external object representing the rendition of the entity.
46   */

47   public abstract XObject createXObject(
48     Document context
49     );
50
51   /**
52     Renders the entity directly inside a content stream chunk (see also [PDF:1.6:4.8.6]).
53     @param context Target content stream chunk.
54   */

55   public abstract void showInline(
56     ContentBuilder context
57     );
58   // </public>
59
// </interface>
60
// </dynamic>
61
// </class>
62
}
Popular Tags