Making line thicker

Does anyone know how to change the thickness of a line? Is it possible? I have a application that dynamically draws lines between components in a JPanel when there is a dependency and would like to increase the thickness from the default thickness. It is also possible to make the line with an arrow to show direction?
Thanks
AR

This will draw a nice smooth line, you will have to draw the errows
public void paintComponent(Graphics g)
     Graphics2D g2 = (Graphics2D)g;
     g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
     g2.setStroke(new BasicStroke(2.1f));
     g2.drawLine(x,y,x1,y1);
}Noah

Similar Messages

  • Formating Line thickness for lines in graphs with more than 6 lines.

    I have a line graph with more than 6 lines on it and I'm trying to make them all 1px.
    I can specify a line thickness for the first 6 lines but after that, the lines go back to the default thickness.
    Is it possible to change the default line thickness for a graph or format the line thickness for the 7th line and more?

    Good news! I found out how to format more than 6 lines of data and it's really simple to do!
    In the bottom left hand corner of the Format Chart Data, next to the Clear All button, is a button marked ADD.
    If you click this button, another row is added allowing you to format the 7th line of data.
    Click again and you get a row for the 8th line and keep clicking to add more lines.
    I'm making a note of it here in case it is useful to someone out there who searches on this problem in the future.
    Edited by: user2052587 on Jan 6, 2010 2:45 PM

  • Changing Line Thickness on Grouped Objects?

    So I'm changing my style of animation from hand-drawn art to the usage of things such as the line and pen tool, in Adobe Flash CS3. I am drawing characters that have segmented parts, I.E. the arms, legs, head. body, ect are all separate grouped objects with a set line thickness. The problem is that when I try to shrink or grow the character, the lines making up their body is either too thick or too thin, depending on whether I make him bigger or smaller. It seems that I am unable to change the line thickness of grouped objects, or dare I say it, a group of grouped objects. The properties panel greys out when I select an object, so I have no access to it at all. I dont want to have to go and change the line thickness individually on each object, whose lines are all the same thickness to begin with.
    Is there any trick or plugin I can use to change this, so the line thickness of grouped objects can be changed? Or am I just ignorant with the answer just staring me in the face? Either way, I would REALLY appreciate the help any of you could provide!

    Okay, so I seem to have found an even better solution to my problem than what I was hoping for. I can just convert the lines into fill by going to Modify > Shapes > Convert Lines to Fill. This makes it so the lines will now change in relative size depending on how much I shrink or grow an object.
    Thanks for trying everyone, but I found my solution!

  • Office PDF Print and office PDF creator(adobe plugin) create different line thickness result

    Hi together,
    Office PDF Print and office abobe PDF creator(adobe plugin) create different result. It seems that Adobe PDf creater improves line thickness to 1pt instead of 0,3pt. Is there a setting to change to original 0,3 because this 0,3 are standard line thickness for our documents. with adobe V9 the line was 0,3pt. (we need thin, mid and thick lines)
    After 2 day's google searching this is the last change for hope :-)
    Software Versions
    Windows 7
    MS Office 2007 (12.0.6668.5000) SP3 MSO (12.0.6662.5000)
    Adobe Acrobat X (10.1.7)
    Left: MSO Adobe Plugin / MId: MS Word / Rigth: PDF printed over "print" AdobePDF printer

    Hi Bill,
    Thanks a lot for the fast reply, i have tested it with 300dpi but I didn't get a different result. The bad thing is that not all lines getting thicker. if there is no arrow or ball at the end of the line the line thickness will not change (see Pic). I think this is a Acrobat error, i don't think that this will improve the pdf quality if the progam changes only some lanes and not all to 1pt.
    I Think we must downgrade to version 9.

  • PSE 8 brush strokes randomly change to heavy line thickness

    I installed PSE 8 on a trial offer and when I use my Wacom stylus, the line thickness randomly changes to a heavy line.  I've cleared prefrences, and reloaded the Wacom drivers and messed with sensitivity.  Any suggestions?

    Hi,
    PSE allows user to change various parameters by the Pen pressure of the Wacom Tablet.
    While using Brush tool, You will find an arrow icon on the tool bar at the end, Opening it, you will find several parameters whicj can be controlled by Wacom tablet Pen pressure.  So while you are using brush with the Pen, the pressure you apply on the Wacom, increases the brush size.
    In case you need to change the Opacity of the brush, you can set it from the options bar and continue using and do Wonders.
    Try it. This is really good.
    Thanks,
    Swarnima

  • Using a slider to change line thickness

    Hi,
    This is a continuation of a project I have been posting over the last week.
    My latest problem is trying to make a slider that changes the line thickness in a drawing app that I would to share with my students. When moved from left to right a circle changes scale. This circle would act as a visual reference on the stage telling the viewer that the line thickness is changing. Right now I just want to figure out how to connect the slider so that the circle changes dynamically. Once I get that I feel I can figure out how to connect it to lineStyle().
    I hope I'm explaining this clearly.
    The current code I am attaching has the circle change size at onle two points-the far left and far right.
    I keep trying to write something that uses mouseX properties but so far nothing is working.
    Thanks

    Hi,
    I appreciate the help and, yes, that pretty much looks like what I was going for.
    Your solution looks clean!
    The trick seems to be to connect the value change in that line to the drawing line which is mouseX and mouseY.
    A couple of errors have me wondering if it is possible to change the lineStyle() dynamically. This is vector based and I think I might have to swtch over to a bitmap and use a Sprite, whichhas more of a chunky look tio it - based on a few previous attempts I made.
    I switched gears today and tempoarily and made a lot of buttons that change the line thickness. A swf file is attached.
    I will take your code and see if I can use it as a building block to change the line dynamically.
    If I figuret it out I'll post it.
    I also just ran into info on the Adobe website regarding the strokeObject, which is nowhere to be found in my reference manuals for AS3.I think the strokeObject allows you to make creative changes to a drawing line. So much to learn but hey that's what it's all about
    Cheers

  • How to increase line thickness in line charts?

    Hi,
    I am using Crystal Reports 11.
    I can change line thickness for only 4 series using "Format connector line" in the Design window. When the chart has more than 4 series, I can't change the thickness of lines except for the default 4 series.
    I try using the other method to change the thinness of line, i.e.:
    Got to the Preview window - click the line in chart - right click and go in Format Connector Line - change the thickness.
    But, when I close the Preview window and re-open it again, I find that the situation is the same: line thickness is changed for only 4 series.
    It looks like this way is effective just in computer memory.
    Is this caused by the old version of CR?
    If not, any approach to handle this problem?
    Thank you in advance.

    Thank you.
    It is a group level chart.
    I find "Apply Changes to All Charts" under Chart Menu, but after I made some changes on the chart, it is still grey and I could not use it.
    How to do?
    Edited by: Holdup on Feb 23, 2012 7:27 PM

  • Line thickness in Apex 4.02 flash chart for Legend

    Does anyone know how to set Line thickness in Apex 4.02 flash chart for Legend?
    My users can read the label fine, but the part where it shows the line color is very small and hard to match to the chart.

    Many attributes can be set in the Chart Attributes page Custom XML section. Line thinkness. Legend font size, height and width. But I haven't found a setting for the "icon" size. Even thought I increased font size and the size of the Legend on the page, the legend "lines" remained unchanged in size.

  • How to make line thicker?

    When I use "g.drawLine()" to draw a line,the size of the line is fixed.But I would like to make the line thicker.How to do that?Thanks!

    one of my favorite methods :)
        void drawThickLine(Graphics2D g, double x1, double y1, double x2, double y2, double width) {
            Stroke orig = g.getStroke();
            BasicStroke wideStroke = new BasicStroke((float)width);
            g.setStroke(wideStroke);
            g.draw(new java.awt.geom.Line2D.Double(x1,y1,x2,y2));
            g.setStroke(orig);
        }Enjoy!

  • Why do borders for some cells allow changes in line thickness, but other cells are locked in only one thickness?

    It looks like you should be able to choose different line thickness for cell borders, but for some cells you can get three choices (0.5, 1, 2 pt), but in other cases you can only do 0.5?
    I can't make a consistent thickness border around the outside of all my cells!

    VS,
    Yes, I have lots of ideas. After all that work you probably don't want to hear them.
    1. I would use PDF versions of rotated text boxes, inserted into the cells as background Fill rather than floating the actual text boxes over the table.
    2. I would never merge a cell, or divide, a cell. Too many problems await you down the road if you do that. There are many ways in Numbers to avoid having to do those things. These are things we must do in Excel to get by, but we don't have to do them in Numbers.
    3. There is a Line Type called "Thin" that has only one size, and another line type shown as a heavier solid for which the weight can be adjusted. It's possible that you have some places where you need to change the line type.
    I believe that your difficulty may come from the merging of cells causing some ambiguity as to which border needs to be selected to change the display. This would be a bug, because you should be able to just select the border and edit it, but your table may have become so complex that the program has lost track of things in the course of all your changes.
    My suggestion is to print your table just as it is, for reference, and start over in a new document, not an imported one. Don't merge or split. Use multiple simple tables and the occasional text box for annotation. You will be on your way to doing things the "Numbers Way".
    Jerry

  • Line thickness/location problems with VS 2010 Crystal SP2.  Not consistent

    I have a program I converted from VS 2003 to VS 2010.  The original had perfect outlines created from the header, detail line, and footers.  It also has 2 subreports with borders around them.
    On the converted version I have the following problems.  
    1) The lines in the header and detail line are now thicker than they were in the past.
    2) The lines in the detail section no longer line up with the box in the footer section.  The box in the footer section is the proper original line thickness.  Both the box and the individual lines are all set to line thickens  20.  I checked the location and thickness properties of each line and box.
    3) On my first subreport, it is truncating the bottom border.  If I click the report in the viewer the bottom line is there.
    These problems show up both on screen in the viewer and when printed.  I can supply scans of the pages if desired.
    Thank You,
    Peter Rohlfs

    The issue is more than likely related to printer drivers. However since there is so much wrong with the report, it may be a good idea to concentrate on one issue at a time.
    In any case, one of the things to look at will be the "No Printer" option. Enable this option and see how the report does now.
    Make sure there is a default printer installed.
    Make sure you are using the latest printer diver update.
    You do not mention if this is a web or win app. If htis is a web app, see how the report does in a win app. If this is a web app, make sure the process has access to the printer drivers. See [this|http://support.microsoft.com/kb/184291/en-us] MS kb.
    The other thing; we may eventually want to check with the report design guys re. the report design approach. E.g.; it may be that the report worked, but that still leaves the possibility of a faulty design that only now surfaces.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • IMAQ overlay Line Thickness

    Hi,
    I have used IMAQ overlay to map two line onto an image. But I want to change the thickness of these lines and couldn't figure out any way. Help is appreciated.
    Regards.

    It looks like IMAQ Overlay Line doesn't let you specify line thickness.  You might consider "tricking" it by overlaying two or more lines, displaced slightly from each other but close enough to merge into a slightly thicker line.  Note that if you do this, you need to think about the orientation of the line, as you'd want to displace your "sub-lines" at right angles to the original line orientation.  For example, if the original line was horizontal, you'd draw two sub-lines a little above and a little below the original line (a vertical displacement), and if the original line were vertical, you'd draw a little to the left and right (a horizontal displacement).
    If you decide to go this route, you'll do yourself a BIG favor if you write the "Thick line" function as a sub-VI that looks a lot like IMAQ Overlay Line, but has an additional "thickness" parameter.  Hide all of the "messy details" inside this VI, including the calls to IMAQ Overlay Line.  This will keep your calling VI "focussed" on the task it is trying to do, without getting "irrelevant" Line-Thickness code popping up and occupying a lot of Block Diagram space.
    BS

  • Changing horisontal line thickness in equations

    Hi,
    Is there a way to change the horisontal line thickness for divisions in equations?
    I tried doing it on the Reference page, thinking that "Single line" was perhaps used for the lines in divisions, but to not avail.
    Thanks,
    Mats

    Mats, I was hoping that one of the FM math-using folks here might have an answer for you, but perhaps they're all at "summer math camp" right now <g>. <br /><br />Unfortunately I've never heard of it being possible to change the line thickness -- or any other display characteristic of equations, for that matter. <br /><br />If you didn't see this on the Framers list recently, Winfried Reng posted a link to a working search on a FrameUsers repository, here: http://www.mail-archive.com/[email protected]/<br /><br />Sheila

  • Line Chart glitch - grid lines thick at certain heights

    The Flex Line Chart control does not display correctly at certain heights.  The gridlines that are supposed to be 1px pin stripes are sometimes displayed up to 100px wide.  This can be demonstrated with 1 line of code
    <mx:LineChart height="33000" x="200" y="0" id="chart_1"  width="100" ></mx:LineChart>
    I also have another small app that uses a timer to demonstrate how as the height increases the gridlines increase from:
    1px to 100px
    then back to 1px
    .... then as the chart's height increases another 7000px the 1px gridlines display correctly
    then it repeats going back to thick, then thin etc... almost a pulsating effect
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init();">
        <fx:Script>
            <![CDATA[
                import flash.utils.Timer;
                import flash.events.TimerEvent;
                private var timer:Timer = new Timer(10);
                private function init():void{
                    timer.addEventListener(TimerEvent.TIMER, changeheight);
                    timer.start();
                private function changeheight(event:TimerEvent):void{
                    chart_1.height=chart_1.height+30;
                    lblHeight.text="Chart Height:"+String(chart_1.height)+"px ";
            ]]>
        </fx:Script>
        <mx:LineChart height="33000" x="200" y="0" id="chart_1"  width="100" ></mx:LineChart>   
        <s:Label id="lblHeight"  />
        <s:Button y="80" click="timer.start();" label="Start" />
        <s:Button y="100" click="timer.stop();" label="Stop" />
    </s:Application>

    Are you able to acheive this.?
    PCXML script is used for chart rendering, and with that I think you can't demark the Gridlines.
    The following Xml file gives the definitions for the chart components including gridlines.
    chartviewtemplates.xml
    Which inturn refers to the following js for gridlines
    i think you have to work on the Js here demark the grid lines by default
    <Oracle_BIHome>\web\app\res\b_mozilla\views\chart
    dlggridlineseditor.js
    Before doing any changes take the backup.
    Thanks,
    Vino
    Edited by: Vinodh NK on Oct 22, 2010 3:44 AM

  • Line thickness problem in indesign CS5 and CS6

    I use indesign CS5 and many short lines of 0.5 point in my project.
    After export to pdf (press) everything seems correct. After rip process from printer office in compressed file lines seems to have different thickness even on large zoom (400%).
    High quality pdf from rip prepared by printer office still shows small differences in thickness. Lines are in one solid color in my project.
    What is the source of this problem? 0.5 point ines seems not extremely thin.
    If the line is not sharp in pdf will it be not sharp in press?

    I wouldn't go off what I see on screen. I'd be asking the printer for a hi-res proof. If that's not satisfactory they could run a test on offcuts on another print job to see where the problem lies.
    One reason for different linethickness could be that the lines are interacting with transparent areas, giving the appearance of thicker, or could be physically changing the width by a few decimals.
    I'd try putting any of the thin lines on their own layer - and perhaps try different PDF compatibilities, from PDF 1.3 to PDF 1.4 etc.

Maybe you are looking for