How to define cell line type = Null

Hi experts

How to set the type of cell shots = Null

my script like this:

app.documents.stories.everyItem (). tables.everyItem (). cells.everyItem (.topEdgeStrokeType = Null)

app.documents.stories.everyItem (). tables.everyItem (). cells.everyItem (e .bottomEdgeStrokeTyp = Null)

app.documents.stories.everyItem (). tables.everyItem (). cells.everyItem (.rightEdgeStrokeType = Null)

app.documents.stories.everyItem (). tables.everyItem (). cells.everyItem (.leftEdgeStrokeType = Null)

someone could tell me what's wrong with him?

thaks

Respect of

John

N in "null" must be lowercase: null instead of Null. And to add ". everyItem()" after "app.documents".

app.documents.everyItem().stories.everyItem().tables.everyItem().cells.everyItem().topEdgeStrokeType = null;
app.documents.everyItem().stories.everyItem().tables.everyItem().cells.everyItem().bottomEdgeStrokeType = null;
app.documents.everyItem().stories.everyItem().tables.everyItem().cells.everyItem().rightEdgeStrokeType = null;
app.documents.everyItem().stories.everyItem().tables.everyItem().cells.everyItem().leftEdgeStrokeType = null;

Tags: InDesign

Similar Questions

  • How to define a type of customer when you submit a form

    Hello! How can I configure 'Client Type' a customer when they submit a form? In other words, I have a form on my site and if a user is complete and submit this form, I would like the user to give a specific customer Type.

    TIA

    You can't yet.

    Soon however.

    The output of these through liquid will be available in the version later today and hopefully the aspects of form in the new future.

  • How to display the line empty as a line with null values

    Hi all

    Pls advise me if it is possible to use a single query statement to display
    Empty row (i.e. not a single return line) as a line with null values.

    For example,.

    Select the names of names_mst whose name = "sgasfgs".

    Result:
    Names of
    =====
    < null >

    Hello
    If you desire to join external to double, as shown below, you still get at least a line of production

    SELECT  nm.names
    FROM            dual
    LEFT OUTER JOIN names_mst   nm  ON nm.name='sgasfgs';
    
  • How to create a validation "not null" unique for all elements in a page?

    Hello world

    How to create a validation "not null" unique for all elements in a page? I love textfields. Rather than create "not null" validation for each article, I would like to create a single validation control that will be used

    Thanks and greetings
    Umer

    Nice1 wrote:
    Bob, like u said I did the following:

    (1) less to create a button, there are 9 elements, and for each item, I put in the light of 'yes '.
    (2) under the button Delete, there is 1 point and have in light of the 'Yes' for the item
    (3) validation of the page defined for the 9 items under 'create a button' and put it to fire when 'create' button clicked
    (4) the page validation set for 1 number under 'remove' button and put it on fire when "delete" button clicked

    now, when I click on the 'create' button it shows same for the item under the "Delete" button that's a required element

    Sorry, I do not see this note. The required model will not work, there is no way to attach it to the button.

    The best solution is that the answer only a few answers to the top

    Create 2 validations page type as a PL/SQL with code

    1st validation
    
    :P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL  include all 9 items
    
    Set the When Button Pressed to the CREATE button
    
    2nd validation
    
    :P1_ITEM10 IS NOT NULL
    
    Set the When Button Pressed to the DELETE button
    

    I think that this will be the best way to do it.

    Published by: Bob37 on April 27, 2012 12:02

  • How to define an academic style of reference?

    When I put a reference style in 5.6.2 Pages (MacBook Pro, OS X El Capitan 10.11.3), I gives me a choice of font size. When the font size is set, all future references set automatically to the style follow this font size. The problem is, however, that style overrides the parameter exponent of reference numbers, make the reference number and size of text in the Notes section of the page. It is unacceptable for academic writing.

    Please can someone advise me on how to define a functional style of academic reference that keeps the numbers superscript? I can replace the style and restores the Exhibitor by pressing on "ctrl + cmd + shift +" + ", but these manual effort defies the point of having a style...

    Each reference is in its own independent area at the bottom of the document with the paragraph style by default reference initially applied to his text. 11 pt Helvetica regular is in the v5.6.2, Pages. And small enough for notes.

    You can click three times in one of these cells in reference text, select this option and change the attributes of the font for the text and even a reference itself. The latter would be easier to zoom to 200%. Or, you can click on a single reference, or additional reference cells of control + click and then apply the change of police attribute to all notes. If it were a simple font size increase, the exponent, and the reference text would increase proportionally in the selected cells. No need to keyboard shortcuts.

    You can also define your own style of reference section customized to reduce boredom.

    A double click on a reference in the cell reference, followed by a command-right arrow will deposit your beam to insert directly behind this exponent of reference in the body of the document.

  • How the SUM cells including the text and the number?

    Hello world

    Someone can tell me how the SUM cells include the text and the number?

    1 Bob 20

    2 30 Jane

    3 50 Jame

    Total 100

    Thank you

    Hi Jordan,.

    If the numbers are not always two digits, FIND the position of the space between the number and name:

    Formula in B2 (fill down)

    = FIND("",A2)

    Then use the LEFT function to get the number in the column C:

    Formula in C2 (fill down)

    = LEFT (A2, B2)

    This will give a text string (Tip: left-aligned).

    Convert to a numeric value in the D column with the VALUE function:

    Formula in D2 (fill down)

    VALUE = (C2)

    (Tip: propped right)

    Table 1 has a header row and footer of the line, and the SUM is easy. Formula to the D8 footer line:

    = SUM (D)

    Kind regards

    Ian.

    Edit: You can hide columns B and C

    Ian.

  • define a data type (read binary)

    Hello

    I want to read a file GET TRC and fight with its data type, I know that I can put a cluster in the entry of the data on a "read the binary" type, but I don't know how it actually works, it's what I have:

    I have a definition of the TRC header file:

    offset: 0, label: patient info, data type: char, description: patient information

    offset: 32, label: recording information, data type: char, description: recording information

    offset: 64, label: acquisition unit, data type: Unsigned long, description: device type

    etc...

    Above is an example (a fake), because I can not give the description of file structure, this specific file...

    So my question is: how would you define a data type cluster that could read binary files and lectures we love exactly this way?

    Or it only works with files saved as a structure for labview? For example, a cluster?

    Best regards

    Thijs Boeree

    ThijsBoeree wrote:
    Hi, I'm on my way back now, so I'll check the first thing in the morning. I thought about it and he came to the conclusion that I might need to do a painting of a cluster with an offset, length (County) and different types of data and run in a loop of fror to load the binary file for reading and the position of the file 'set' to recover data and afterwards put them in a well-defined place cluster!
    But maybe you have the same solution...

    You can do this, but of course you can't auto-index different types of data in a table. But you could fill the cluster directly in the loop for.

  • How can I change the type of image file to download on a site like walmart or walgreens for printing?

    How can I change the type of image file to download on a site like walmart or walgreens for printing?

    In general, they will accept the image in the format, that it was taken (if it was taken by the majority of cameras or cell phones).  But if so, you have a few options.

    The most simple and integrated solution is Microsoft Paint.  Yes it is from the 1980s, but it still works and changes of a good job for a time.  Just to right click on the photo file, choose open with and choose paint.  Then go to file > save as and save this return as the file type you want it to be (like PNG or BMP or JPG, quality declining in the JPG option).

    If you need more options like changing the quality he uses during conversion, another free option (of the very very many) is Paint.NET, an open source free image editing program. http://www.dotPDN.com/downloads/PDN.html

    There are also programs that can do it in bulk, so you can highlight 300 photos and do convert them all at once.  You can do this for free or with tools like Photoshop.

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • How a copy cell text, supporting details and attachments from a Version to another Member?

    How a copy cell text, supporting details and attachments from a Version to another Member?

    There was a Hyperion Planning 11.1.1.3 copied cell text utility, supporting details and attachments from one (job) Version to another Version (for example Final).  At the time where we ran, data erased!

    The old version (11.1.1.3's) Administration, management, copy data doesn't copy the text in the cell, supporting details and attachments from one Version to another Version. Latest version 11.1.2.4 copy these textual data?

    Thank you.


    Yes, in 11.1.2.4 data copy copy 'annotations to account', 'support detail' and 'text in the cell. Read below for what copy can do and can't do.

    http://docs.Oracle.com/CD/E57185_01/EPM.1112/planning_admin.PDF

    Copy of data

    You can copy plans of one dimensional intersection to another, including relational data and supporting details. For example, you can copy Final of Budget, FY10, FY11, forecast, first draft.

    Notes:

    l parameters to copy selected data are kept for the current session only.

    members of dimension l copied must be present in the selected plan types.

    the data must be copied in the cells that can accept data. For example, you can not copy data in read-only or dynamic of cells.

    l , you can copy annotations of account, to support in detail and text in cells. You can't copy annotations unit planning.

    l you cannot use this feature with attributes, selecting the attributes to copy.

    data l Essbase is copied regardless of selections for the copy of data Options.

    l because it is an administrative function, planning means that you have full access to the data you are copying. You cannot copy in the planning units that are approved.

    l this feature does not calculate data. To perform calculations, including the increase in the forecast of 5%, apply the business rule after you have copied the data.

    l to copy the data to succeed, you must select at least one Member for dimensions scenario, account, entity, period, and Version.

  • How do I ignore the blanks/Null in mapping FDMEE

    Hello team, I have a file source format below.

    In it so I need to ignore the lines which is having the entity as null how do I design the data mapping in FDMEE. Please notify. I have need the lines with null to go on the target system

    Account entitty year project pc SupportSystem Site
    645WE2014growthPc1100BSSSite1
    6552014growthpc1230Site1
    656PEUT2014growthPc1234BSSTraining3

    Thank you

    Mouline

    Hello

    Do not export data, you must set the target value to IGNORE

    To capture entities null (empty), you have the mapping, but it works only with whitespaces channels not empty...

    However, you have several ways to achieve what you want according to your needs. For example:

    -Option 1: create a script to import then empty entities are imported as white space and then use the mapping of (see details in the Administrator's guide) to map to IGNORE

    -Option 2: create mappings for the valid entities, and then create a mapping rule that maps to IGNORE (this mapping rule is performed last)

    -Option 3: skip lines with an empty entity in the import format. Then these lines will not be imported in FDM so you don't need to map...

    -The other options...

    I hope that clarifies.

    See you soon

  • How to define the rules of navigation in faces - config.xml dynamically?

    In jdev 12.1.2 I am studying and performing the adf faces demo (12.1.2 version).

    I am trying to implement the function of navigation like this:

    1. in the navigation tree in the left panel of the accordion will show the features of an application which is read from database tables;

    2. When you click on a node in the navigation tree, a corresponding function/page will be launched in the Panel to the right of the home page;

    3. the navigation tree nodes display names and information pages target will be resident in the database tables and will be read in my case, the control of data bindings.

    and now I know, the click action was executed in this file in the demo: componentGallerySideBarTree.jsff:

    ->action = "#{stamp.actionOutcome}"

    < af:tree id = "tree" value = "#{attrs.menuModel}" var = "stamp" = "single" rowSelection fetchSize = "200" "

    Summary = "#{uploading." Summary}"disclosedRowKeys =" #{attrs.menuModel.foldersTreeState} "autoHeightRows = '0'"

    displayRow selectedRowKeys = "#{attrs.menuModel.selectionState}" = "selected" "

    contentDelivery = 'immediate' emptyText = "there are no demos for this category.

    styleClass = "AFStretchWidth" >

    < f: facet name = "nodeStamp" >

    < af:panelGroupLayout id = "nodePgl" >

    < af:image source = "#{stamp.ico}" styleClass = "GalleryIcon" shortDesc = "Image of a tree node" "

    ID = "nodeImg" / >

    < af:switcher facetName = "#{stamp.children == null?' leaves ': 'notLeaf'}" id = "nodeSw" > "

    < f: facet = "journal batch name" >

    < af:link id = text = "#{stamp.label"leafLink"} '"

    shortDesc = "#{stamp.label} #{stamp.deprecated eq 'real'?" (not recommended) " :"} »

    action = "#{stamp.actionOutcome}"

    inlineStyle = "#{stamp.deprecated eq 'true'?-style: italic; color: gray':"} ' "

    selected = "true" >

    < af:target execute="@this"/ >

    < / af:link >

    < / f: facet >

    < f: facet name = "notLeaf" >

    < af:outputText id = value = "#{stamp.label"notLeafText"} ' shortDesc =" #{stamp.label} "/ >"

    < / f: facet >

    < / af:switcher >

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:tree >

    and the value of actionOutcome was entered in this file DemoConfusedComponentsMenuModel.java:

    (for the case of the confused component navagation tree folder)

    private TreeModel _initConfusedComponents()

    {

    Confused components

    The list < DemoItemNode > confusedComponentsNodes = new ArrayList < DemoItemNode >)

    {

    {

    ..

    Add (new DemoItemNode ("Tabs", "/ confusedComponents/tabs.jspx","/adfdt/panelTabbed.png","confused.tabs"));

    Add (new DemoItemNode ("iterators","/ confusedComponents/iterators.jspx","/adfdt/iterator.png","confused.iterators" ""));

    }

    };

    DemoItemNode confusedComponentsGroup = new DemoItemNode ("Often confused", "/ images/folder.png", confusedComponentsNodes);

    List ConfusedComponentsList = new ArrayList();
    confusedComponentsList.add (confusedComponentsGroup);

    TreeModel confusedComponents = new ChildPropertyTreeModel (confusedComponentsList, _CHILDREN);
    Return confusedComponents;
    }

    In addition, there are elements in faces-config .xml to define the rules of navigation for the actions 'by clicking on the tree node.

    <>navigation-case

    < from outcome >confused.iterators< / de-results >

    < to view - id > /confusedComponents/iterators.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    So, I can add a new entry in the navigation tree, like this:

    1. in DemoConfusedComponentsMenuModel.javaof the file: Add

    Add (new DemoItemNode ("Iterators", "/confusedComponents/cms.jspx","/ adfdt/iterator.png","confused.cms" ""));

    2. in the file faces - config.xml, add:

    <>navigation-case

    < from outcome >confused.cms< / de-results >

    < to view - id > /confusedComponents/cms.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    and it works!- I have successfully added a new node in the navigation tree, called a new page created by myself cms.jspx.

    If I implement them using database tables (links datacontrols EO/VO),.

    I think I can put action = "#{stamp.actionOutcome}" by links.

    But how can I pay the entry in the faces-config file. XML? -That is to say:

    How to define the rules of navigation in faces - config.xml dynamically?

    Thanks in advance!

    ADF 12 c comes with support for JSF 2.0, you can use the implicit navigation feature.

    In short: you don't need to add case action property, any set of navigation in the name of the page (and include the path if necessary).

    In your case, the name of the action will be: ' / confusedComponents/cms.jspx ' and of course, you can link the action property of method that returns this string.

    If you want to add by the case of navigation program, try ConfigurableNavigationHandler.

    For example:

    Manager of ConfigurableNavigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance () .getApplication () .getNavigationHandler ();

    handler.getNavigationCases () .put (...);

    Dario

  • How to manage the lines multiple region table OFA

    Hi gurus,

    I'm new to the development of new Pages of the OFA. Please help me how to manage multiple lines in the table region OAF.

    My requirement I'm not able to manage multiple lines in my area of Table.

    First row in my table area I am selected date_start and date_end when I select the end_date I need I need difference bet ween dates.

    My problem is I am able to manage the first Table line but I am not able to manage the table still ranks when I fire that time I first get the rank only.

    POS:

    14/08/12 07:59:40 1

    14/08/12 07:59:40 inside

    14/08/12 07:59:40 date difference is 86400000

    14/08/12 07:59:40 date difference is 1

    14/08/12 07:59:40 date is less than 365

    14/08/12 07:59:57 1

    14/08/12 07:59:57 inside

    14/08/12 07:59:57 date difference is 86400000

    14/08/12 07:59:57 date difference is 1

    14/08/12 07:59:57 date is less than 365

    14/08/12 08:00:13 1

    14/08/12-08:00:13 inside

    14/08/12 08:00:13 date difference is 86400000

    14/08/12 08:00:13 date difference is 1

    14/08/12 08:00:13 date is less than 365

    My custom logic:

    If (DutDetSEndDat".equals (pageContext.getParameter (EVENT_PARAM))) {" "}
    DateDiff (pageContext, webBean);
    //Am = XxDutyTravelAMImpl
    //(XxDutyTravelAMImpl) pageContext.getApplicationModule (webBean);
    OAViewObject = oaviewobject1
    (OAViewObject) am.findViewObject ("XxDutyTravelDuDetEOVO1");

    System.out.println("1");
    If (oaviewobject1! = null) {}
    System.out.println ("Inside");
    oaviewobject1. Reset(); New line added
    oaviewobject1. Next(); new line added
    Line OARow = (OARow) oaviewobject1.getCurrentRow ();

    Date sDate = (Date) row.getAttribute ("DutdetStartDate");

    Date = eDate (Date) row.getAttribute ("DutdetEndDate");
    java.util.Date VChangeDateTime =
    new java.util.Date (sDate.timestampValue () .getTime ());

    If (sDate! = null & & eDate! = null) {}
    long m1 = sDate.timestampValue () .getTime ();
    long m2 = eDate.timestampValue () .getTime ();

    long diff = m2 - m1;
    System.out.println ("difference in date is" + diff);
    int diffDays = Math.round (diff / (24 * 60 * 60 * 1000));
    System.out.println ("difference in date is" + diffDays);
    If {(diffDays > 365)
    System.out.println ("Date is greater than 365");
    } else {}
    System.out.println ("Date is less than 365");
    }
    }
    }
    }

    Kind regards

    Srinivas

    Hi Srini,

    To get the event line descriptor that shot please use code below.

    If (DutDetSEndDat".equals (pageContext.getParameter (EVENT_PARAM))) {" "}
    DateDiff (pageContext, webBean);
    Am = XxDutyTravelAMImpl
    (XxDutyTravelAMImpl) pageContext.getApplicationModule (webBean);

    String rowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow line = (OARow) am.findRowByRef (rowRef);

    Date sDate = (Date) row.getAttribute ("DutdetStartDate");

    Date = eDate (Date) row.getAttribute ("DutdetEndDate");
    java.util.Date VChangeDateTime =
    new java.util.Date (sDate.timestampValue () .getTime ());

    If (sDate! = null & eDate! = null) {}
    long m1 = sDate.timestampValue () .getTime ();
    long m2 = eDate.timestampValue () .getTime ();

    long diff = m2 - m1;
    System.out.println ("difference in date is" + diff);
    int diffDays = Math.round (diff / (24 * 60 * 60 * 1000));
    System.out.println ("difference in date is" + diffDays);
    If {(diffDays > 365)
    System.out.println ("Date is greater than 365");
    } else {}
    System.out.println ("Date is less than 365");
    }
    }
           
    }

    Thank you

    Vlaminck

  • How do I reselect the type to change.  I have a text template that I want to, but when I try to select it with the text tool always creates a new text layer.  How to change the type of the layer in my registered design?

    How do I reselect the type to change.  I have a text template that I want to, but when I try to select it with the text tool always creates a new text layer.  How to change the type of the layer in my registered design?

    OK, Bob. This give a try.

    First, open a new file and make sure the background is white, not on Transparent that I suspect you have currently defined.

    Then, type your copy. Your layers panel will then look like the top of this picture...:

    and when you drag the text on the image layer, it will look like the lower part of the sample above.

    You can then position the text layer with the tool move

  • How to change a line drawn at the same time?

    Copy the following code draws a line XY Chart and lines to draw on the table by left click of the mouse and if mouse hover, line get selected turns red and can be deleted or moved.
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.chart.CategoryAxis;
    import javafx.scene.chart.LineChart;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.control.Label;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import javafx.stage.Stage;
     
    public class LinesEdit extends Application {
     
        Path path;
     
        public static void main(String[] args) {
            launch(args);
        }
     
        @Override
        public void start(Stage stage) {
     
            final CategoryAxis xAxis = new CategoryAxis();
            final NumberAxis yAxis = new NumberAxis(1, 21, 0.1);
            yAxis.setTickUnit(1);
            yAxis.setPrefWidth(35);
            yAxis.setMinorTickCount(10);
            yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
                @Override
                public String toString(Number object) {
                    String label;
                    label = String.format("%7.2f", object.floatValue());
                    return label;
                }
            });
            final LineChart<String, Number> lineChart = new LineChart<String, Number>(xAxis, yAxis);
     
            lineChart.setCreateSymbols(false);
            lineChart.setAlternativeRowFillVisible(false);
            lineChart.setLegendVisible(false);
     
            XYChart.Series series1 = new XYChart.Series();
     
            series1.getData().add(new XYChart.Data("Jan", 1));
            series1.getData().add(new XYChart.Data("Feb", 4));
            series1.getData().add(new XYChart.Data("Mar", 2.5));
            series1.getData().add(new XYChart.Data("Apr", 5));
            series1.getData().add(new XYChart.Data("May", 6));
            series1.getData().add(new XYChart.Data("Jun", 8));
            series1.getData().add(new XYChart.Data("Jul", 12));
            series1.getData().add(new XYChart.Data("Aug", 8));
            series1.getData().add(new XYChart.Data("Sep", 11));
            series1.getData().add(new XYChart.Data("Oct", 13));
            series1.getData().add(new XYChart.Data("Nov", 10));
            series1.getData().add(new XYChart.Data("Dec", 20));
     
            BorderPane bp = new BorderPane();
            bp.setCenter(lineChart);
            Scene scene = new Scene(bp, 800, 600);
            lineChart.setAnimated(false);
            lineChart.getData().addAll(series1);
            
            LinesEdit.MouseHandler mh = new LinesEdit.MouseHandler( bp );
            bp.setOnMouseClicked( mh );
            bp.setOnMouseMoved( mh );
     
            stage.setScene(scene);
     
            path = new Path();
            path.setStrokeWidth(1);
            path.setStroke(Color.BLACK);
     
            scene.setOnMouseDragged(mh);
            scene.setOnMousePressed(mh);
            bp.getChildren().add(path);
            stage.setScene(scene);
            stage.show();
        }    
           
        class MouseHandler implements EventHandler< MouseEvent > {
        private boolean gotFirst    = false;
        private Line    line;
        private Pane    pane;
        private double  x1, y1, x2, y2;
        private LineHandler lineHandler;
           
        public MouseHandler( Pane pane ) {
            this.pane = pane;
            lineHandler = new LineHandler(pane);
        }
        
        class LineHandler implements EventHandler< MouseEvent > {
        double  x, y;
        Pane pane;
    
        public LineHandler(Pane pane){
            this.pane = pane;
        }
        @Override
        public void handle( MouseEvent e ) {
            Line l = (Line) e.getSource();
    
            // remove line on right click
            if( e.getEventType() == MouseEvent.MOUSE_PRESSED
                    && e.isSecondaryButtonDown() ) {
                pane.getChildren().remove( l );
            } else if( e.getEventType() == MouseEvent.MOUSE_DRAGGED
                    && e.isPrimaryButtonDown() ) {
                double tx = e.getX();
                double ty = e.getY();
                double dx = tx - x;
                double dy = ty - y;
                l.setStartX( l.getStartX() + dx );
                l.setStartY( l.getStartY() + dy );
                l.setEndX( l.getEndX() + dx );
                l.setEndY( l.getEndY() + dy );
                x = tx;
                y = ty;
            } else if( e.getEventType() == MouseEvent.MOUSE_ENTERED ) {
                // just to show that the line is selected
                x = e.getX();
                y = e.getY();
                l.setStroke( Color.RED );
            } else if( e.getEventType() == MouseEvent.MOUSE_EXITED ) {
                l.setStroke( Color.BLACK );
            }
            // should not pass event to the parent
            e.consume();
        }
    }   
        @Override
        public void handle( MouseEvent event ) {
            if( event.getEventType() == MouseEvent.MOUSE_CLICKED ) {
                if( !gotFirst ) {
                    x1 = x2 = event.getX();
                    y1 = y2 = event.getY();
                    line = new Line( x1, y1, x2, y2 );
    
                    pane.getChildren().add( line );
    
                    gotFirst = true;
                } 
                else {
                    line.setOnMouseEntered( lineHandler );
                    line.setOnMouseExited( lineHandler );
                    line.setOnMouseDragged( lineHandler );
                    line.setOnMousePressed( lineHandler );
                    // to consume the event
                    line.setOnMouseClicked( lineHandler );
                    line.setOnMouseReleased( lineHandler );
                    line = null;
                    gotFirst = false;
                }
            } 
                else {
                    if( line != null ) {
                        x2 = event.getX();
                        y2 = event.getY();
                        // update line
                        line.setEndX( x2 );
                        line.setEndY( y2 );
                }
             }
          }
       }
    }
    What I want to do now is to change the length of line or the slope by selecting one of the points end or tail (A and B on photo)

    [http://s16.postimage.org/f32p2a8md/A02503.png]

    and end new game x, there point. How to get there?

    Thank you.

    Hello. You can use the event handler OnContextMenuRequested to edit and delete the line:

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.geometry.Side;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.chart.CategoryAxis;
    import javafx.scene.chart.LineChart;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.control.ContextMenu;
    import javafx.scene.control.Label;
    import javafx.scene.control.MenuItem;
    import javafx.scene.input.ContextMenuEvent;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import javafx.stage.Stage;
    import javafx.stage.WindowEvent;
    
    public class LinesEdit extends Application {
    
        Path path;
    
        public static void main(String[] args) {
            launch(args);
        }
    
        @Override
        public void start(Stage stage) {
    
            final CategoryAxis xAxis = new CategoryAxis();
            final NumberAxis yAxis = new NumberAxis(1, 21, 0.1);
            yAxis.setTickUnit(1);
            yAxis.setPrefWidth(35);
            yAxis.setMinorTickCount(10);
            yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
                @Override
                public String toString(Number object) {
                    String label;
                    label = String.format("%7.2f", object.floatValue());
                    return label;
                }
            });
            final LineChart lineChart = new LineChart(xAxis, yAxis);
    
            lineChart.setCreateSymbols(false);
            lineChart.setAlternativeRowFillVisible(false);
            lineChart.setLegendVisible(false);
    
            XYChart.Series series1 = new XYChart.Series();
    
            series1.getData().add(new XYChart.Data("Jan", 1));
            series1.getData().add(new XYChart.Data("Feb", 4));
            series1.getData().add(new XYChart.Data("Mar", 2.5));
            series1.getData().add(new XYChart.Data("Apr", 5));
            series1.getData().add(new XYChart.Data("May", 6));
            series1.getData().add(new XYChart.Data("Jun", 8));
            series1.getData().add(new XYChart.Data("Jul", 12));
            series1.getData().add(new XYChart.Data("Aug", 8));
            series1.getData().add(new XYChart.Data("Sep", 11));
            series1.getData().add(new XYChart.Data("Oct", 13));
            series1.getData().add(new XYChart.Data("Nov", 10));
            series1.getData().add(new XYChart.Data("Dec", 20));
    
            BorderPane bp = new BorderPane();
            bp.setCenter(lineChart);
            Scene scene = new Scene(bp, 800, 600);
            lineChart.setAnimated(false);
            lineChart.getData().addAll(series1);
    
            LinesEdit.MouseHandler mh = new LinesEdit.MouseHandler(bp);
            bp.setOnMouseClicked(mh);
            bp.setOnMouseMoved(mh);
    
            stage.setScene(scene);
    
            path = new Path();
            path.setStrokeWidth(1);
            path.setStroke(Color.BLACK);
    
            scene.setOnMouseDragged(mh);
            scene.setOnMousePressed(mh);
            bp.getChildren().add(path);
            stage.setScene(scene);
            stage.show();
        }
    
        class MouseHandler implements EventHandler< MouseEvent> {
    
            private boolean gotFirst = false;
            private Line line;
            private Pane pane;
            private double x1, y1, x2, y2;
            private LineHandler lineHandler;
    
            public MouseHandler(Pane pane) {
                this.pane = pane;
                lineHandler = new LineHandler(pane);
            }
    
            class LineHandler implements EventHandler< MouseEvent> {
    
                double x, y;
                Pane pane;
    
                public LineHandler(Pane pane) {
                    this.pane = pane;
                }
    
                @Override
                public void handle(final MouseEvent e) {
                    final Line l = (Line) e.getSource();
                    final double x_ = e.getX();
                    final double y_ = e.getY();
    
                    final ContextMenu contextMenu = new ContextMenu();
                    MenuItem item1 = new MenuItem("Edit");
                    item1.setOnAction(new EventHandler() {
                        public void handle(ActionEvent e) {
    
                            l.setEndX(x_);
                            l.setEndY(y_);
    
                            System.out.println("Edit");
                        }
                    });
    
                    MenuItem item2 = new MenuItem("Delete");
                    item2.setOnAction(new EventHandler() {
                        public void handle(ActionEvent e) {
    
                            pane.getChildren().remove(l);
    
                            System.out.println("Delete");
                        }
                    });
    
                    contextMenu.getItems().addAll(item1, item2);
    
                    l.setOnContextMenuRequested(
                            new EventHandler() {
                                @Override
                                public void handle(ContextMenuEvent event) {
                                    contextMenu.show(l, Side.RIGHT, 0, 0);
    
                                    System.out.println("Hello World!");
                                }
                            });
    
                    // remove line on right click
                    if (e.getEventType()
                            == MouseEvent.MOUSE_PRESSED
                            && e.isSecondaryButtonDown()) {
                        //   pane.getChildren().remove( l );
                    } else if (e.getEventType()
                            == MouseEvent.MOUSE_DRAGGED
                            && e.isPrimaryButtonDown()) {
                        double tx = e.getX();
                        double ty = e.getY();
                        double dx = tx - x;
                        double dy = ty - y;
                        l.setStartX(l.getStartX() + dx);
                        l.setStartY(l.getStartY() + dy);
                        l.setEndX(l.getEndX() + dx);
                        l.setEndY(l.getEndY() + dy);
                        x = tx;
                        y = ty;
                    } else if (e.getEventType()
                            == MouseEvent.MOUSE_ENTERED) {
                        // just to show that the line is selected
                        x = e.getX();
                        y = e.getY();
                        l.setStroke(Color.RED);
                    } else if (e.getEventType()
                            == MouseEvent.MOUSE_EXITED) {
                        l.setStroke(Color.BLACK);
                    }
                    // should not pass event to the parent
    
                    e.consume();
                }
            }
    
            @Override
            public void handle(MouseEvent event) {
                if (event.getEventType() == MouseEvent.MOUSE_CLICKED) {
                    if (!gotFirst) {
                        x1 = x2 = event.getX();
                        y1 = y2 = event.getY();
                        line = new Line(x1, y1, x2, y2);
    
                        pane.getChildren().add(line);
    
                        gotFirst = true;
                    } else {
    
                        line.setOnMouseEntered(lineHandler);
                        line.setOnMouseExited(lineHandler);
                        line.setOnMouseDragged(lineHandler);
                        line.setOnMousePressed(lineHandler);
                        // to consume the event
                        line.setOnMouseClicked(lineHandler);
                        line.setOnMouseReleased(lineHandler);
                        line = null;
                        gotFirst = false;
                    }
                } else {
                    if (line != null) {
                        x2 = event.getX();
                        y2 = event.getY();
                        // update line
                        line.setEndX(x2);
                        line.setEndY(y2);
                    }
                }
            }
        }
    }
    

Maybe you are looking for

  • re - initialize iCLoud email

    Recently, I changed my email address in my identification of Apple. But the email address on my iCloud stays with the old address that was used in the Apple. And I don't remember the password to iCloud. How can I change the e-mail iCloud identificati

  • V3 - 772 G-9808 vs V3 - 772 G-9820

    Or NX. M74AA.009 vs NX. MMCAA.002 if you prefer SKU. Someone with insight can provide details on the differences between these two machines. I can say that the 9820 has somewhat newer i7 and the vs GTX 850 GT 750. What I can't understand is: -That we

  • What is your experience with Sandisk RMA?

    I'm back my rocket v2 due to a broken headphone jack.  I diagnosed this problem largely because of you guys.  Thanks again!   I am afraid they could give me a rocket + replacement, I don't want to, because it is known to be of lesser quality than the

  • HP Envy 14-2000eg HARD drive replacement

    Hello My name is Jakub and recently, I have a big problem with my HP Envy 14-2000eg. Without going into details, it turned out that I need to replace the HARD drive. Anyone could provide suggestions, please? I searched it for a few days now, but I wo

  • low cannot load program in Windows 7

    ~ I have window 7 and impossible to load all pogram