Automatically re-draw lines?
Hi All, I want to know how to do something in Illo CS4 and hope someone here can assist me.
Let's say I have rectangles connected with some lines as in:
and I want to adjust the position of the smaller rectangles to the right to end up with something like, say, this:
is there a way in Illo I can have the lines connected to the rectangles so that when I move the smaller rectangles as a group, the lines automatically stretch/contract while remaining anchored to the larger rectangle? Otherwise it looks like I have to re-draw each line after moving each rectangle.
Any help really greatly appreciated!
Thanks in advance,
Paul
The feature, by the way, is commonly called "connector lines." Most drawing programs provide it. Illustrator doesn't.
JET
Similar Messages
-
Creating fancy pdf-files for costumers and other purposes is great. However, if the experimental data include many datapoints (>200000) a line-2d-graph ends up in a very big pdf-file. Especially when many pages need to be used.
Explanation:
When I use lines to show experimental data in 2d-plots the size of my PDF-file is directly influenced by the number of datapoints used. The more datapoints are used to draw lines within the graph, the bigger the exported PDF-files of the report are.
It would be great to limit the number of points used to draw a line as it can be done with markers without using the curve transformation option. - Hence, e.g. plotting a line with the help of 200 datapoints is usually as good as showing the same line based on 200000 datapoints but the pdf-size is significantly reduced. You can imagine that when this would be done via the transformation option a long lasting script would be needed for each line to reduce the number of datapoints shown. Hence, the plotting within the report and the actualisation of data would need very long.
Since a while DIAdem optimizes the size of exported PDF-files in a related way as it is suggested here. In principle the PDF-file is exported in a very high resolution, so you can display it in a reader with a very high zoom value (e. g. 6000 %) to look into details of your data. If you have a huge dataset, this could lead in fact to a bigger file size, if data points could be displayed because the high PDF-resolution. But in general, DIAdem only saves information in a PDF-file which is really necessary - but with a high resolution.
-
How to draw line with width at my will
Dear frineds:
I have following code to draw lines, but I was required:
[1]. draw this line with some required width such as 0.2 or 0.9 or any width at my will
[2]. each line after I draw, when I use mouse to click on it, it will be selected and then I can delete it,
Please advice how to do it or any good example??
Thanks
sunny
package com.draw;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class DrawingArea extends JPanel
Vector angledLines;
Point startPoint = null;
Point endPoint = null;
Graphics g;
public DrawingArea()
angledLines = new Vector();
setPreferredSize(new Dimension(500,500));
MyMouseListener ml = new MyMouseListener();
addMouseListener(ml);
addMouseMotionListener(ml);
setBackground(Color.white);
public void paintComponent(Graphics g)
// automatically called when repaint
super.paintComponent(g);
g.setColor(Color.black);
g.setFont(getFont());
AngledLine line;
if (startPoint != null && endPoint != null)
// draw the current dragged line
g.drawLine(startPoint.x, startPoint.y, endPoint.x,endPoint.y);
for (Enumeration e = angledLines.elements(); e.hasMoreElements();)
// draw all the angled lines
line = (AngledLine)e.nextElement();
g.drawPolyline(line.xPoints, line.yPoints, line.n);
class MyMouseListener extends MouseInputAdapter
public void mousePressed(MouseEvent e)
if (SwingUtilities.isLeftMouseButton(e))
startPoint = e.getPoint();
public void mouseReleased(MouseEvent e)
if (SwingUtilities.isLeftMouseButton(e))
if (startPoint != null)
AngledLine line = new AngledLine(startPoint, e.getPoint(), true);
angledLines.add(line);
startPoint = null;
repaint();
public void mouseDragged(MouseEvent e)
if (SwingUtilities.isLeftMouseButton(e))
if (startPoint != null)
endPoint = e.getPoint();
repaint();
public void mouseClicked( MouseEvent e )
if (g == null)
g = getGraphics();
g.drawRect(10,10,20,20);
class AngledLine
// inner class for angled lines
public int[] xPoints, yPoints;
public int n = 2;
public AngledLine(Point startPoint, Point endPoint, boolean left)
xPoints = new int[n];
yPoints = new int[n];
xPoints[0] = startPoint.x;
xPoints[1] = endPoint.x;
yPoints[0] = startPoint.y;
yPoints[1] = endPoint.y;
/*if (left)
xPoints[1] = startPoint.x;
yPoints[1] = endPoint.y;
else
xPoints[1] = endPoint.x;
yPoints[1] = startPoint.y;
public static void main(String[] args)
JFrame frame = new JFrame("Test angled lines");
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
DrawingArea d = new DrawingArea();
frame.getContentPane().add( d );
frame.pack();
frame.setVisible(true);
}Message was edited by:
sunnymanmansonudevgan wrote:
dear piz tell me how i can read integer from user my email id is [email protected]
foolish, foolish question -
Automatic Payment program -line item cleared not displaying in table
automatic Payment program -line item cleared not displaying in table
i have re run the APP program DUSR1 same earlier it has run twice but table dose not show double payment to vendors how to resolve the issue.
Can some one please guide me on this.Hi Priyanka,
First, which table are you referring to. If your fist APP run clears the line item, it will no longer be available in the open item.
Please be more specific on the problem so that we can try to help you. If possible, please provide screenshots.
Regards,
Ganesh -
Exit for automatic creation of line items in VA01
Hello All,
I have a requirement wherein I need to create next blank new line item (with predefined line item no) upon creation of one line item. When user opens sales order creation screen there should be default line item (say line item no 10) created. If user fills data in item 10 & press enter exit should create next line item (say item 20) automatically.
Currently line item get created after user enter item details. I want this to happen before user enters data.
Regards,
Abhijeet moreThere is a customizing for this. You can also make it using MV45AFZZ but really difficult coding. You must debug what system do while you create a line item manually then u need to use every routine which system uses and even there is no error message it's still possible that you'll face with inconsistencies in billing.
I don't suggest you to try this using exit, unless you have 2-3 years SD experience. Best thing to do is inspecting customizing part.
Edited by: Gungor Ozcelebi on Jul 15, 2009 9:20 AM -
Hi everyone,
Who have a good way to draw lines on SAP form?
I created a Wizard form, and use Rectangle (Height=0) as the two lines between title and bottom button, but I met a problem, when show another form which cover the line, after close this form, some part of lines disappear, I have tried using SAP form refresh, it still can not restore showing line completely, who have good way to workaround the problem or give me another way to draw line.
Thanks in advance!
KathyThe only way I found to get a form looking really close to a standard B1 Wizard form is to use bitmaps. I use 3 - one each for the top, bottom and left hand side. The bitmaps include the line drawing and appropriate pictures/background colours. I normally define these in the XML used to create the form as in the following example:-
<item uid="PTOP" type="117" left="0" width="566" top="0" height="80" visible="1" enabled="1" from_pane="0" to_pane="0">
<AutoManagedAttribute/>
<specific picture="AZU_SPC_WIZ_TOP2.bmp">
<databind databound="0" table="" alias=""/>
</specific>
</item>
<item uid="PBOT" type="117" left="0" width="566" top="336" height="40" visible="1" enabled="1" from_pane="0" to_pane="0">
<AutoManagedAttribute/>
<specific picture="AZU_SPC_WIZ_BOT.bmp">
<databind databound="0" table="" alias=""/>
</specific>
</item>
<item uid="PLEFT" type="117" left="0" width="100" top="0" height="336" visible="1" enabled="1" from_pane="1" to_pane="1">
<AutoManagedAttribute/>
<specific picture="AZU_SPC_WIZ9.bmp">
<databind databound="0" table="" alias=""/>
</specific>
</item>
John. -
SmartForms - draw line in template
Hi!
I am new to SF, so have a question on drawing line in a template. I use template as the data is only printed out once and is static. I have many columns in my template and I would like to draw lines on the columns so that it is tidy & looks nicer.
I double click the template & in the "output options" tab, I checked the check box "line with..", but error prompt out to stop me, saying "Boxes/Shadings are not allowed within a table".
Does anyone know how can I draw lines in a template?
Kindly advise.
best regards,
GinnieHi,
Click on the template under the template tab, and then click on the select pattern just under the template heading , there you use lines.
regards,
Santosh Thorat
Edited by: santosh thorat on Dec 26, 2007 10:09 AM -
hi,
i am new to adobe illustrator cs2.
is there any other method to draw line other than s
setEntirePath().
thanks in advance,Hello David,
It sounds to me like you're witnessing the double edged sword of an incredibly sharp display. The contrast and clarity of LCD displays makes it very easy to see razor-thin lines with ultra fine definition, but this comes at a cost.
Font smoothing (a.k.a. font aliasing) is one example of where most LCDs are so sharp that most people prefer to have their text "fuzzed" up a little bit.
A one pixel wide diagonal line is another example that you've discovered - the display is so sharp that there is no blurring around the "steps" of the line. You can see every change in gradient, because as sharp as your CRT might've been, it was blurring the line just slightly - enough to enhance the illusion that your diagonal line was a line rather than a series of adjacent "steps". No software package that I know of has bothered to implement "line smoothing" yet, probably because you need the detail for accuracy when putting lines together.
Sort of related to this, big screen HDTV plasma and LCD monitors look amazing in the store when tuned to an HD station, but most people would be floored if they say how grainy and pixelated a standard cable signal looks on the same display. It's literally like watching an old VHS tape, because the display is so sharp it resolves detail that is invisible on a "lesser" display.
Neat human trick: get used to working with your LCD, and then go back to the CRT if you have a chance. How does the CRT look? I thought I needed glasses the first time I switched back!
-Shawn -
I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file. How can I accomplish that task? Is there software I can purchase?
Hi jgallu7382,
The latter is easily accomplished using the Drawing Markup tools, which are available in both the free Adobe Reader, and in Acrobat. Copying/pasting text into the PDF is something that you could do using the editing tools that are available only in Acrobat. Note, however, that Acrobat isn't intended to be a text-editing application, so editing there won't be as robust as in an application designed specifically for that purpose. (It's also worth mentioning that you won't be able to alter a PDF if it has document permissions applied that would prevent you from doing so.)
I hope that answers your questions.
Best,
Sara -
Need to draw line after the 2nd line item(Smart Forms)
Dear Friends,
I need to draw horizontal line after the 2nd line item and 3rd line item in smart forms.How can i achive this.
Plz help.
Edited by: farook shaik on May 19, 2009 8:19 AMThis is what you need to do:
1> In the tables->details section define two line types LT1 and LT2.
2> Come back to tables section pressing the table painter button.
3> Select a line type for which you want to have an underline(say LT2).
a] If the anchor cursor does not come click the draw lines and columns button( the pencil icon nutton)
b] select the line type ( it will become black after selection. Press and hold down ctrl to select
multiple cells.
c] after selection click the lower 'frame button' ( which is right at the top of box and shading).
4> Now goto data section where you have given your internal table name and work area.
a] in the sort criteria put your field POSNR and check the Event on Sort end chk box.
b] you will see an extra node under the main area of the table.
c] Create a table line with the line type LT2 in the node.
d]Also in the Main area add another table line with LT1 as the line type.
5> If POSNR remains unchnged LT1 will be triggered.
6> if Posnr changes then LT2 will be triggered with the underline.
This will suffice your requirement. -
How can get a Graphics to draw line on screen?
How can get a Graphics to draw line on screen?
Now, I can get a Graphics to draw line based on component. For example JPanel, but I want to get a Graphics to draw line on screen.By drawing on the screen, I assume you mean drawing outside the bounds of a top-level window like
JFrame or JDialog. You can't do that. At least, without going native and even then that's a dodgey thing
for any platform to let you do. One thing you can do is simulate it with a robot's screen capture:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
public class X {
public static void main(String[] args) throws Exception {
Rectangle bounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
BufferedImage image = new Robot().createScreenCapture(bounds);
Graphics2D g2 = image.createGraphics();
g2.setStroke(new BasicStroke(20));
g2.setPaint(Color.RED);
g2.drawLine(0, 0, bounds.width, bounds.height);
g2.drawLine(bounds.width, 0, 0, bounds.height);
g2.dispose();
JLabel label = new JLabel(new ImageIcon(image));
label.addMouseListener(new MouseAdapter(){
public void mousePressed(MouseEvent evt) {
System.exit(0);
JFrame f = new JFrame();
f.setUndecorated(true);
f.getContentPane().add(label);
f.setBounds(bounds);
f.setVisible(true);
} -
Draw line in Action Script project in Flash Builder (Gumbo).
Hi
I am working on drawing tool application and want to draw line and rectangle in Action Script project in Flash Builder (Gumbo). Please guide and help me with an example.
Thanks
Rangrajan.This should be helpful http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7dd9.html
-
Draw line in xy graph(pict​ure)
Hi all,
I import a picture into xy graph than i enable to annotate some indicators.
after i put the indicator in some location in xy graph(picture) i want to draw lines between the indicators.
can somebody help me with that? i'm using LABVIEW 8.2.1
sorry for my english.
Solved!
Go to Solution.
Attachments:
test1.vi 172 KB
test.jpg 14 KBHave a look at my example from long ago.
Here;s a quick and diry draft modification of your VI, see if it works for you. (lines are drawn between annotations when OK is pressed).
LabVIEW Champion . Do more with less code and in less time .
Attachments:
test1MOD.zip 43 KB -
Draw lines in graph parallel to y axis
I want to draw lines in a graph programatically.
In the vi attached, i have displayed a histogram chart.
I need to plot two lines parallel to y axis at different x axis locations to show the bounds/ range of values.
kindly help me in this.
Thank you in advance.
Regards
Grugh Mike
Success is Everything !!
Solved!
Go to Solution.
Attachments:
trial 1.vi 15 KBOr just use a second plot with a special style.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
trial 1MOD.vi 10 KB -
hi, i wanna draw line chart for some analysis of an image.
how can i do that?? plz help me in that, code would be more
better.thank u.Yes, you can use the code for free and you can include it in your application for free. JFreeChart is and will always be free software.
What's not free is the JFreeChart Developer Guide (a 300 page Acrobat PDF document) and access to the JFreeChart Priority Support Forum. You have to pay for these, if you want them, the idea being that a well-funded project will progress faster than one that relies solely on volunteers.
I get some criticism for taking this "commercial" approach, but I am 100% certain that it has made JFreeChart a better product, so I don't care...
Regards,
Dave Gilbert
JFreeChart Project Leader
Maybe you are looking for
-
I have a new laptop and want to transfer my itunes music across from the old one. What's the easiest /quickest method?
-
Upgrade install for newest version of Logic Studio questions...
I'm definitely interested in upgrading, lots of new features I'm excited about. However, I've got very little room on my hard disk, what do you guys think the footprint would be since it's an upgrade? Would it be smarter for me to remove Logic 8 et.
-
Playing Same Video on Two iPads?
The First iPad is Generation One and the second iPad is a second generation iPad. Now video mirroring is not the answer since I have tried AirView and Airserveer but the video only plays on ONE iPad at a time. Basically, i would like to mimic a dual
-
SQL Developer Data Modeler - Version 3.0.0.665 - Open older project fail
Hi, I just downloaded latest version of SQL Developer Data Modeler (3.0.0.665) and there is no "File" -> "Open" menu item. There is only "Save", "Save as", "Compare with" and "Exit". I try to drag`n`drop project file to the Data Modeler window. This
-
View Calculation view of ECC in SAP BW on HANA Server
Hello All, I have a question 1. We have SAP BW powered by HANA 2. We have ECC System which is also powered by HANA 3. We have HANA Studio installed on our desktop 4. Lets say I have connected to ECC Data Base VUA HANA studio and created Calculation V