Skip to content

Commit

Permalink
Define the ObjectDrawer interface (first version)
Browse files Browse the repository at this point in the history
  • Loading branch information
rototor committed Mar 12, 2017
1 parent ddcc72f commit e257ac3
Showing 2 changed files with 26 additions and 0 deletions.
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);
}
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);
}

0 comments on commit e257ac3

Please sign in to comment.