line

Drawing lines between windows just like in Interface Builder

I have two windows, each with a round NSView: ------------------ ------------ |X-+ Oscillator | |X-+ Mixer | |----------------| |----------| | | | | | O | | O | | | | | | | | | ------------------ ------------ Bo...

command line tool text output

I have a small command line tool and after running it, I'd like to display the text output in a way that's easy for someone to copy/paste and save it or email it to someone else. Copy/pasting from a command prompt is not done in the standard way, so I don't want people to have to copy/paste from there. Saving the file to disk is possib...

Straight Line Equation between two points

Hi, I need to paint the line which links two points. I am doing it, in Java. I receive two points as parameters and I have to calculate if the straight line between them, is inside the black figure. I developed my own solution using the straight line equation, but my results are different than using the "professional" programs (such a...

Read specific line from text file, according to Checked Listbox selection number.

Heya, i want to create an application which will read a specific line from a text file and show it in a textbox. The line will be chosen according to the number of the listbox selection i will make. Here's the code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase...

iPhone CGContext: drawing two lines with two different colors

I am having some troubles using the CGContext with an iPhone app. I am trying to draw several lines with different colors, but all the lines always end up having to color, which was used last. I tried several approaches I could think of, but haven't been lucky. I set up a small sample project to deal with that issue. This is my code, I...

Creating a line chart

Can I create a line chart that looks like the one(which I have provided as a link. Please click the link to see the chart image) using SSRS 2008? If so, please help me how to do that? Please see the below link for sample http://i48.tinypic.com/20ib1v8.png ...

Can jTable cell act as jList multiple row.

I want to show multipleline content in a cell like a monthly scheduler. Currently i am using jTextArea but the data is still too long. I was thinking to using jList, is there any sample jTable using jList as cell. Any other good practices or suggestion to display long data in one cell? ...

How to get volume on line in Java

I'd like to check my systemmixers for volume in Java. So I loop through all mixers and create a line. Is there a possibility to get an integer of the volume currently active on that line? I only seem to find adjustments to the systemvolume or linevolume but not the current actual volume. Or should I try to record a little part of every...

How do you draw a line dynamically in vb6?

I'm trying to get data from a database in order to draw a line on a vb6 form. I was looking at this site, but I'm not even a beginner in vb6, and I really couldn't follow it. If anyone has any suggestion, even if it's just about drawing a line in vb6 (not dynamically), I'd appreciate it. Thanks! ...

java class using jaxb api failing in jira with : Provider com.sun.xml.bind.v2.ContextFactory not found

Hi, I am writing a plugin for Jira which involves parsing of XML documents. I am using JAXB to do so (XML to pojos and vice versa) So have a class which generates XML from pojos using JAXB. it looks like... import javax.xml.bind.*; Class Parser { public void m1() { ... // code which uses classes in javax.xml.bind.* } pu...

use vbscript to modify a text file

Every day we get a flat text file. Some days there are lines in the file that need to be deleted before it can be processed. These lines can appear in different places, but always start with the characters 6999 or 7999. We would like to run a script that will delete these particular lines. However, and this is way beyond me, any wher...

Is there a .NET library or example code out there that is useful for optimizing points on a line or decimation?

I have a large set of datapoints (all 2D that represent a edges of a shape) where there exists many that all line up in straight lines a series of many points (pixels) I would like to optimize the data by removing the points that make up straight lines (same vector) and leave only the last two end points of the series to define the line ...

flex 4: how can i connect two lines with a small curve?

Hello. I have the following code to draw two lines that connect to each other at one point: <s:Line right="0" top="0" bottom="0"> <s:stroke> <s:RadialGradientStroke weight="3"> <s:GradientEntry ratio="0" color="0xAB9A9C" alpha="0.5" /> <s:GradientEntry ratio="0.8" color="0x8A797B" /> <s:G...

how to break ^M into separate lines?

I am new to java programming. I have a program which I wrote to interperate data from my car. I am running into problems with using raw data instead of cooked data. public static void readFile(String fromFile) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(fromFile)); //... Loop as long as ...

WPF line, polyline fast rendering

Hi, I have a problem and found something about it here: http://stackoverflow.com/questions/1150060/how-to-draw-line-of-ten-thousands-of-points-with-wpf-within-0-5-second We need something like this, but a little more. We have to draw a route from gps coordinates (around 20.000 coordintes) on a map. (The map rendering is fast. Basically...

ActionScript LineStyle Color Changing Prematurely

i'm attempting to draw lines beside each other, but the last line from the first color group takes on the color from the second color group before the second color is assigned. can anyone explain this? function drawCorner() { var corner:Sprite = new Sprite(); corner.graphics.beginFill(0x0, 1.0); corner.graphics.drawRect...

Line intersection code in pascal

I'm trying to write line intersection code to detect if two lines intersect. the form i have stuff in is there are O objects that can have Lo(l subscript O) lines, each line has 2 points and each point has a x and a y. this is the record format. TPoint = record x,y:integer; end; TLine = record Point : array[0..1] of TPoint;...

Thick horizontal line detection

Please suggest me some methods on thick horizontal line detection in images. Any papers, libraries etc please. ...

Javascript Draw line with jQuery

Please see my code here http://jsbin.com/ijoxa3/edit var drawHorizondalLine = function(x1,y1,x2,y2, color) { var width = Math.abs(x1 - x2); var posX = (x1 > x2) ? x1 : x2; var id ='c_'+new Date().getTime() var line = "<div id='"+id+"'class='line'>&nbsp;</div>"; $('body').append(line);...

Detected Lines Angle in EmguCV

hi, i used image.HoughLine to find line in my image. i want to know the angle of each line. so i tried : double deltaY = line.P2.Y - line.P1.Y; double deltaX = line.P2.X - line.P1.X; double angle; if (deltaX != 0) angle = Math.Atan2(deltaY, deltaX); else angle = 90; but , it returns 0 and -1 , while the lines in image...