|
| JEPSPrinter (JFontManager *fontManager) |
|
| ~JEPSPrinter () override |
|
void | ReadEPSSetup (std::istream &input) |
|
void | WriteEPSSetup (std::ostream &output) const |
|
bool | OpenDocument (const JRect &bounds) |
|
void | CloseDocument () |
|
bool | WantsPreview () const |
|
void | ShouldPrintPreview (const bool doIt) |
|
virtual JPainter & | GetPreviewPainter (const JRect &bounds)=0 |
|
JRect | GetBounds () const |
|
JRect | SetClipRect (const JRect &r) override |
|
void | SetDashList (const JArray< JSize > &dashList, const JSize dashOffset=0) override |
|
void | StringNoSubstitutions (const JCoordinate left, const JCoordinate top, const JString &str) override |
|
void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) override |
|
void | Point (const JCoordinate x, const JCoordinate y) override |
|
void | Line (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2) override |
|
void | Rect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
|
void | Ellipse (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h) override |
|
void | Arc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) override |
|
void | Polygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly) override |
|
void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect) override |
|
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
virtual void | String (const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop)=0 |
|
void | String (const JFloat angle, const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JFloat angle, const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
virtual void | Point (const JCoordinate x, const JCoordinate y)=0 |
|
void | Point (const JPoint &pt) |
|
virtual void | Line (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2)=0 |
|
void | Line (const JPoint &pt1, const JPoint &pt2) |
|
virtual void | Rect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h)=0 |
|
void | Rect (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Rect (const JRect &bounds) |
|
virtual void | Ellipse (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h)=0 |
|
void | Ellipse (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Ellipse (const JRect &bounds) |
|
virtual void | Arc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle)=0 |
|
void | Arc (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) |
|
void | Arc (const JRect &bounds, const JFloat startAngle, const JFloat deltaAngle) |
|
virtual void | Polygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly)=0 |
|
void | Polygon (const JPoint &upperLeft, const JPolygon &poly) |
|
void | Polygon (const JPolygon &poly) |
|
void | Image (const JImage &image, const JRect &srcRect, const JCoordinate left, const JCoordinate top) |
|
void | Image (const JImage &image, const JRect &srcRect, const JPoint &topLeft) |
|
virtual void | Image (const JImage &image, const JRect &srcRect, const JRect &destRect)=0 |
|
| JPainter (JFontManager *fontManager, const JRect &defaultClipRect) |
|
virtual | ~JPainter () |
|
JFontManager * | GetFontManager () const |
|
virtual void | Reset () |
|
void | Reset (const JRect &defClipRect) |
|
virtual void | ResetAllButClipping () |
|
const JRect & | GetClipRect () const |
|
void | ResetClipRect () |
|
const JRect & | GetDefaultClipRect () const |
|
void | SetDefaultClipRect (const JRect &r) |
|
const JPoint & | GetOrigin () const |
|
void | SetOrigin (const JCoordinate x, const JCoordinate y) |
|
void | SetOrigin (const JPoint &pt) |
|
void | ShiftOrigin (const JCoordinate dx, const JCoordinate dy) |
|
void | ShiftOrigin (const JPoint &delta) |
|
const JPoint & | GetPenLocation () const |
|
void | SetPenLocation (const JCoordinate x, const JCoordinate y) |
|
void | SetPenLocation (const JPoint &pt) |
|
void | ShiftPenLocation (const JCoordinate dx, const JCoordinate dy) |
|
void | ShiftPenLocation (const JPoint &delta) |
|
JColorID | GetPenColor () const |
|
void | SetPenColor (const JColorID color) |
|
JSize | GetLineWidth () const |
|
void | SetLineWidth (const JSize width) |
|
bool | LinesAreDashed () const |
|
void | DrawDashedLines (const bool on) |
|
bool | GetDashList (const JArray< JSize > **dashList, JSize *dashOffset) const |
|
bool | IsFilling () const |
|
void | SetFilling (const bool on) |
|
const JFont & | GetFont () const |
|
void | SetFontName (const JString &name) |
|
void | SetFontSize (const JSize size) |
|
void | SetFontStyle (const JFontStyle &style) |
|
void | SetFont (const JFont &f) |
|
JSize | GetLineHeight (JCoordinate *ascent, JCoordinate *descent) const |
|
JSize | GetLineHeight () const |
|
JSize | GetStringWidth (const JString &str) const |
|
void | String (const JCoordinate left, const JCoordinate top, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JFloat angle, const JPoint &topLeft, const JString &str, const JCoordinate width=0, const HAlign hAlign=HAlign::kLeft, const JCoordinate height=0, const VAlign vAlign=VAlign::kTop) |
|
void | String (const JFloat angle, const JRect &rect, const JString &str, const HAlign hAlign=HAlign::kLeft, const VAlign vAlign=VAlign::kTop) |
|
void | Point (const JPoint &pt) |
|
void | Line (const JPoint &pt1, const JPoint &pt2) |
|
void | LineTo (const JCoordinate x, const JCoordinate y) |
|
void | LineTo (const JPoint &pt) |
|
void | DeltaLine (const JCoordinate dx, const JCoordinate dy) |
|
void | DeltaLine (const JPoint &delta) |
|
void | Rect (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Rect (const JRect &bounds) |
|
void | RectInside (const JRect &bounds) |
|
void | Ellipse (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h) |
|
void | Ellipse (const JRect &bounds) |
|
void | Arc (const JPoint &upperLeft, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle) |
|
void | Arc (const JRect &bounds, const JFloat startAngle, const JFloat deltaAngle) |
|
void | Polygon (const JPoint &upperLeft, const JPolygon &poly) |
|
void | Polygon (const JPolygon &poly) |
|
void | Image (const JImage &image, const JRect &srcRect, const JCoordinate left, const JCoordinate top) |
|
void | Image (const JImage &image, const JRect &srcRect, const JPoint &topLeft) |
|
| JPrinter () |
|
| ~JPrinter () override |
|
| JBroadcaster () |
|
virtual | ~JBroadcaster () |
|
JBroadcaster & | operator= (const JBroadcaster &source) |
|
bool | HasSenders () const |
|
JSize | GetSenderCount () const |
|
bool | HasRecipients () const |
|
JSize | GetRecipientCount () const |
|
virtual JString | ToString () const |
|
template<class T > |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
|
| JPSPrinterBase (JFontManager *fontManager) |
|
virtual | ~JPSPrinterBase () |
|
void | SetCreator (const JString &str) |
|
void | SetTitle (const JString &str) |
|
bool | PSOpenDocument () |
|
void | PSCloseDocument () |
|
void | PSCancelDocument () |
|
bool | PSDocumentIsOpen () const |
|
const JString & | GetOutputFileName () const |
|
void | SetOutputFileName (const JString &name) |
|
bool | PSWillPrintBlackWhite () const |
|
void | PSPrintBlackWhite (const bool doIt) |
|
void | PSSetClipRect (const JRect &r) |
|
void | PSSetDashList (const JArray< JSize > &dashList, const JSize dashOffset=0) |
|
void | PSString (const JFont &font, const JCoordinate ascent, const JCoordinate aligndx, const JCoordinate aligndy, const JFloat angle, const JCoordinate left, const JCoordinate top, const JString &str) |
|
void | PSLine (const JCoordinate x1, const JCoordinate y1, const JCoordinate x2, const JCoordinate y2, const JColorID color, const JSize lineWidth, const bool drawDashedLines) |
|
void | PSRect (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JColorID color, const JSize lineWidth, const bool drawDashedLines, const bool fill) |
|
void | PSArc (const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h, const JFloat startAngle, const JFloat deltaAngle, const JColorID color, const JSize lineWidth, const bool drawDashedLines, const bool fill) |
|
void | PSPolygon (const JCoordinate left, const JCoordinate top, const JPolygon &poly, const JColorID color, const JSize lineWidth, const bool drawDashedLines, const bool fill) |
|
void | PSColorImage (const JImage &image, const JRect &srcRect, const JRect &destRect) |
|
Interface for the JEPSPrinter class
This class implements the functions required to draw to an
Encapsulated PostScript file.
Clients are required to check WantsPreview() before calling
OpenDocument(). If this returns true, they should call
GetPreviewPainter() and draw to the resulting JPainter.
OpenDocument() then prints the preview automatically.
Derived classes must implement the following functions:
GetPreviewPainter
Create an image, create a painter for it, set the coordinates
to match the bounds passed to OpenDocument(), and return
the painter.
GetPreviewImage
Return the preview image, if any.
DeletePreviewData
Delete the image and painter created in GetPreviewPainter().
This is only called if GetPreviewImage() returns true;