public class BufferedImageRendering extends Object implements Rendering<BufferedImageRenderer>
BufferedImage.
TODO: An interface should be extracted to represent the various pane factory methods
TODO: Output action should be extracted into an interface| Constructor and Description |
|---|
BufferedImageRendering(boolean diag)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImageRenderer |
layout(SubPane root)
Invoke layout and render.
|
SimplePane |
simplePane(int sx,
int sy)
Delegate to
SimplePane.SimplePane(int, int). |
SimplePane |
simplePane(int sx,
int sy,
Halign halign,
Valign valign)
|
SimplePane |
simplePane(int sx,
int sy,
Halign halign,
Valign valign,
Paint paint)
|
SimplePane |
simplePane(int sx,
int sy,
Paint paint)
Delegate to
SimplePane.SimplePane(int, int). |
SimplePane |
text(String text,
boolean horizontal,
int fontheight,
double fontscale,
int sx,
int sy,
Halign boxHalign,
Valign boxValign,
Halign textHalign,
Valign textValign)
Add a text which is rendered upon
#layout(com.chemaxon.overlap.cli.util.images.SubPane). |
public BufferedImageRendering(boolean diag)
diag - Use true to draw diagnostic borderspublic SimplePane simplePane(int sx, int sy, Paint paint)
SimplePaneFactorySimplePane.SimplePane(int, int).simplePane in interface SimplePaneFactorysx - Minimal X sizesy - Minimal Y sizepaint - Painter to paint the represented graphical partSimplePane which must be used in a layout eventually passed to
#layout(com.chemaxon.overlap.cli.util.images.SubPane)public SimplePane simplePane(int sx, int sy)
SimplePaneFactorySimplePane.SimplePane(int, int).simplePane in interface SimplePaneFactorysx - Minimal X sizesy - Minimal Y sizeSimplePane which must be used in a layout eventually passed to
#layout(com.chemaxon.overlap.cli.util.images.SubPane)public SimplePane simplePane(int sx, int sy, Halign halign, Valign valign, Paint paint)
SimplePaneFactorysimplePane in interface SimplePaneFactorysx - Minimal X sizesy - Minimal Y sizehalign - Horizontal alignment in parent areavalign - Vertical alignment in parent areapaint - Painter to paint the represented graphical partSimplePane which must be used in a layout eventually passed to
#layout(com.chemaxon.overlap.cli.util.images.SubPane)public SimplePane simplePane(int sx, int sy, Halign halign, Valign valign)
SimplePaneFactorysimplePane in interface SimplePaneFactorysx - Minimal X sizesy - Minimal Y sizehalign - Horizontal alignment in parent areavalign - Vertical alignment in parent areaSimplePane which must be used in a layout eventually passed to
#layout(com.chemaxon.overlap.cli.util.images.SubPane)public SimplePane text(String text, boolean horizontal, int fontheight, double fontscale, int sx, int sy, Halign boxHalign, Valign boxValign, Halign textHalign, Valign textValign)
SimplePaneFactory#layout(com.chemaxon.overlap.cli.util.images.SubPane).
TODO: introduce text pane builder to cut down parameter list lengthtext in interface SimplePaneFactorytext - Text to renderhorizontal - true when a horizontal text should be written, false for verticalfontheight - Requested font heightfontscale - Requested font scalesx - Minimal horizontal size of the text areasy - Minimal vertical size of the text areaboxHalign - Pane horizontal alignment in its parentboxValign - Pane vertical alignment in its parenttextHalign - Text horizontal alignmenttextValign - Text vertical alignmentSimplePane which must be used in a layout eventually passed to
#layout(com.chemaxon.overlap.cli.util.images.SubPane)public BufferedImageRenderer layout(SubPane root)
RenderingSimplePane instance created by the factory methods is not layed out through the
passed root pane then an exception is thrown.layout in interface Rendering<BufferedImageRenderer>root - Root pane to drive layout.