Draw table on a graph

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class GrafTemp extends JApplet {
    static double[][] t = {{37.5,37.9},{38.1,38.21},{36.2,36.8},{37.9,38.0},{35.4,35.6},{36.7,37.3},{37.1,36.7}};
    public void init() {}
    public void start() {}
    public void stop() {}
    public void destroy() {}
    public void paint(Graphics g) {
     g.drawString("Graficni prikaz temperature pacienta",10,15);
     g.drawString("41",10,40);
     g.drawString("40",10,70);
     g.drawString("39",10,100);
     g.drawString("38",10,130);
     g.drawString("37",10,160);
     g.drawString("36",10,190);
     g.drawString("35",10,220);
     g.drawString("1",55,235);     
     g.drawString("2",80,235);
     g.drawString("3",105,235);
     g.drawString("4",130,235);
     g.drawString("5",155,235);
     g.drawString("6",180,235);
     g.drawString("7",205,235);
     g.drawLine(40,35,240,35);
     g.drawLine(40,50,240,50);
     g.drawLine(40,65,240,65);
     g.drawLine(40,80,240,80);
     g.drawLine(40,95,240,95);
     g.drawLine(40,110,240,110);
     g.drawLine(40,125,240,125);
     g.drawLine(40,140,240,140);
     g.setColor(Color.red);
     g.drawLine(40,155,240,155);
     g.setColor(Color.black);
     g.drawLine(40,170,240,170);
     g.drawLine(40,185,240,185);
     g.drawLine(40,200,240,200);
     g.drawLine(40,215,240,215);
Hey. In the code you see a 2-dimensional table t and what I want to do know is to draw a line with that numbers on the graph that is already created. How can I do that?

//  <applet code="GT" width="300" height="250"></applet>
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class GT extends JApplet {
    public void init() {
        setLayout(new BorderLayout());
        add(new GrafPanel());
// Using a separate graphics component will behave better in an applet.
class GrafPanel extends JPanel {
    double[][] t = {
        {37.5, 37.9}, {38.1, 38.21}, {36.2, 36.8}, {37.9, 38.0},
        {35.4, 35.6}, {36.7, 37.3},  {37.1, 36.7}
    AffineTransform xform;
    boolean firstTime = true;
    public GrafPanel() {
        initializeTransform();
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        drawGrafStructs(g);
        for(int j = 0; j < t.length; j++) {
            g2.setPaint(Color.green.darker());
            Point2D.Double p = modelToView(j, t[j][0]);
            g2.fill(new Ellipse2D.Double(p.x-2, p.y-2, 4, 4));
            g2.setPaint(Color.blue);
            p = modelToView(j, t[j][1]);
            g2.fill(new Ellipse2D.Double(p.x-2, p.y-2, 4, 4));
        if(firstTime) firstTime = false;
    /** Transform our model values to the view coordinate system. */
    private Point2D.Double modelToView(double x, double y) {
        Point2D.Double view = new Point2D.Double();
        Point2D.Double model = new Point2D.Double(x, y);
        xform.transform(model, view);
        if(firstTime)
            System.out.printf("model = [%.1f, %.1f]  view = [%5.1f, %.1f]%n",
                               x, y, view.x, view.y);
        return view;
    private void initializeTransform() {
        // Create scales for hard-coded graf.
        double[] scales = getScaleFactors();
        double xScale = scales[0];
        double yScale = scales[1];
        // Translate to the origin of the graf in view coordinate system.
        double x0 =  55;  // viewMinX
        // For ordinate: move to bottom of graf at viewMaxY = 215 and
        // continue down to the view equivalent of modelValue = 0 which
        // is yScale * modelMinVal in view coordinate system. This point
        // lies below/outside our gui, of course.
        double y0 = 215 + yScale*35;
        xform = AffineTransform.getTranslateInstance(x0, y0);
        // Multiply the y scale by -1 so that we can count positive
        // y upward from the origin along the graf ordinate.
        // Java counts positive y downward from its origin which
        // lies in the upper left corner of our applet. So we are
        // repositioning our downward-looking view from the upper left
        // corner to the model origin at modelY = 0, looking upward.
        xform.scale(xScale, -yScale);  // - sign flips y values
    private double[] getScaleFactors() {
        // Since graf structure values are hard-coded (vs. resizable)
        // we only need to compute these scale values one time.
        // The graf line y values form the viewY maximum/minimum.
        // The abcissa values define the viewX maximum/minimum.
        // The data values (t) define the model maxima/minima.
        // view max/min values          model max/min values
        //    minX =  55                      minX =  1
        //    maxX = 205                      maxX =  7
        //    minY =  35                      minY = 35
        //    maxY = 215                      maxY = 41
        // _scale = view _domain / model _domain
        int viewMinX =  55;
        int viewMaxX = 205;
        int viewMinY =  35;
        int viewMaxY = 215;
        int modelMinX =  1;
        int modelMaxX =  7;
        int modelMinY = 35;
        int modelMaxY = 41;
        double xScale = (double)(viewMaxX - viewMinX) / (modelMaxX - modelMinX);
        double yScale = (double)(viewMaxY - viewMinY) / (modelMaxY - modelMinY);
        return new double[] { xScale, yScale };
    private void drawGrafStructs(Graphics g) {
        g.drawString("Graficni prikaz temperature pacienta",10,15);
        g.drawString("41",10,40);
        g.drawString("40",10,70);
        g.drawString("39",10,100);
        g.drawString("38",10,130);
        g.drawString("37",10,160);
        g.drawString("36",10,190);
        g.drawString("35",10,220);
        g.drawString("1",55,235);    // min x value
        g.drawString("2",80,235);
        g.drawString("3",105,235);
        g.drawString("4",130,235);
        g.drawString("5",155,235);
        g.drawString("6",180,235);
        g.drawString("7",205,235);   // max x value
        g.drawLine(40,35,240,35);    // min y value
        g.drawLine(40,50,240,50);
        g.drawLine(40,65,240,65);
        g.drawLine(40,80,240,80);
        g.drawLine(40,95,240,95);
        g.drawLine(40,110,240,110);
        g.drawLine(40,125,240,125);
        g.drawLine(40,140,240,140);
        g.setColor(Color.red);
        g.drawLine(40,155,240,155);
        g.setColor(Color.black);
        g.drawLine(40,170,240,170);
        g.drawLine(40,185,240,185);
        g.drawLine(40,200,240,200);
        g.drawLine(40,215,240,215);  // max y value
}

Similar Messages

  • How to draw table in layout in module pool

    how to draw table in layout in module pool with wizard or table control

    Hi
    Goto Screen Painter .
    here we can create table in 2 ways,
    with wizard and without wizard.
    with wizard it will step by step...
    for without wizard (its quite easy)
    Click Table control and Drag into ur screen.
    then --> click input box and place into to that table control
    for two column do this two times.
    then for header click the text icon in left side and drag into
    correspoding places .. then ur table is ready..
    then give names using double clicking the elements
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    Reward if useful.

  • Layout mode in Dreamweaver CS3. Can't draw table

    I did the same exact thing i do in dreamweaver 8, but in cs3,
    it's now working.
    I went to layout mode and with a blank page and the draw
    table button is grayed out.
    what do i do to use it. I'm already in layout mode.

    Get out of Layout mode for starters.
    In my opinion, there are three serious problems with Layout
    Mode -
    1. Perhaps most importantly, it sits between you and *real*
    HTML tables,
    and fools you into believing that concepts like "layout cell"
    and
    "autostretch" really mean something. They do not. As long as
    you use
    Layout Mode, you'll never learn one of the most important
    things for new web
    developers - how to build solid and reliable tables.
    2. Actually, #1 wouldn't be *so* bad, except that the code
    that is written
    by Layout Mode is really poor code. For example, a layout
    table contains
    MANY empty rows of cells. This can contribute to a table's
    instability.
    In addition, if your initial positioning of the table's cells
    is a bit
    complex,
    Layout Mode will throw in col- and rowspans aplenty as it
    merges and splits
    cells willy-nillly to achieve the pixel-perfect layout you
    have specified.
    Again,
    this is an extremely poor method for building stable tables,
    because it
    allows
    changes in one tiny cell's shape (i.e, dimensions) to ripple
    through the
    rest
    of the table, usually with unexpected and sometimes
    disastrous consequences.
    This is one of the primary reasons for the final result's
    fragility - read
    this -
    http://apptools.com/rants/spans.php
    3. The UI for Layout Mode is beyond confusing - many options
    that you might
    want to use are inaccessible, e.g., inserting another table,
    or layer onto
    the page.
    I can understand the new user's desire to use this tool to
    make their life
    easier,
    but the cost is just too heavy in my opinion.
    To make good tables, keep it simple. Put a table on the page,
    and begin to
    load your content. If you would want a different table
    layout, instead of
    merging or splitting cells, consider stacking tables or
    nesting simple
    tables instead, respectively.
    And above all, do not try to build the whole page with a
    single table!
    To read more about this approach, visit the DW FAQ link in my
    sig, and run
    through the table tutorials.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Dreamweaver2k2" <[email protected]> wrote
    in message
    news:[email protected]...
    >I did the same exact thing i do in dreamweaver 8, but in
    cs3, it's now
    >working.
    > I went to layout mode and with a blank page and the draw
    table button is
    > grayed out.
    >
    > what do i do to use it. I'm already in layout mode.
    >

  • How to Draw table in SAPscript ???

    Hi all Guru of SAPScript!
    I want to draw a table with column and row in SAPscript. Who can help me step by step?
    Thanks!
    Edited by: kathy a on May 6, 2008 11:53 AM

    Hi,
    Use BOx Syantax  How to Draw table in SAPscript ??? Pls Read the description
    Syntax:
    1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    2. /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    3. /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    BOX
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each parameter (XPOS, YPOS, WIDTH, HEIGHT and FRAME), both a measurement and a unit of measure must be specified. The INTENSITY parameter should be entered as a percentage between 0 and 100.
    •&#61472;XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    •&#61472;WIDTH: Width of the box.
    Default: WIDTH value of the SIZE command.
    •&#61472;HEIGHT: Height of the box.
    Default: HEIGHT value of the SIZE command.
    •&#61472;FRAME: Thickness of frame.
    Default: 0 (no frame).
    •&#61472;INTENSITY: Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: Decimal numbers must be specified as literal values (like ABAP/4 numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.
    Units of measure: The following units of measure may be used:
    •&#61472;TW (twip)
    •&#61472;PT (point)
    •&#61472;IN (inch)
    •&#61472;MM (millimeter)
    •&#61472;CM (centimeter)
    •&#61472;LN (line)
    •&#61472;CH (character).
    The following conversion factors apply:
    •&#61472;1 TW = 1/20 PT
    •&#61472;1 PT = 1/72 IN
    •&#61472;1 IN = 2.54 CM
    •&#61472;1 CM = 10 MM
    •&#61472;1 CH = height of a character relative to the CPI specification in the layout set header
    •&#61472;1 LN = height of a line relative to the LPI specification in the layout set header
    Examples:
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shadowing having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    POSITION
    Syntax:
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started the POSITION value is set to refer to the upper left corner of the window (default setting).
    Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words as a value which specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
    •&#61472;XORIGIN, YORIGIN: Origin of the coordinate system.
    •&#61472;WINDOW: Sets the values for the left and upper edges to be the same of those of the current window (default setting).
    •&#61472;PAGE: Sets the values for the left and upper edges to be the same as those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    Examples:
    /: POSITION WINDOW
    Sets the origin for the coordinate system to the upper left corner of the window.
    /: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
    Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
    /: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
    Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
    SIZE
    Syntax:
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    •&#61472;WIDTH, HEIGHT: Dimensions of the rectangle or line.
    •&#61472;WINDOW: Sets the values for the width and height to the values of the current window (default setting).
    •&#61472;PAGE: Sets the values for the width and height to the values of the current output page.
    Examples:
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
    Reward Helpfull Answers
    Regards
    Fareedas

  • Why is draw table empty after i import from memory id 'SAP_APPLICATION' ?

    Hello,
    I have the following
    data draw like draw.
    data intdraz like draz occurs 0 with header line.
    import draw
              intdraz
    from memory id 'SAP_APPICATION'
    at this point draw table is empty and does not contain the information of the selected file, so basically
    draw-DOKAR
    draw-DOKNR
    draw-DOKTL
    draw-DOKVR
    are all empty.
    does anyone know why this is happening ?
    thank you

    Hi Rushikesh,
    Dynamic table i have created with same structure as of internal table which is getting exported....
    thats why i m surprised how come structure mismatch.....i have checked in debugger, structure is same.....for both the tables,
    Can you/anyone give any example of Exporting internal table to MEMORY ID and getting it back (IMPORT) into dynamic internal table of same structure...
    Regards
    Munish Garg
    Edited by: MunishGarg on Feb 16, 2010 11:36 AM

  • Draw tables?

    Post Author: mike7510uk
    CA Forum: General
    is there any way in crystal x1 to draw tables?I have a timetable report to do and it seems very primitive that i have to draw all the lines

    Post Author: V361
    CA Forum: General
    If a crosstab report would work that is the quickest.  Other than that, I usually create mine using the borders on the fields, say you turn all the left borders on, and align the fields next to each other.  The far right field you turn left and right borders on.  Anyway, other than that, you can draw lines and extend them from top to bottom of the report, of course if your fields grow......  That's one reason I use crosstabs, or the field borders.   Hope this helps.

  • Drawing tables without boxes and lines in XI

    Post Author: geeeeee
    CA Forum: Crystal Reports
    Hi I'm trying to figure a way to draw tables in XI (it seems like a pretty simple task) but I can't find how to draw a table without hand drawing lines and boxes. Any ideas? Thanks

    Hi,
    Unfortunatelly drawing a frame for table is not so straightforward. To draw a frame around the columns and table itself you need to create a window (on top of window where you display your table) placing it at column position and checking Lines width in Output Options tab for this window. This will produce a fake column frame. See [this example|http://img294.imageshack.us/my.php?image=tableq.png].
    For rows you could do similar: check what is the heihgt of row in the table and draw respective windows as rows. This one, however will look a bit strange, but for columns it looks and works fine.
    Regards
    Marcin

  • Cannot find "draw table layout icon" cs5 dreamweaver

    Hi guys,
    I can't seems to find the draw table layout icon on cs5 dreamweaver?
    Any ideas have to bring it up???
    Thanks in advance.
    Darrel

    Hi guy Darrel,
    do you think about that (screenshots from my German DW)?
    It's coming from there Translated from my German DW): window > workspace layout > classically:
    If I should not have understood the question correctly, please ask or explain again.
    Hans-G.

  • How to draw a directed 2D graph in java

    how to draw a directed 2D graph in java?-if anybody can suggest some tutorials about this topic or can suggest the way to draw the graph.......how can i do that.......if the nodes of the graph has X and Y co-ordinate.........and the neighbours of each node are known.......suppose
    node1 has neighboures node2,node3 and node4.....node2 has node5 and node3 as neighbours.....in this way....so directed edge from node1 to node2,node3,and node4......
    or if u can suggest other way out......plz reply....

    prometheuzz wrote:
    JosAH wrote:
    If you can draw a line between two points (x,y) and (x',y') you can draw an edge.
    If you can draw one edge you can draw all edges of a graph.Proof by induction!
    ; )Yep, I copied/pasted exactly the same answer I gave this poster in another forum; I recognized him by his 'plz'-es and the abundance of punctuation ;-)
    kind regards,
    Jos

  • Data Display table along with Graph

    As per my knowledge we are not having any option currently for displaying data table along with graph.
    This plot data table can have plot name along with current data.
    See the sample below. Many times I need to display number of parameters on graph and current value need to see along with graph.
    It will very useful if I get something like this in next version.

    Hi chameli,
    well, you gave the chart as an example to your question - but didn't specify your question any further!
    What's wrong with a little coding to have your data presented as you like to?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can I draw a k-line graph with jfreechart for a Mac app on 10.8?

    Hi,
      I want to draw a k-line graph on mac, and I haven't find a lib better than jfreechart on doing that work until now, so how can I use it in xcode?
    Regards

    I believe this version works in 10.6.8.
    http://support.apple.com/kb/DL1507

  • Drawing various types of Graph

    I have a list of vendors along with their Rating % in an internal table . I need to draw a graph for the same . I want to use basic report only . Not ALV . Can u suggest a FM and with that i can draw a graph for the same.
    If possible can anybody please give me a sample report ..

    go to SE80 and choose function group from the drop down list box and enter BUSG in the input field. Then click on the display button next to it.
    You will see all the function modules in that Function Group.
    <i>And the o/p is not english . How to see the o/p in English language ?</i>
    I didnt understand this question, sorry.
    Check out those programs i gave, they use FM <b>GRAPH_MATRIX_3D</b> to show the graph. follow the code in those programs , its quiet simple .
    Regards
    Raja

  • From labview to excel:tabl​e and graph customized

    Hi
    I want to get this table in excel and in front of each row a graph drawed using just the value of E1,E2, E3, E4, E5 ....E10 ,and in the table ,for the columns M1 M2 ....M10 the have to contain either yes or no ,if yes the cell has to be green if ni the cell has to be red.
    i'm wondering if there is a real solution to solve thoses 2 problems
    Attachments:
    Recepteur-1-page1_final_OK.vi ‏38 KB

    1-i want to export this table to excel sheet
    2-because those values are numeric and each one represents elapsed time in a test ,so i want to get a graph from thoses values for each student,and in front of his row.i think i must have big rows so the graph will be clear
    3-it's about a maintain,so it has either true or false(booleen),if it's true>green otherwise > red
    Attachments:
    best one.vi ‏34 KB

  • Drawing Table & Displaying Data in SAP Script : Data Alignment probelm

    Hi Experts,
    I am Developing An SAP Script in Which Had to Display Data in a Table with Three column & multiple rows, i had created the Table using BOX Command in SAP SCRIPT & assigned a TEXT Element to it & calling this text element while Looping in WRITE_FORM FM.but while displaying DATA in One column the data in another columns shift to the right & if the data in 1st column is less the data in the second column shift to the left. i know these issues had been covered in the past but i am not getting any concrete results from searching in the forum.
    Also On more problem when ever i am declaring a text element in some other window & also giving the Command BOX inside it to draw outline the BOX is not drawn.
    This seem to be an alignment issue . Experts Please provide me with some alternative.
    Thanks & Regards
    Priyesh Shah

    Hi ,
    To stop columns going left and right.Use number of position in the variable .Like fix the lenght &name(10)&.Here name can print 10 characters.
    For box not appearing in other window check the box command parameters .It will draw.Not a alignment problum.

  • Draw tables in sapscript

    How to draw the tables in sapscript?
    Is there any other way then draw box for vetical and horizontal line.

    Hi
    See this and draw the boxes in Script
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    POSITION WINDOW
    SIZE WIDTH '160' MM HEIGHT '140' MM
    BOX FRAME 10 TW
    Box
    BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35
    linessssssss
    BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
    The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    BOX Command
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    TW (twip)
    PT (point)
    IN (inch)
    MM (millimeter)
    CM (centimeter)
    LN (line)
    CH (character).
    The following conversion factors apply:
    1 TW = 1/20 PT
    1 PT = 1/72 IN
    1 IN = 2.54 CM
    1 CM = 10 MM
    1 CH = height of a character relative to the CPI specification in the form header
    1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    POSITION Command
    Syntax
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
    Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
    XORIGIN, YORIGIN
    Origin of the coordinate system.
    WINDOW
    Sets the values for the left and upper edges to match those of the current window (default setting).
    PAGE
    Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    /: POSITION WINDOW
    Sets the origin for the coordinate system to the upper left corner of the window.
    /: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
    Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
    /: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
    Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
    SIZE Command
    Syntax
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
    Reward points if useful
    Regards
    Anji

Maybe you are looking for

  • Calling report from developer 10g in word program

    My Dears: I Wrote this code to open report in word program web.show_document('http://127.0.0.1:8889/reports/rwservlet?report=c:\emp.rdf&destype=cache&desformat=RTF&userid=scott/tiger@test&paramform=no&MIMETYPE=application/msword'); I use this code in

  • Need BAPI Requirement

    Hi Freinds, Can any one give me some requirement, i want any report using BAPI's on SD or MM ? can u pls mail to [email protected] Points for sure Regards Vijaya

  • Want to install video player

    hi i hav n76 iwant to install video player tha support diffrent formats nd flashplayer also. plz tell the link thanks

  • Mail Unexpected Quits when getting Email

    My intel Imac had a unexpected shutdown problem and crashed while using mail. Since then every time I try to get email, Mail quits. The activity viewer looks like it is trying to keep fetching the same email. The crash report is below. I have no thir

  • Exporting Final Cut Pro 5 EDL´s to Adobe Premiere Pro 2.0

    Is it possible? Please tell me how... Thanks, Clark Nova