Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7684247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:58:57+00:00 2026-05-31T18:58:57+00:00

I made an swt.graphics.Image object of a draw2d Layer containing draw2d polylines and few

  • 0

I made an swt.graphics.Image object of a draw2d Layer containing draw2d polylines and few other figures like circles ellipses etc. I made a jpeg file from this Image object, all I can see are the ellipses, circles etc but no figures drawn using draw2d polylines(connection arrows, PolygonShapes etc) are present in the final jpeg file. I want the polylines also to be plotted and visible in the final jpeg file. Any ideas how i can do this? I have tried putting the Layer in a shell. But I have to display(which i should not do) the shell to the user using shell.open() only then the polyline shapes are visible in the final jpeg file. I guess the shell.open() forces the drawing of the shell and its children ( the Layer, the polylines etc). Is there are any workaround for not showing the shell but force the drawing on Layer for polylines?

Thanks and Regards
Bharath

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:58:59+00:00Added an answer on May 31, 2026 at 6:58 pm

    I got the solution for this. I called the validate() on the Layer. previously I was calling redraw(),Layout() etc on the FigureCanvas on which the Layer is present and there was no change. Now after calling the validate() on the Layer it seems to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Somebody made a compare script for me, but it is working like it should
I made a class for DB connection like this: public class DbHelper : IDisposable
I made simple jar for my java-application (build with SWT). In netbeans it starts
made an object, MyTextBoxCreator. i need to make lots of text boxes dynamically. i
i made a file to print out the image file with W and H
I made my method with post like this: [OperationContract] [WebInvoke(Method = POST, ResponseFormat =
(made a new question, as instead of having 2 questions in my other question)
Made solution change: I am trying to display a html table of data.. In
Made this nice little loop for hiding and showing div's, works as a charm
I made a view to abstract columns of different tables and pre-filter and pre-sort

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.