forked from danfickle/openhtmltopdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define the ObjectDrawer interface (first version)
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
openhtmltopdf-core/src/main/java/com/openhtmltopdf/extend/FSObjectDrawer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.openhtmltopdf.extend; | ||
|
||
import com.openhtmltopdf.render.RenderingContext; | ||
import org.w3c.dom.Element; | ||
|
||
/** | ||
* Handle the drawing of <object> tags | ||
*/ | ||
public interface FSObjectDrawer { | ||
void drawObject(Element e, float x, float y, float width, float height, OutputDevice outputDevice, | ||
RenderingContext ctx); | ||
} |
14 changes: 14 additions & 0 deletions
14
openhtmltopdf-core/src/main/java/com/openhtmltopdf/extend/FSObjectDrawerFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.openhtmltopdf.extend; | ||
|
||
import org.w3c.dom.Element; | ||
|
||
/** | ||
* Factory for ObjectDrawers, i.e. classes which draw <object> tags | ||
*/ | ||
public interface FSObjectDrawerFactory { | ||
|
||
/** | ||
* Determine an object drawer for the given object tag element. | ||
*/ | ||
FSObjectDrawer createDrawer(Element e); | ||
} |