How do I create a line that is established through two Point values?

I'm given a number of fields and methods that must be used to establish a line that crosses through two Point values. This is a bit confusing because Point is also a class in the API, so I'm not sure where to begin with the given attributes and operations I have at hand:
public Line (Point Start, Point End) {..}
public boolean isHorizontal() {...}
public boolean isVertical() {..}
public void move(int x, int y) {...}
public void display() {...}
private Point theStart;
private Point theEnd;

@misty:
There is a big, bold announcement at the top of this forum that reads as follows:
BEFORE YOU POST A TOPIC HERE: Please be sure your topic is related to features or functionality of this site. This forum is not for general technology questions. Not sure which forum to use? Try searching for your topic in the "Search Forums" element on the left panel. See Known Issues to get information on issues we know about and are actively working on to improve your forums.sun.com experience.
That announcement is also at the top of the screen where you wrote your post.
There is also a sticky announcement thread at the top of this forum (http://forum.java.sun.com/ann.jspa?annID=34). The subject of that thread is "Before you post a topic here - This area is NOT for general technical questions". If you read that thread, it will tell you much the same thing as the announcement.
Apparently, you missed (or chose to ignore) all three attempts to urge you to not post general technical questions to this forum. I encourage you to read them and please follow their instructions. Doing so will help you get better, faster answers to your questions, as well as keep the regular forum members from jumping down your throat for not paying attention.
Please don't reply to this thread. Good luck.
~

Similar Messages

  • How do I create glowing lines that wrap around a 3D sphere?

    Here's the effect I'm going for, maybe a bit more glow and lines do not need to arc like that: http://image.shutterstock.com/display_pic_with_logo/504532/504532,1275514960,1/stock-photo --d-illustration-render-of-a-global-network-focus-on-europe-54442234.jpg
    And like this: http://image.shutterstock.com/display_pic_with_logo/689230/689230,1329711228,2/stock-vecto r-globe-network-connection-blue-background-vector-illustration-95588578.jpg
    I'm having a couple of problems: 1) if I put the network lines on the map it looks too flat so I think I need to apply them to a slightly larger invisible sphere; 2) when I add a blur/outer glow to the lines they do not wrap cleanly on the sphere, they kind of break up and distort. Plain lines do not seem to have this problem but objects with effects do.  
    Any tips on how to do this? Thanks!

    I'm sure the lines in your examples were drawn individually with the pen tool but for the lines below the sphere in the second example you can use the arc tool and draw a bunch of random lines with it in one go if you hold the ~ key on your keyboard when you drag with the arc tool. this is how I made the lines on the image below in one second, then I used the eraser tool to make the ends uneven and added some glowing dots which I had to duplicate on top of each other to increase the glow.

  • How do I create a line graph in numbers if my y values are in minute/second format?

    When I try clicking line graph, it shows me an empty graph.....no data on it.....just an x and y axis

    Convert your Duration values to numerical equivalent using DUR2MINUTES. Chart the values in the converted column, as shown:
    Chart 1: Result when cells containig duration values (column C) are selected and charted.
    Chart 2: Result for same type of chanrt with same rows of column D are selected.
    D2, and filled down: =DUR2MINUTES(C)
    Regards,
    Barry

  • How do I create a table that breaks for new pages?

    I'm running Pages 5.5.1 on OS X Yosemite 10.10.1 and am having difficulty understanding table behavior.
    Scenario 1 - I create a new file and insert a table at the top of the first (blank) page.  It automatically is selected for Object Placement>Move With Text.  If I add rows to this table, Pages automatically adds a new page and breaks the table so that additional cells appear on the new page.  All well and good.  If I change the Object Placement to Stay on Page, the second page and those cells disappear.
    Scenario 2 - I create a file and first add a few lines to the top of the first page.  Then, I insert a table below those lines.  It is also automatically selected for Object Placement>Move With Text.  When I add rows, the table does not break for the second page, but the entire table jumps to the second page.  If I change the Object Placement to Stay on Page, I can then slide the table back onto page one, but as in Scenario 1 the portion of the table which would continue onto page two disappears.
    So, how do I create a table that I can add to a page which is not blank (as in Scenario 2) which will break automatically onto page 2 instead of jumping, and so the rows appear on page two (not disappear as I describe above)?
    Thank you for your help.

    The inline table is supposed to break but like most things Pages 5 it is buggy and erratic in its behavior.
    Use Pages '09.
    Peter

  • How do i create a report that has drill-down with class?

    How do I create a report that has drill-down levels so that I can have summary information at the top level but then view specific records at a more detailed level?

    can i know ur email address.
    this is my other one coding
    but problem is very very slow when i 1 see my output
    TABLES: proj, coep.
    *&            TYPES DECLARATION                                        *
    *TYPES: BEGIN OF tb_coep,
             wtgbtr TYPE coep-wtgbtr,
          END OF tb_coep.
    DATA : int_proj TYPE proj OCCURS 0 WITH HEADER LINE.
    DATA : int_coep TYPE coep OCCURS 0 WITH HEADER LINE.
    DATA : gd_date(10). " FIELD TO STORE OUTPUT DATE
    TYPES : BEGIN OF t_date,
              year(4)  TYPE n,
              month(2) TYPE n,
              day(2)   TYPE n,
           END OF t_date.
    *&            SELECTION-SCREEN                                         *
    SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: so_pspnr FOR proj-pspnr OBLIGATORY.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN END OF BLOCK b01.
    *&            TOP-OF-PAGE                                              *
    *&            fetch the data for the list                              *
    SELECT * INTO int_proj FROM proj where
             pspnr in so_pspnr.
    append int_proj.
    CLEAR int_proj.
    ENDSELECT.
    SELECT * into int_coep FROM coep WHERE
             wtgbtr in so_pspnr.
    append int_coep.
    CLEAR int_coep.
    ENDSELECT.
    LOOP at int_proj.
      write : / int_proj-pspnr, int_proj-post1.
    ENDLOOP.
    LOOP at int_coep.
      write : int_coep-wtgbtr.
    ENDLOOP.
    Edited by: Dickson on Jul 10, 2009 10:53 AM

  • Adobe Photoshop: how to create cut lines on landscape letter for two 5 by 7 in images?

    adobe photoshop: how do i create cutting lines in adobe photoshop if my document is landscape 8.5 by 11 inches and the image are two side by side 5 by 7 in (so appearing 10 inches wides, 7 inch height)... so basically this leaves a 0.5 border top/bottom/left right....i need corner crop marks and a little line in the middle top and bottom (in the crop area) to designate where to cut the 10 inches into 2, creating my two 5 by 7 inches for each image... my guidlines are perfectly aligned, i just need to know how to make cut lines out of my guidelines except in the middle

    What I use to do years ago, before most apps had auto crop marks. Was create the guidelines for the margin. Use a line tool, pen tool, etc. and create a line that goes from the guidelines where they meet each other and draw outwards to the edge of the page. Because the line is on the guideline, it snapped to it, making it a straight line. Repeated for the same corner drawing the other direction. (In other words, if I was doing the top left corner, I would draw out to the left, then repeat to draw out to the top of the page).
    Group the two line, copy and flip to snap it to the next corner and repeat until all four corners of the page are done.
    But if you have a postscript printer, acrobat pro, adober illustrator or adobe indesign, they will generate the crop marks for you.
    tip: Do the above while creating an action and your done for the next time. Just run the action. But I reccomend that you set the rules to percentages when creating the guidelines, that way, it can work on more than one image size.

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • How do I create a filter that bypasses the in page and goes directly to spam rather to delete?

    How do I create a filter that bypasses the in page and goes directly to spam rather than to delete?

    From your question I'm going to guess you are talking about Mac Mail.
    If you are talking about a RULE then the "Perform the following actions:" would be to select "Move Message" to mailbox "Junk" instead of "Delete Message."
    If you are talking about something else then please give more information.

  • How can I create a slideshow that depicts only a version of a photo rather than the original? Since the original and new versions are saved together, the aperture slideshow often choices the original rather than the desired version to display/

    How can I create a slideshow that depicts only a version of a photo rather than the original?   Since the original and new versions are saved together, the aperture slideshow often choices the original rather than the desired version to display.

    There are two things we use the name "Slideshow" for in Aperture:  a Slideshow Album, used for making Slideshows, and the Slideshow that is made.  (Imho, it is a design mistake to not call the containers used to create Slideshows, Books, etc., "Albums".)
    The Slideshow will use the Album Pick from any Stack.  A good way to use Aperture is to promote the Image you want to regularly use (such as, for example, a Version with adjustments) to the top of the Stack.  This makes it the Stack Pick, and will be the default Album Pick.  If you haven't done that, you can still change the Album Pick for any Stack in a Slideshow Album.  Expand your Stack(s), select the Image in each Stack that you want to be the Album Pick (and thus shown in the Slideshow), and "Stacks➞Set Album Pick".  (Note the keyboard shortcut; there is also a Toolbar icon for this.)  The change is immediate.  The Slideshow will always show the Album Pick (or, if there is not one, the Stack Pick) for every Stack in your Slideshow Album.

  • How can I create an icon that when clicked will open and maximize an image file?

    How do I create a icon that when clicked will open and maximize an image file?  I have tried to use the simple image widget with maximize upon tap/click - however I am can only size the image really small and put on the page.  I'd prefer to have a graphic that when clicked it simply opens up the image.  This is for a very simple question/answer book.   The user is suppose to look at a picture and locate something.  I want to put an 'Answer' graphic on the image and then the user can click the 'answer' graphic and it will open up the picture with the answer identified. 
    Is this possible?

    Have yiu tried the PopOver widget?  You can drop an image into it, maximise the image and the widgets window...But, you cannot get it full screen.
    With iBooks Author, you either learn to use what is available within the app, or look online for third party widgets to purchase which suit your project.

  • HT2798 I have a Mac OS 10.6.8 server in my classroom that I have networked to each student's account.  How do I create a folder that allows them to place their finished assignments in it, but does not allow them to go in and remove anything from that fold

    I have a Mac OS 10.6.8 server in my classroom that I have networked to student accounts on the iMacs in the room.  How do I create a folder that allows studnts to place their finished assignments in it, but does not allow them to go in and remove anything from that folder?

    You want a "Drop Box" style folder. You should be able to achieve this by creating a folder and giving it permissions similar to the "Drop Box" folder in your users Public Folder (i.e. write only permissions.)

  • How do I create a rule that only applies to one mailbox?

    How do I create a rule that only applies to one mailbox? For example deleting the messages in the box after 10 days.

    You don't.  Rules are applied only to new incoming messages, or manually to the selected messages.  They cannot be used to delete messages after an amount of time.  You could create an AppleScript or Automator action that would do that and then use a recurring event in iCal to run that script.

  • In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email?

    In DPS/Indesign for iPad - How can i create a button that once tapped, will pre-populate an email? like when you tap a recipe in Marth Stewart Every Day Food for example....

    http://forums.adobe.com/message/4190932

  • How do we create a CURSOR that consists of two TABLES

    I would like to access a cursor that has columns from two tables.

    How do we create a CURSOR that consists of two TABLESA cursor does not consist of data. A cursor is not a result set that is created in the memory of the database server and populated with "+results+".
    A cursor is source code (SQL or anonymous PL/SQL block) that has been compiled into an executable program. The execution plan (see the EXPLAIN PLAN SQL command) describes the structure of this program and how it will be executed.
    When you fetch data from a cursor, you are receiving the output of this executable program known as a cursor.
    So as the other respondents explained in this thread, you need to create SQL source code that joins tables. Then you send this SQL to the server, where it is parsed and compiled into a cursor in the database's Shared Pool (together with all other SQLs that the database received - all SQLs are compiled as cursors).
    Once this is done, you can open the cursor (execute the cursor program) and fetch data from it.

  • How do I create a line-Map animation effect

    How do I create a Line-Map animation effect?
    i am trying to highlight a 'Route' on a map.

    Are you using PSE or Premiere Elements? You can't do this in PSE. For PRE, better to ask in their forum, since very few of us here use it:
    http://forums.adobe.com/community/premiere_elements

Maybe you are looking for

  • Conned by an App

    Hi. I browsed the apps in appworld and chose to download one based on the several positive reviews it had. It did have negative reviews as well but I could not tell if the problems those users had were as a result of the programme or their providers,

  • SD invoice cancellation

    Hello all, I have got a problem with a canceled invoice. Document flow Flow : Sales order > debit memo request > Invoice 58xxxxxxx > Canceled invoice 63xxxxxxx (Posting Status : Not posted in FI) What I want to to : canceling the canceled invoice or

  • When we connect two bw systems to one R/3 system?

    Hi , When we connect two bw systems to one R/3 system, could you please exlain what is the imact to SAP and BW in terms of query performance, batch performance,Develoment ,Quality system,security,BW Support. Thanks in advance. Regards, kranthi

  • Looking for average and max redo size generated per second

    Please, I'm implementing Dataguard physical standby on Oracle 10g R2 on Windows 2003. My issue is now how could I get redo size generated per second to compare with the actual bandwidth between primary and standby database. I know I can use the Datab

  • Change in music playback level during gameplay

    Hi, I'm not sure if this is a bug or a feature.. when i'm playing my own music during gameplay and some effects happen in the game the music level goes to bottom and the sounds overwhelm the music. Is there a workaround to this... its rather annoying