Show Bid Request
Simple java routine that caluculates coordinates and draws lines
Bid Request Id: 54730
|
|
|
Posted by: |
ProjectX (4 ratings)
(Software buyer rating 10)
|
Non-action Ratio: |
Above Average - 30.00%
|
Buyer Security Verifications: |
Good
|
Approved on: |
Mar 26, 2003 9:06:34 AM EDT
|
Bidding Closes: |
Mar 28, 2003 5:40:02 AM EDT
|
Viewed (by coders): |
101 times
|
Deadline: |
3/29/2003
TIME EXPIRED
|
|
|
|
Description:
We need a java routine that caluculates coordinates and draws lines.
There can be a random number of lines drawn and the result should look as in the picture. A Link is a line drawn between two points.
The first link is drawn as a straight line and after that, all links with even index number should be drawn above the first line (with starting & end points connected to the points P1 & P2) and links with odd index number should be drawn bellow the straight line (with end&starting points connected to the points P1 & P2).
The parameters are: * param g * param p1 :the central point of first entity; * param p2 :the central point of second entity; * param linksCount :the count of links ; * param linkDistance :the distance between links ; * param scale :the scale of diagram, and default is 1.0; */ private void drawMultilink (java.awt.Graphics g, java.awt.Point p1, java.awt.Point p2, int linksCount , int linkDistance , double scale) { int x1=p1.x , y1=p1.y , x2=p2.x, y2=p2.y , wt, ht; int r=(int)(p1.distance(p2)); double ra=Math.atan((y2-y1)/(x2-x1+0.000001));// '+0.000001' is forbidden 'x2-x1' is zero; g.setColor(Color.blue ) ;
//draws the direct line for the first link g.drawLine((int)(x1*scale),(int)(y1*scale),(int)(x2*scale),(int)(y2*scale));
for(int i=0;i<linksCount;i++) {
//please add your code here. //the code should draw all links with even i (index) above the straight link (and existing links with even index) //and links with odd i (index) bellow the straight link (and existing links with odd index). //Because the end points must be connected to the starting/end points P1 & P2 as illustrated in the picture, actually three lines should //be drawn for each link (excluding the first link)
} }
Deliverables: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Complete ownership and distribution copyrights to all work purchased.
Platform:
J2SE
Must be 100% finished and received by buyer on:
Mar 29, 2003 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
|
This bid was accepted by the buyer!
|
$15 (USD)
|
Mar 26, 2003 10:49:04 AM EDT
|
10
(Excellent)
|
|
|
Your project could be solved very elegant. I will solve it in a professional way ... just take my bid.
You will be very satisfied.
I will comment it very well, and will be well understandable.
I will solve it in Java and will have a nice graphic user interface done with JavaSwing (if you want). I have solved a lot of programs more complicated then your.
Your program will be finished very very soon, I have enough experience to finish your project in one hour.
Nick, ... your devoted coder :)
|
|
|
|
|
|