Writing text vertically and drawing dashed line

Hello,
I m trying to write text vertically ( basically to write data on the y-axis of a graph)..Is there a way in which i can set the line direction properties to VERTICAL..?
Also, i m trying to draw a dashed line.Can anyone tell me how to do this?
Thnx in advance....

Try looking [url http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html]here.
: jay

Similar Messages

  • How can I draw dashed lines on a Picture Control?

    I have loaded a *jpg map onto a Picture Control.
    I then load a file of X-Y coordinates that make-up different legs which are connected.
    I need to make these lines dashed. Before I spend time on adding new points in between
    points and then alternate between "Draw line" &
    "Draw point", I wonder if there is an easier
    way of maybe changing the attribute of the
    line with "Draw Multiple Lines" ???

    I have been trying to draw dashed lines too. I have tried drawing a dash and then putting it in a loop. the loop executes after the user has lifted the mouse and then it gets the end point of the line. the problem is that the line appears only after the mouse has been pressed, dragged and released. I was wondering if you have managed to solve your problem. If yes then could you help me with it.

  • How to change draw dashed line with arrowhead (not straight)?

    Hi friends,
    The following code sinept draws an arrowed line from a given point to the other point. I want to know how it can changed to be dashed line as well? I would appreciate it if anybody help me for doing such changes.
    Thanks in advance,
    Reza_mp
    import javax.swing.*;
    import java.awt.*;
    import java.util.ArrayList;
    public class ArrowExample extends JFrame
        enum ArrowHead {
            HEIGHT(10), WIDTH(10);
            int n;
            ArrowHead(int n) {this.n = n;}
            public int value() {return n;}
        java.util.List<Arrow> arrows;
        BasicStroke stroke;
        private class Arrow {
            Point start;
            Point end;
            Polygon arrowHead;
            public Arrow(Point start, Point end) {
                this.start = start;
                this.end = end;
                double direction = Math.atan2(end.y - start.y, end.x - start.x);
                System.out.println(direction * 180/Math.PI);
                arrowHead = new Polygon();
                arrowHead.addPoint(0, 0);
                Point p1 = rotate(ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p1.x, p1.y);
                Point p2 = rotate(-ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p2.x, p2.y);
                arrowHead.addPoint(0, 0);
                arrowHead.translate(end.x, end.y);
            public Point rotate(int x, int y, double dir) {
                Point p = new Point();
                double r = Math.sqrt(x*x + y*y);
                double theta = Math.atan2(y, x);
                p.setLocation(Math.round(r*Math.cos(theta + dir + Math.PI/2)),
                              Math.round(r*Math.sin(theta + dir + Math.PI/2)));
                return p;
            public void draw(Graphics2D g) {
                g.drawLine(start.x, start.y, end.x, end.y);
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
        public ArrowExample() {
            super("Arrows");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            JPanel p = new JPanel() {
                protected void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    Graphics2D g2d = (Graphics2D)g;
                    Stroke oldStroke = g2d.getStroke();
                    Color oldColor = g2d.getColor();
                    g2d.setStroke(stroke);
                    g2d.setColor(Color.black);
                    for (Arrow a : arrows)
                        a.draw(g2d);
                    g2d.setStroke(oldStroke);
                    g2d.setColor(oldColor);
            p.setBackground(Color.white);
            add(p, BorderLayout.CENTER);
            stroke = new BasicStroke(3);
            arrows = new ArrayList<Arrow>();
            arrows.add(new Arrow(new Point(10,10), new Point(100,100)));
            arrows.add(new Arrow(new Point(300,10), new Point(300,100)));
            arrows.add(new Arrow(new Point(450,450), new Point(400,100)));
            pack();
            setSize(500, 500);
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ArrowExample().setVisible(true);
    }

    Change the draw method as follows:
            public void draw(Graphics2D g) {
                Stroke s = g.getStroke();
                g.setStroke( new BasicStroke( 3.0f, BasicStroke.CAP_BUTT,
                   BasicStroke.JOIN_MITER, 1.0f, new float[] { 10.0f, 10.0f }, 0.0f ) );
                g.drawLine(start.x, start.y, end.x, end.y);
                g.setStroke( s );
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
            }

  • Drawing dashed line or dotted line in a flex line chart

    Friends,
    I want to draw a line chart which should be either dotted or dashed.
    since there is no component like dashed line chart, can anyone help me in creating one.
    i think if i extend the line series component, then i can draw that.
    but am stuck there. pls help people.
    Regards,
    Anoop

    Try looking [url http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html]here.
    : jay

  • Copy one text file to another text file and delete last line

    Hi all wonder if someone can help, i want to be able to copy one text file to another text file and remove the last line of the first text file. So currently i have this method:
    Writer output = null;
             File file = new File("playerData.xml");
             try {
                   output = new BufferedWriter(new FileWriter(file, true));
                   output.write("\t" + "<player>" + "\n");
                   output.write("\t" + "\t" + "<playerName>" + playerName + "</playerName>" + "\n");
                   output.write("\t" + "\t" + "<playerScore>" + pointCount + "</playerScore>" + "\n");
                   output.write("\t" + "\t" + "<playerTime>" + minutes + " minutes " + seconds + " seconds" + "</playerTime>" + "\n");
                   output.write("\t" + "</player>" + "\n");
                   output.write("</indianaTuxPlayer>" + "\n");
                  output.close();
                  System.out.println("Player data saved!");
             catch (IOException e) {
                   e.printStackTrace();
              }However each time the method is run i get the "</indianaTuxPlayer>" line repeated, now when i come to read this in as a java file i get errors becuase its not well formed. So my idea is to copy the original file, remove the last line of that file, so the </indianaTuxPlayer> line and then add this to a new file with the next data saved in it. So i would end up with something like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <indianaTuxPlayers>
         <player>
              <playerName>Default Player</playerName>
              <playerScore>0</playerScore>
              <playerTime>null minutes null seconds</playerTime>
         </player>
         <player>
              <playerName>Default Player</playerName>
              <playerScore>0</playerScore>
              <playerTime>null minutes null seconds</playerTime>
         </player>
         <player>
              <playerName>Default Player</playerName>
              <playerScore>0</playerScore>
              <playerTime>null minutes null seconds</playerTime>
         </player>
    </indianaTuxPlayers>
    However after all day searching the internet and trying ways, i have been unable to get anything working, could anyone give me a hand please?

    I would go the XML route too, but for fun, open a file as a BufferedWriter and do this:
    void copyAllButLastLine(File src, BufferedWriter tgt) throws IOException {
        BufferedReader in = new BufferedReader(new FileReader(src));
        try {
            String previous= in.readLine();
            for (String current = null; (current = in.readLine()) != null; previous=current) {
                tgt.write(previous);
                tgt.newLine();
        } finally {
            in.close();
    }

  • Searching a text file and printing the line if found!

    Hi, Im fairly new to JAVA and have been googling this for hours and havent found any results that
    have helped me...
    Im looking to search a text file for a value that is in a that is delimited by colons
    eg 45787 : 398948 : 398884 : 398984
    IF that value is found I need to print this entire line and move it into a string.
    I can work out the delimit part, the problem for me is a)searching the text file
    and b) tell java to print that line only??
    Any help would be very very much appreciated
    Cheers
    James

      public void printCourses() throws Exception
                stuinput[] courseObjArray = new stuinput[10]; //Make sure this is the same as the ammount in the text
                   Scanner sc = new Scanner(new File("testfile.txt"));
                   int i=0;
                   boolean found = false;
                   while(sc.hasNextLine())
                   //Delimit this line with scanner
                   Scanner sc1 = new Scanner(sc.nextLine());
                   sc1.useDelimiter(":");
                   courseObjArray[i] = new stuinput(sc1.next(),sc1.next());
                   i++;
                   }//while
                   for(int i1 = 0;i1 < courseObjArray.length;i1++)
                   System.out.println(courseObjArray[i1].courseCode);
                   System.out.println(courseObjArray[i1].courseName);
                   System.out.println(courseObjArray[i1].courseName);
                   System.out.println("-----------------");     
                   String courseCode2 = "courseObjArray[i1].courseCode";
                   if (courseCode2  == "12345")
                        System.out.println("working");
                   else{System.out.println("Not Found");}
           }hmmm just wondering why could this method always return a "Not Found"....if the text file had a whole bunch of values like this
    12345:Course1
    12344:Course2
    12343:Course3
    isnt it surposed to return 1 "Working"?? because there is a 12345 in on of the line, in the semi colon delimited line with 2 values, one being the course code, one being the course name??
    Given that there is 10 lines (from Array Object)

  • Drawing dashed lines

    Here's one I've never been able to figure out. How do you draw a dashed line in Apple Works Draw? I've always used 6.2.4 before upgrading to 6.2.9 tonight. My old ClarisDraw program has dashed lines under the Arrow Style palette but it is missing in Apple Works.

    Welcome to Apple Discussions Mark
    The closest you can get in AppleWorks is using one of the patterns for a line. It actually comes out quite well using a diagonal pattern.

  • Other Components Drawing Dashed Lines doesn't compile with Flex 4

    The lib was created in 2006 so it doesn't compile with Flex 4.
    The lib can be downloaded here http://www.quietlyscheming.com/blog/charts/dashed-lines/
    When compiling I get this error:
    Description     Resource     Path     Location     Type
    1136: Incorrect number of arguments.  Expected 3.     GraphicsUtils.as     /arrows/src/qs/utils     line 66     Flex Problem
    The line which doesn't compile:
    stroke.apply(target);
    How do I fix this error?

    I managed to compile the lib by rewriting the line:
    stroke.apply(target, new Rectangle(), new Point());
    But I don't understand what I have done.
    All Rectangle and Point dimensions are 0, but I'm sure it shouldn't be this way.

  • Satellite P105-S6064: Colored vertical and horizontal white lines appearing on laptop screen.

    Hello,
    A few months ago, vertical lines started appearing on my laptop screen, the first was purple/green and they later increased in rapidly in number by the day and night and are about 70 currently. But today, white line apeared at once on the left side of the screen, covering upto three icons completely and they fade downwards (brighter/colourful at the top) and unlike the coloured, they appeared at once; and they also blink when the touchpad is touched as the display turns off (the power saver schedule/setting). I've been told about two weeks ago that the laptop was hit by something or fell and that I needed to start gathering some notes (money) to replace the screen. I'm not an expert and I don't know what to do please reply intelligently (helpfully).

    You'd need to have it professionally serviced.
    http://pcrepair.toshiba.com
     

  • Scale text horizontally and vertically.

    I am using flash builder 4.6. I want to scale text vertically and horizontally like in indesign using TextLayoutFormat. It is possible in flex to do this using TextLayoutFormat or not? If not then how to do this?
    Please help.
    Thanks.

    I am using flash builder 4.6. I want to scale text vertically and horizontally like in indesign using TextLayoutFormat. It is possible in flex to do this using TextLayoutFormat or not? If not then how to do this?
    Please help.
    Thanks.

  • Problem with text resizing and moving

    After much pain with this issue, I'm going to ask for help.
    The whole issue(s) resolves around text upsizing, changing and moving in Muse.
    No amount of grouping, layering and locking has stopped this issue for me.
    I don't have divs that are a pixel off and whatnot. This happens even when I have a blank site and I test it (as seen in the example pic below).
    The majority of the time, this is an issue when viewing Muse created sites on Android, although text does move when viewed on iOS.
    Example 1:
    I have a square div. I put text in the div that I want to stay contained in the div. Basic right?
    View site on browsers and iOS devices it generally plays by the rules (although not always, there are some movement going on). When viewing this example text and div on an android device, the text resizes larger. This results in the text overlapping the div and moving EVERYTHING below it down. This makes it impossible to tightly design anything for a website.
    I know Android has options within it for users to set text viewing size, but this worthless from a web designer standpoint. That is something I can't control.
    Example 2:
    I have 1 text field and set the typeface to 15. There is nothing else on the page, just a background image (under "Fill"). Viewed on browsers and iOS looks fine. When viewed on Android this text balloons to some enormous size (25+) that makes the website utterly useless. This random resizing makes it impossible to design to. 
    Example 2.5:
    I take that same text from example 2, copy it into 2 of the same size text fields. They are placed next to each other, taking up the same width as Example 2. It now looks like 2 columns of text. Set the typeface to 15 again. I view it on Android and get the resizing issues from example 1 not example 2. It's noting to the extent of example 2 but like example 1, it still changes enough to ruins any design I'm trying to accomplish.
    Is there any place in Muse to lock the text? I don't want to make the text into an image (obviously).
    I been dealing with this in Muse for 6 months and haven't been able to find anything online or in forums about. I understand with the bevy of platforms out there nothing will look the same across the board, but right now I don't see how I can continue working with this issue.
    Am I the only one dealing with this?
    Thank you for any assistance.

    Welcome to the annoying realities of working with text on websites... Nothing you describe is unique to Muse.
    Every browser has it's own text engine and thus each line breaks text differently. Even the exact same web page on the same computer with the same fonts will sometimes result in different line breaks in different browsers, or even in different versions of the same browser. It's just a side effect of the nature of determining a line break, where even the most miniscule difference in calculations can result in an entire word fitting, or not fitting.
    There are two "tools" that are especially important to understand and use effectively in order to create designs that work as effectively as possible with the variation in line breaks from one site viewer to the next.
    Text Frame Height Always Matters
    If a text frame is drawn to the exact height of the text wthin the frame, then any increase in the number of lines of text due to changes in line breaks will result in the text frame growing and other objects below the text frame being moved down.
    If a text frame is drawn larger than the height of the text then when line breaks change the text frame won't grow unless the changes in line breaks are severe enough to result in the flowed text being taller than the text frame was originally drawn.
    If you resize a text frame smaller than the text within the frame in Muse Design view, the frame will snap back to be large enough to accommodate the text, but a dotted horizontal line will appear within the text frame indicating the "minimum height" for the text frame. If line breaks change in the browser the text frame will grow or shrink in height down to the minimum height indicated by this dotted line.
    Careful sizing of text frames can go a long way to creating a design that will continue to work well even when line breaks, and thus text frame heights change.
    Grouping Has Consequences
    As part of the output process, Muse collections the objects you've drawn into a hierarchy of horizontal groupings, vertical groupings, or stacks. When line breaks change in different browsers and text frames change height, when the text frames are located in this output heirarchy determines what impact the change in height has on other objects (if any).
    For example, if you have a layout that looks like a 2x2 grid of text frames, by default Muse will interpret it to act as two colums. So if the first text frame gets taller it will push the text frame below it down, but won't impact the location of the two text frames in the second column.
    If that's not the behavior you want, the way to tell Muse to treat things differently would be to group the two items in the first "row". This would cause the top to to be treated as a horizontal group. If anything in the group grows taller than the group, the group resizes taller and pushes the objects below it down. Thus if the top to items are grouped, if either one of them grows taller than the group it would push both the text frames below downward.
    The 2x2 grid is just a simple example of the concept. In most cases you don't have to do anything special to get the behavior you want, but it is important to understand grouping has this ramification. Grouping an arbitrary set of objects on your page can result in undesired behavior when text frames resize in the browser.
    For the Andriod screenshot you've provided, I don't have an immediate explanation. For us to explain what's shown we need to know the exact browser, browser version, Android version and device the screenshot is for. It would also be immensely helpful to have the URL for the page, so we can attempt to reproduce what you're seeing and view the exact code involved.

  • Can Flash create dashed line with blunt not rounded dashes ?

    Hi,
    using Flash8
    I can select line tool and dashed line in properties and draw a dashed line and get a line of sausages. How do I get a line of dashes without rounded ends to each dash ?
    Line option has end caps option with None (gives straight or blunt tip to line, round gives rounded tip .
    Draw a line with None and its got blunt ends, select it and choose dashed line option and it gets round ends to the dashes, the end cap option is greyed out !
    Are dashed lines with blunt dashes now possible again with CS4, a forum poster also found that CS3 no longer gave blunt dashes ?
    Why do I ask:-
    I am trying to bring a map into Flash8 from Illustrator (Illus version 10 as it allows blunt tip lines to remain blunt it was said on the forum)... which has blunt ends to roads and has blunt type dashed lines. The roads remain blunt..GOOD !..but the dashed lines become what looks like a solid line. BAD !
    I do a right click - break apart,  then double click one of those now solid lines that should be dashed, and I am able to select a portion of the line, it is no longer a continual line as drawn in Illustrator. Properties shows it as solid line. Flash8 obviously having a problem with supporting Illustrator 10 dashed line then !
    Select dashed in properties box and I get a portion of the line as sausage dashes, but working my way along the line doing each bit sees a far from correct dashed line result as sausages dont start stop evenly as each line is a separate entity and ignores the previous line.
    Looks like I shall have to try and draw the line as one long line again in flash but unless I can give it blunt dashes when done, there is no point even trying that method, hence my question.
    Would the latest Illustrator and Flash versions (CS4) allow blunt type dashed lines to appear in Flash ?
    This is crucial for bringing maps into Flash.
    Envirographics

    I noticed one problem with my solution.
    If you look, very carefully, at the end of the stream, it's flat. Not rounded like it should be. After a bit of trial and error, I tried a different brush:
    Note that, in addition to the rounded rectangle (done with the new corner controls in the latest version of Illustrator CC that just came out) and the three circles, there is also a rectangle, with no stroke and no fill, to provide a space at the end of the three dots. Here is the result:

  • Line Tool- Other Arrows, Dashed Lines

    CS3 PC:
    Using the line tool in my tools pallet yields an arrow. Are there other arrow typesbesides the default? I would like a double ended arrow for indicating measurements on a technical drawing.
    Also, using the Pencil tool, I'd like to be able to draw in dashed or dotted lines.
    Any ideas?
    Thanks,
    BTW, u8sing the word "line" in the search function yielded zero responses. Not sure how this could be. Must be doing something wrong there too.

    Suggest you try Adobe Illustrator, alone, or together with Ps.
    In Ai there are similar line ends (arrows etc.) AND easy dashed lines AND perfect dashed line ends and corners if desired.
    All better for a "technical" drawing.
    Often even better, with dimensioning, is Visio.
    They all "play" well together.

  • Populate datagrid and draw linechart based on xmlList

    I am generating dynamic xml structure like this
    <root>
      <OPVector>
        <Distance>0</Distance>
        <Height1>100</Height1>
        <Height2>200</Height2>
        <Height3>300</Height3>
      </OPVector>
      <OPVector>
        <Distance>100</Distance>
        <Height1>200</Height1>
        <Height2>300</Height2>
        <Height3>400</Height3>
      </OPVector>
      <OPVector>
        <Distance>200</Distance>
        <Height1>300</Height1>
        <Height2>400</Height2>
        <Height3>500</Height3>
      </OPVector>
    </root>
    What i have to do is to populate data grid based on this xml structure and draw a line chart where distance is category axis (x-axis) and Height1, Height2 etc are line series . No of Height fields depends on how many height values are entered by user (in text field Height1, Height2, Height3, Height4, Height5,Height6).
    Given is the code of my application ....
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="905" height="482" creationComplete="init();">
    <mx:Script>
    <![CDATA[
    import mx.events.IndexChangedEvent;
    private var dataProvider:XMLList = new XMLList();
    private var initDist:int ;
    private var offset:int  ;
    private var finalDist:int;
    private var height1:int;
    private var height2:int;
    private var height3:int;
    private var height4:int;
    private var height5:int;
    private var height6:int;
    private var heat:int;
    private var dataOP:XMLList;
    public function init():void{
    initDist = parseInt(txtInitDist.text);
    offset = parseInt(txtOffset.text);
    finalDist = parseInt(txtFinalDist.text);
    height2 = parseInt(txtHeight1.text);
    height2 = parseInt(txtHeight2.text);
    height3 = parseInt(txtHeight3.text);
    height4 = parseInt(txtHeight4.text);
    height5 = parseInt(txtHeight5.text);
    height6 = parseInt(txtHeight6.text);
    heat = parseInt(txtHeat.text);
    public function getOP():void{
    dataOP = createXMLObject();
    currentState='stateOP';
    trace(dataOP.toXMLString());
    } // public function getOP():void{
    public function createXMLObject():XMLList{
    var data:XMLList = XMLList(<root></root>);
    for (var i:int=initDist;i<=finalDist;i+=offset){
    var x:XMLList = new XMLList(<OPVector></OPVector>);
    var distance:String = "<Distance>"+i+"</Distance>";
    var strHeight1:String = "<Height1>"+(parseInt(txtHeight1.text)+i)+"</Height1>";
    var strHeight2:String = "<Height2>"+(parseInt(txtHeight2.text)+i)+"</Height2>";
    var strHeight3:String = "<Height3>"+(parseInt(txtHeight3.text)+i)+"</Height3>";
    var strHeight4:String = "<Height4>"+(parseInt(txtHeight4.text)+i)+"</Height4>";
    var strHeight5:String = "<Height5>"+(parseInt(txtHeight5.text)+i)+"</Height5>";
    var strHeight6:String = "<Height6>"+(parseInt(txtHeight6.text)+i)+"</Height6>";
    x.appendChild(distance);
    if (txtHeight1.text != ""){
    x.appendChild(strHeight1);
    if (txtHeight2.text != ""){
    x.appendChild(strHeight2);
    if (txtHeight3.text != ""){
    x.appendChild(strHeight3);
    if (txtHeight4.text != ""){
    x.appendChild(strHeight4);
    if (txtHeight5.text != ""){
    x.appendChild(strHeight5);
    if (txtHeight6.text != ""){
    x.appendChild(strHeight6);
    data.appendChild(x);
    } // for (var i:int=initDist;i<finalDist;i+=offset){
    return data;
    } // public function createXMLObject():void
    ]]>
    </mx:Script>
    <!-- States Definition -->
    <mx:states>
    <mx:State name="stateOP">
    <mx:RemoveChild target="{btnOP}"/>
    <mx:RemoveChild target="{btnThermal}"/>
    <mx:RemoveChild target="{txtHeight5}"/>
    <mx:RemoveChild target="{txtHeight6}"/>
    <mx:RemoveChild target="{txtFinalDist}"/>
    <mx:RemoveChild target="{label1}"/>
    <mx:RemoveChild target="{label2}"/>
    <mx:RemoveChild target="{label3}"/>
    <mx:RemoveChild target="{txtHeight3}"/>
    <mx:RemoveChild target="{txtHeight4}"/>
    <mx:RemoveChild target="{txtOffset}"/>
    <mx:RemoveChild target="{label4}"/>
    <mx:RemoveChild target="{label5}"/>
    <mx:RemoveChild target="{label6}"/>
    <mx:RemoveChild target="{txtHeight1}"/>
    <mx:RemoveChild target="{txtHeight2}"/>
    <mx:RemoveChild target="{txtInitDist}"/>
    <mx:RemoveChild target="{label7}"/>
    <mx:RemoveChild target="{label8}"/>
    <mx:RemoveChild target="{label9}"/>
    <mx:RemoveChild target="{txtHeat}"/>
    <mx:RemoveChild target="{label13}"/>
    <mx:AddChild position="lastChild">
    <mx:DataGrid x="57" y="112" width="274" height="336" id="dgPressure" dataProvider="{dataOP}">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
    <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
    <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:LineChart x="382" y="112" id="lcOverPressure" width="513" height="182">
    <mx:series>
    <mx:LineSeries displayName="Series 1" yField=""/>
    </mx:series>
    </mx:LineChart>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:Legend dataProvider="{lcOverPressure}" x="810" y="51"/>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:Button x="382" y="426" label="Close" id="btnClose" click="currentState=''"/>
    </mx:AddChild>
    </mx:State>
    <mx:State name="stateTR">
    <mx:RemoveChild target="{txtHeat}"/>
    <mx:RemoveChild target="{txtHeight1}"/>
    <mx:RemoveChild target="{txtHeight3}"/>
    <mx:RemoveChild target="{txtHeight5}"/>
    <mx:RemoveChild target="{txtHeight2}"/>
    <mx:RemoveChild target="{txtHeight4}"/>
    <mx:RemoveChild target="{txtHeight6}"/>
    <mx:RemoveChild target="{txtInitDist}"/>
    <mx:RemoveChild target="{txtOffset}"/>
    <mx:RemoveChild target="{txtFinalDist}"/>
    <mx:RemoveChild target="{label13}"/>
    <mx:RemoveChild target="{label7}"/>
    <mx:RemoveChild target="{label4}"/>
    <mx:RemoveChild target="{label3}"/>
    <mx:RemoveChild target="{label8}"/>
    <mx:RemoveChild target="{label5}"/>
    <mx:RemoveChild target="{label1}"/>
    <mx:RemoveChild target="{label9}"/>
    <mx:RemoveChild target="{label6}"/>
    <mx:RemoveChild target="{label2}"/>
    <mx:RemoveChild target="{btnOP}"/>
    <mx:RemoveChild target="{btnThermal}"/>
    <mx:AddChild position="lastChild">
    <mx:DataGrid x="39" y="108" width="301" height="364">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
    <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
    <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:LineChart x="420" y="108" id="linechart1" width="475" height="181">
    <mx:series>
    <mx:LineSeries displayName="Series 1" yField=""/>
    </mx:series>
    </mx:LineChart>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:Legend dataProvider="{linechart1}" x="810" y="13"/>
    </mx:AddChild>
    </mx:State>
    </mx:states>
    <!-- States Definition -->
    <!-- Controls Definition -->
    <mx:TextInput x="331" y="95" width="62" id="txtHeat" text="8"/>
    <mx:TextInput x="231" y="229" width="62" id="txtHeight1" text="100"/>
    <mx:TextInput x="231" y="259" width="62" id="txtHeight3" text="300"/>
    <mx:TextInput x="231" y="289" width="62" id="txtHeight5"/>
    <mx:TextInput x="357" y="229" width="62" id="txtHeight2" text="200"/>
    <mx:TextInput x="357" y="259" width="62" id="txtHeight4"/>
    <mx:TextInput x="357" y="289" width="62" id="txtHeight6"/>
    <mx:TextInput x="580" y="229" width="62" id="txtInitDist" text="0"/>
    <mx:TextInput x="580" y="259" width="62" id="txtOffset" text="100"/>
    <mx:TextInput x="580" y="289" width="62" id="txtFinalDist" text="2000"/>
    <mx:Label x="298" y="97" text="Heat" id="label13"/>
    <mx:Label x="168" y="231" text="Height1" id="label7"/>
    <mx:Label x="168" y="261" text="Height3" id="label4"/>
    <mx:Label x="168" y="291" text="Height5" id="label3"/>
    <mx:Label x="302.5" y="231" text="Height2" id="label8"/>
    <mx:Label x="301" y="261" text="Height4" id="label5"/>
    <mx:Label x="301" y="291" text="Height6" id="label1"/>
    <mx:Label x="484" y="231" text="Initial Distance" id="label9"/>
    <mx:Label x="533" y="261" text="Offset" id="label6"/>
    <mx:Label x="490" y="291" text="Final Distance" id="label2"/>
    <mx:Button x="298.5" y="384" label="Pressure Effects" id="btnOP" click="getOP()"/>
    <mx:Button x="464.5" y="384" label="Thermal Effects" width="142" id="btnThermal"/>
    <mx:Label x="298" y="10" text="Weather Effects" fontWeight="bold" fontSize="18"/>
    <!-- Controls Definition -->
    </mx:Application>

    I suggest that you first not try to cram all of your code into the MXML. Though many examples use this approach for quick copy-and-pasting, it is bad style and not as maintainable. You should use the code-behind approach where your MXML is strictly for layout of the view and its root element is a custom class that extendeds the usual base (in this case Application).
    Since the number of series in your line cart may vary, what you will need to do is dynamically create them whenever the data provider is updated.

  • Illustrator CS2 adds mysterious white dashed line thru my linked Photoshop file

    Im using Windows XP, Illustrator & Photoshop CS2, Acrobat 7.0 Professional.
    I have an illustrator file with a linked PSD file that has this mysterious thin white dashed line going through the entire image & I have no idea what it's from or how to repair it.
    My trouble shooting thus far includes:
    - In illustrator - I hide all the layers to see if there was an odd graphic on another layer that was causing the line, nothing. I tried to select the dashed line, not possible. I've created a PDF of the file, and the dashed line is in the PDF too (to verify it wasn't just Illustrator). Oddly in both Acrobat & Illustrator when I zoom in & zoom out, the dashes maintain their on-screen viewing proportions (like the dash spaces recalculate to the same tiny thin dashed line no matter what zoom Im at)
    - In Photoshop - I zoomed in until I couldn't zoom no more and there is not the slightest dashed line in the graphic.
    Lastly, I have this exact linked setup repeated throughout several different files (basically its the same ad but laid out to different dimensions for each)... and none of the others have this mysterious white dashed line.
    here's a screen capture from Acrobat... zoomed into 6400%
    argh - can someone help? Thanks!
    kristin

    Hi guys (and sorry for the tremendous delayed response).
    No the line doesn't print on my local b/w laser printer. However I have seen the lines print in 1 newspaper publications... (this is out of 50 different publications)
    Yes, the image is rotated slightly in illustrator, and I always flatten prior to making the PDF (cuz of the transparency/drop shadow).
    It's really making me nervous that ALL our ads have these lines appearing during onscreen viewing... Im making a new batch of ads for our campaign & there are more lines than before!
    Any tips theories remedies my friends?

Maybe you are looking for

  • Upgrade 4.6C to ECC6.0 IT0000 can't be overviewed, can only be displayed..

    dear all, we are currently in the process of upgrade from 4.6C to ECC6.0 and we found this minor issue in the submodule PA: using tcode pa20/pa30 we can not see any record of IT0000 Actions using 'overview' but the all the detail actions can be displ

  • OBIEE Write Back - Insert New Row

    Hello, I am new to these forums and looking for some help with OBIEE's Write Back feature. I have Write Back working fine with respect to updating existing rows in a table (ie: the UPDATE tag), but was wondering how to force Write back to invoke the

  • Is there a "book layout" in Pages?

    Please help a complete beginner....is there a way to format the layout of the pages in the Pages application? I've typed about 6 pages of text and would like to create an A5 size booklet with this, but I'm not sure how to set this layout. If anyone c

  • In Pricing configuration path?

    hii What is the use of this configuration ?? Explain with basic details about this in pricing with where it 'll affect in fron end easy access?? "Determine Calculation Schema for Determination of Market Price" ???? Thanks SAP-MM

  • DW 6 trial, running on XP w/ service pack 3. The Site/Site Management dialog box is transpare

    Cannot see any text or fields. The web page behind it shows. The Site/Site Management dialog box is transparent. see screenshot:   http://www.mid-americaclutch.com/transparent_DW_dialog_Box.jpg