The unit for line width is defined by the graphics system - so 1 = 1
pt. = 1/72 of an inch (or metric equivalent).

Larry

On 7/8/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote:
>
> Larry Becker schrieb:
> > Hi Stefan,
> >
> >   We still may wish to change the UI so that it is possible to set
> > fractional line widths as is possible in other programs.
> ok.
>
> > That would
> > require more refactoring.  It depends on how much control users need.
> > Such capability is always included in programs like Illustrator, and
> > is commonly used when printing maps.  If I understand you correctly,
> > you are using Illustrator or Inkscape to set the correct line widths
> > before printing, yes?
>
> yes i use these (rather illustrator)
> note that illustrator offers: 0.25pt, 0.5pt, 0.75pt and 1.0pt
>
> so i would suggest to have such fixed values too? and not a purely free
> choice. but.. these are pt-values (making sense for printers). What is
> actually the "unit" used for BasicStyle?
>
> stefan
>
> >
> > regards,
> > Larry
> >
> > On 7/8/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote:
> >> A very late response to Larry:
> >>
> >> so, do you think that your modification of the BasicStyle constructor is
> >>   now obsolete, since we can use "0"
> >>
> >> BTW... I am exporting in svg and then prepare my images in
> >> illustrator(inkscape). Thus, i don't really have styling problems. but
> >> who has the time to do like i do.
> >>
> >> Larry Becker schrieb:
> >>> More surprises (for me).  Someone stop me if this is already
> >>> documented.  If you set the line width to zero, you get very faint
> >>> lines.  The documentation for BasicStroke says, "If width is set to
> >>> 0.0f, the stroke is rendered as the thinnest possible line for the
> >>> target device and the antialias hint setting."
> >>>
> >>> Apparently when you create a new layer, the line width defaults to 1.
> >>> I never noticed that you could drag it left to 0, or if I did I must
> >>> have assumed it was an error.
> >>>
> >>> This could be very handy when you are printing and the lines are
> >>> showing up too wide on the print device, or just when you have a lot
> >>> of linestrings very close together.
> >>>
> >>> regards,
> >>> Larry
> >>>
> >>> On 6/28/07, Larry Becker <[EMAIL PROTECTED]> wrote:
> >>>> Interesting...  It turns out that when rendering antialiased lines,
> >>>> Java2D actually draws lines with fractional widths as shown in the
> >>>> attached JumpWindow screen capture.  This would make it possible to
> >>>> modify the Change Style line width slider to support floating point
> >>>> values that represent very thin lines.
> >>>>
> >>>> Larry
> >>>>
> >>>> On 6/28/07, Larry Becker <[EMAIL PROTECTED]> wrote:
> >>>>> To give a better idea of problem (1), I have attached two jpegs.  They
> >>>>> were made by doing a screen capture within Inkscape while zoomed to
> >>>>> 800%.  They are labeled before and after and show the effects of
> >>>>> scaling the line width by 0.1 in BasicStyle setLineWidth().  The SVG
> >>>>> files were created using Stefan's "Print Image in SVG Format."  Other
> >>>>> printing plug-ins may already be implementing their own solutions.
> >>>>>
> >>>>> regards,
> >>>>> Larry Becker
> >>>>>
> >>>>> On 6/26/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> >>>>>> Larry,
> >>>>>>
> >>>>>> This is a great post. Thanks for documenting some of the problems we
> >>>>>> are having with the rendering system. Perhaps I need to take a crack
> >>>>>> at these with my pluggable renderering system, instead of stand alone
> >>>>>> labels. I'll give this some thought.
> >>>>>>
> >>>>>> The Sunburned Surveyor
> >>>>>>
> >>>>>> On 6/25/07, Larry Becker <[EMAIL PROTECTED]> wrote:
> >>>>>>> The purpose of this thread is to document problems with BasicStyle
> >>>>>>> rendering that primarily affect the quality of printing plug-ins
> >>>>>>>
> >>>>>>> Problem (1):
> >>>>>>>
> >>>>>>> BasicStyle lineStroke defaults to width 1.  See Geoff's "About Line
> >>>>>>> Decorations and Printing" thread in the archives:
> >>>>>>> http://www.mail-archive.com/[EMAIL PROTECTED]/msg00075.html
> >>>>>>>
> >>>>>>> Proposed solution (1.A):
> >>>>>>>
> >>>>>>> The problem seems to me that JUMP is starting out with the line width
> >>>>>>> way too large.  In other applications I have used much smaller default
> >>>>>>> line widths.  In order to do this we would need to modify
> >>>>>>> BasicStyle.setLineWidth(int lineWidth) to use a float instead of an
> >>>>>>> int and change setLineWidth(1) to setLineWidth(0.1) or something
> >>>>>>> smaller in the constructor.
> >>>>>>>
> >>>>>>>
> >>>>>>> Problem (2):
> >>>>>>>
> >>>>>>> The relative scale of symbols and text changes when changing from
> >>>>>>> screen resolution to printer resolution.  See Geoff's ""Re:
> >>>>>>> [JPP-Devel] JumpPrinter" thread in the archives:
> >>>>>>> http://www.mail-archive.com/jump-pilot-devel@lists.sourceforge.net/msg00998.html
> >>>>>>>
> >>>>>>> Proposed solution (2.A):
> >>>>>>>
> >>>>>>> I haven't thought this one through very well, but it would seem that
> >>>>>>> we need to have some sort of renderer DPI setting (there's those pesky
> >>>>>>> english units again).  Unfortunately there doesn't seem to be any
> >>>>>>> Java2D support for this concept that I could find, so we would
> >>>>>>> probably have to implement the scaling ourselves.  Someone else may
> >>>>>>> have already thought of a better solution.
> >>>>>>>
> >>>>>>> There are probably other printer related rendering problems I haven't
> >>>>>>> heard about.
> >>>>>>>
> >>>>>>> regards,
> >>>>>>> Larry Becker
> >>>>>>>
> >>>>>>> --
> >>>>>>> http://amusingprogrammer.blogspot.com/
> >>>>>>>
> >>>>>>> -------------------------------------------------------------------------
> >>>>>>> This SF.net email is sponsored by DB2 Express
> >>>>>>> Download DB2 Express C - the FREE version of DB2 express and take
> >>>>>>> control of your XML. No limits. Just data. Click to get it now.
> >>>>>>> http://sourceforge.net/powerbar/db2/
> >>>>>>> _______________________________________________
> >>>>>>> Jump-pilot-devel mailing list
> >>>>>>> Jump-pilot-devel@lists.sourceforge.net
> >>>>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>>>>>
> >>>>>> -------------------------------------------------------------------------
> >>>>>> This SF.net email is sponsored by DB2 Express
> >>>>>> Download DB2 Express C - the FREE version of DB2 express and take
> >>>>>> control of your XML. No limits. Just data. Click to get it now.
> >>>>>> http://sourceforge.net/powerbar/db2/
> >>>>>> _______________________________________________
> >>>>>> Jump-pilot-devel mailing list
> >>>>>> Jump-pilot-devel@lists.sourceforge.net
> >>>>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>>>>>
> >>>>> --
> >>>>> http://amusingprogrammer.blogspot.com/
> >>>>>
> >>>>>
> >>>> --
> >>>> http://amusingprogrammer.blogspot.com/
> >>>>
> >>>>
> >>>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> _______________________________________________
> >> Jump-pilot-devel mailing list
> >> Jump-pilot-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >>
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>


-- 
http://amusingprogrammer.blogspot.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to