This question referes to jgraphx 1.7.0.7
\nBecause each cell shall display different attributes via an image (type image, status image), I use mxICellOverlay, to design the cells using different Jlabels (JLabel.setIcon) and a borderlayout.

\n
private class myMxCellOverlay extends JComponent implements mxICellOverlay {\n    @Override\n    public mxRectangle getBounds(mxCellState state) {\n        return state;\n    }\n}\n...\n\nmyMxCellOverlay overlay = new myMxCellOverlay();  \n    overlay.setLayout(new BorderLayout());  \n...  \ngetCurGraphComp().addCellOverlay(myCell, overlay);  \n...\n
\n

The graph gets displayed as designed, but the printout shows only the original mxCell design (provided via graph.setCellStyle) without the elements of the overlay.\nI use the print code, that is provided in example EditorActions.java

\n

Is it possible to print the cells along with their overlay?

asked 30 Jun '11, 06:32

anna's gravatar image

anna
11
accept rate: 0%

edited 04 Jul '11, 14:08

David's gravatar image

David ♦♦
4.8k624


To print including the overlays, you need to set the printPreview.printOverlays = true;

link

answered 31 Oct '12, 07:15

Tilak's gravatar image

Tilak
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×470
×21
×13

Asked: 30 Jun '11, 06:32

Seen: 851 times

Last updated: 31 Oct '12, 07:15

powered by BitNami OSQA