Position shapes / graphics

Hey,
Thanks for your help so far.
I found an example and edited it, it displays a circle, square and line all one after another. Ill post code to show ye;
    package shape;
    import java.awt.Color;
      import java.awt.Graphics;
      import java.awt.BasicStroke; 
      import java.awt.Rectangle;
      import java.awt.Graphics2D;          
      import java.awt.geom.Ellipse2D;      
      import java.awt.geom.Rectangle2D;    
      import java.awt.geom.Arc2D;          
      import java.awt.geom.Line2D;         
      import javax.swing.JPanel;
      public class ShapesJPanel extends JPanel
         // draw shapes with Java 2D API
         public void paintComponent( Graphics g )
            super.paintComponent( g ); // call superclass's paintComponent
            Graphics2D g2d = ( Graphics2D ) g; // cast g to Graphics2D
            // draw 2D ellipse filled with a blue-yellow gradient      
            g2d.setPaint( Color.BLACK);                                 
            g2d.fill( new Ellipse2D.Double( 5, 30, 65, 100 ) );        
            // draw 2D rectangle in red                          
            g2d.setPaint( Color.BLACK );                           
            g2d.setStroke( new BasicStroke( 2.0f ) );           
            g2d.draw( new Rectangle2D.Double( 80, 30, 65, 100 ) );
           // draw 2D lines in green and yellow              
            g2d.setPaint( Color.BLACK );                      
            g2d.draw( new Line2D.Double( 395, 30, 320, 150 ) );
         } // end method paintComponent
      } // end class ShapesJPaneland also main to run the JPanel
    package shape;
    import javax.swing.JFrame;
      public class Shapes2
         // execute application
         public static void main( String args[] )
            // create frame for ShapesJPanel
            JFrame frame = new JFrame( "Drawing 2D shapes" );
            frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            // create ShapesJPanel
            ShapesJPanel shapesJPanel = new ShapesJPanel();
            frame.add( shapesJPanel ); // add shapesJPanel to frame
            frame.setSize( 425, 200 ); // set frame size
            frame.setVisible( true ); // display frame
         } // end main  } // end class Shapes            
    }So thats all good, but the thing is i cant seem to apply any BorderLayout to the shapes, i want to display them one after another on new lines.
eg Circle
Square
line
In that kind of order, opposed to left to right. Can someone tell me how this can be done thanks.
Mark

Hey guys
Another little prob, in my class i have all my shapes created and postioned as best i can, but now in my main method i try and add a label and pass a variable result into it but i either cant display it or absolute position it.
Apparently with absolute positioning i must set the frame layout to null first then postion the labels but setting the frame to null ends up not displaying my graphics.
Any other way to absolute position the label and stuff and still keep the graphics displaying.
BorderLayout manager works but is not accurate enough.
Mark

Similar Messages

  • [JS] CS4 How to position a graphic within a Frame

    I have a JS script that I am converting from CS3 to CS4 and I am finding that the behaviour for positioning a graphic within a frame has changed.  I have code that sets the geometric bounds of a graphic to a negitave value within the frame, within CS3 this works great.  However using the same code on CS4 to set the geometric bounds does not produce the same result.  The graphic is always placed at 0,0 and it ignores the negitive top and left values supplied.
    Does anyone know what has changed with the geometric bounds of a graphic within a recrangle frame?  How would I set the position of the graphic within the frame since setting the geometric bounds does not seem to work any longer.
    Thanks,
    Sheldon

    I have yet to determine why the behavior is different from CS3 to CS4 and how to correct the positioning within CS4.  To help explain the problem further I have included a sample script which demonstrates the problem.  I have run the script on both CS3 and CS4 and included screen shots of the results when the resulting INDD file is opened.  Could someone help explain why the position of the image is wrong in CS4 and what I can do to correct the problem?
    Here is the sample script ...
    for(i=app.documents.count()-1;i>=0;i--){app.documents.item(i).close();}
    app.textPreferences.useOpticalSize = false;
    app.textPreferences.typographersQuotes = false;
    app.textImportPreferences.useTypographersQuotes = false;
    app.taggedTextImportPreferences.useTypographersQuotes = false;
    app.pasteboardPreferences.minimumSpaceAboveAndBelow = "300p";
    app.textFramePreferences.firstBaselineOffset = FirstBaseline.ascentOffset;
    app.colorSettings.cmsSettingsPath = File("C:\\etc\\Friesens_Yearbook_Custom_Color_Settings.csf");
    app.marginPreferences.top = '24pt';
    app.marginPreferences.bottom = '48pt';
    app.marginPreferences.left = '36pt';
    app.marginPreferences.right = '36pt';
    var doc = app.documents.add();
    doc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    doc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    doc.documentPreferences.pageHeight = 792;
    doc.documentPreferences.pageWidth = 612;
    doc.documentPreferences.pageOrientation = PageOrientation.portrait;
    doc.documentPreferences.pagesPerDocument = 2;
    doc.documentPreferences.facingPages = true;
    doc.sections.firstItem().continueNumbering = false;
    doc.sections.firstItem().pageNumberStart = 2;
    var pg = doc.pages.item(0);
    var frm = pg.rectangles.add();
    frm.geometricBounds = ['200.5pt','200.2pt','447.8551pt','415.5206pt'];
    try{frm.place (File('c:\\test.jpg'), false);}catch(err){};
    if(frm.graphics.count() > 0) {frm.graphics.firstItem().geometricBounds = [frm.geometricBounds[0]-147, frm.geometricBounds[1]-49, 407.04+frm.geometricBounds[0]-147, 271.68+frm.geometricBounds[1]-49];};
    var objStyle = doc.objectStyles.add();
    objStyle.enableStroke= false;
    objStyle.transparencySettings.blendingSettings.opacity = 100;
    frm.applyObjectStyle(objStyle, true, true);
    frm.rotationAngle = 59;
    doc.label = '824203.indd';
    doc.packageForPrint('c:\\test\\824203\\', true, true, true, true, true, false, '', false, false);
    for(i=app.documents.count()-1;i>=0;i--){app.documents.item(i).close();}
    The line that I highlighted is the one that adjusts the images position within its frame.  It uses a formula to determine the exact position relative to the containing frames position.  This is why you will see the calculations to determine the geometric bounds.
    Here is the result of the script using InDesign Server CS3, notice the position of the image based on the 'Direct Selection Tool' highlight area (this is the desired result):
    And, here is the result after running the script against InDesign Server CS4:
    As you can see the Image is placed at the lot left corrner of the frame which is wrong.  Any insight into the diffrences in the behavior would be appreciated.
    Thanks

  • Positioning anchored graphic outside of table

    I have a single-cell table with a small graphic that is anchored so that it is positioned to the left of the table and is particially in the margin area. The reason that the graphic can't be in a table cell is because it has to jut into the margin, past the text frame.
    The table is inserted periodically throughout several documents. The lines of text in the table can vary -- sometimes it will have 1, 2, 3 lines of text in the cell.
    I need to have the anchored graphic centered vertically to the left of the text in the cell -- the "y" distance for the anchored graphic varies according to the number of lines in the table cell. Is there a way to automatically center the graphic so that it doesn't need to be manually positioned for each table?

    Make that frame the height of your cell and center its contents vertically. .. Oh wait, your row heights may be different, so you still have to resize the anchored frame. Anchor the frame into a cell that has its own contents vertically centered?
    Perhaps there is an easier way. Re-reading from the top, you state "The reason that the graphic can't be in a table cell is because it has to jut into the margin, past the text frame." Well, a table can jut out into the margin at the right, if it is wider than the text frame -- a flaw/oversight/"feature" that has been put to good use for creating straddling headlines over two columns.
    Let me put this question to you: what happens if you (a) insert a new column to the left of your table to put the graphic in, thus making the table too wide, and then (b) **Sanity Warning! Untested Claim Follows** set the paragraph of the table to right alignment?

  • How to position a graphic on a page

    I am a realtively new Output Designer user, struggling to figure out how to do some things.
    For this question: I am putting a graphic on the page with ^graph. It shows up partially displayed in the upper right. I presume that is where the pen is at the time.
    How can I position the pen, the graphic, where I want it?
    Brian

    Check out the
    b ^position
    command.
    I prefer to use a "logo" in the designer or a "graphic field" if the graphic and be variable. That way you have easy control of where it goes.

  • Sapscript: position OBJECT GRAPHICS ID

    Hi all,
    I hope there is someone can help me...
    My problem is: i've used the istruction to insert an image in a Sapscript
    /: BITMAP 'LOGO_TOPAZIO_DATI1' OBJECT GRAPHICS ID BMAP TYPE BCOL
    now, how can i position the image in the centre of page?
    Thanks a lots,
    regards,
    Alex.

    Hi,
    To print image, you have to import a tif file from your local hardisk via the SAP abap program RSTXLDMC.
    In the sap script, add in the following script.
    : / INCLUDE ZLOGO OBJECT TEXT ID ST LANGUAGE EN.
    or
    Tested in 4.6x
    Go to transaction SE78.
    Follow the path given below (on the left windows box) :-
    SAPSCRIPT GRAPHICS --> STORED ON DOCUMENT SERVER --> GRAPHICS --> BMAP
    Enter the name of the graphics file on the right side and Go to the menu GRAPHIC --> IMPORT.
    Thanks,
    Neelima.

  • Changing the position of graphic item

    Hi all,
    I am using graphical items in my form canvas. I want to change the position of these items in runtime.
    can any one suggest me how to change the positions at run time.?.....
    Thanks,
    Pavan.

    Hello,
    This question has been aked so many times, and the answer is always the same : NO
    There is no available buit-in to deal with graphical objects located on the canvas. All you can do is to drop them on a small stacked-canvas, then move this stacked-canvas.
    Francois

  • Links positioned on graphic background.  How?

    I'm working my way through the Adobe Fireworks CS5 version of "Classroom in a Book" and I've come to an impasse.
    I'm in Chapter 8, page 199, step #4; the task is to use the CSS and Images Export.  At this point we have a web page with seven distinct regions.  One of these is a slice, a navigation banner with a graphic background and text for navigation links.
    The instructions in the book are to change the img_nav slice type to Background Image and to hide the sublayer containing the text for the links.  The book explains that "...since the slice will become a background image, it cannot have HTML links applied to it."
    It goes on to say that "...creating the navigation is not a job for Fireworks, and the navigation menu would need to be created later in a web-page editor."
    How?  The links are sort of in the middle of the graphic.  When I try to add links in Dreamweaver I don't seem to have much control over there placement.  It is either at the beginning of the div or the end. 
    Can someone point me to a resource that explains how to place a link on top of a graphic where I want it?  Also, since I'm learning, I'd like to stick with Best Practices and use CSS while minimizing the use of tables.
    Thanks,
    Dan Earley

    Perhaps it's time for you to purchase Dreamweaver CS5 "Classroom in a Book"!
    I'm not directly familiar with this textbook... If the navigation is the blue text (Features - Fashion - Calendar - Video - Blog), it would typically be handled in HTML using an unordered list (ul), with each list item (li) containing a link (a) that surrounds the text itself. CSS would be used to position the navigation, perhaps applying display: inline or float: left to the list items (li) to make the list run horizontally. The list itself might be positioned within a surrounding div using margin or padding—or even using absolute positioning (in a relative context), given that there's probably a specific height to the background image (the "check" logo).
    As far as links go, they're traditionally inline elements that wrap around other inline elements—like text within a paragraph or heading, or an image. However, I think as of HTML5, they're also allowed to be wrapped around multiple block-level elements. Regardless, the simplest way to add a link to an image is to surround the image (img) tag with a link (a) tag. However, like your book says, if an image is being applied via CSS as a background image, it cannot have a link applied to it, because it's not part of the HTML. But a background image must be applied to some HTML element, and perhaps the link could be applied to that element.
    A link can also be converted to a block-level element via CSS using a display: block rule. This will make it occupy the full-width of its container, which can make it more "clickable" by giving it a larger area of interactivity.
    Not sure if this information is helpful or not... I wonder if the book goes on to answer any of your questions later on. Often, these types of books complete a project step-by-step, chapter-by-chapter, eventually addressing issues brought up in earlier chapters.

  • Need Help positioning a graphic over an image.

    Trying to position an arched graphic over an image in the header of this site.  The photoshop image provided shows the three separate components. 1. The white content is one image that houses the main header images and the other three images lower on the page. In CSS it is the #inner-content. 2. #main-content is the teal color  3.  The arch image, which sits inside #arch-container.  The CSS is shown here, but when it is displayed in a browser...the #inner-content sits below the arch image instead of up underneath it.  I have tried many variations within the CSS and can't find the solution. Help!
    @charset "utf-8";
        margin: 0px;
        padding: 0px;
    #page-wrap {
        width: 960px;
        margin-right: auto;
        margin-left: auto;
    #page-wrap #main-content {
        width: 960px;
        height: 1200px;
        background-color: #445d64;
        float: left;
    #page-wrap #main-content #inner-content {
        height: 1175px;
        width: 800px;
        background-image: url(images/inner-container-bg.jpg);
        float: left;
        margin-left: 80px;
        clear: both;
    #page-wrap #arch-container {
        width: 960px;
        height: 200px;
        z-index: 10;
        float: left;
        position: relative;
    #page-wrap #arch-container #arch-img {
        background-repeat: no-repeat;
        float: right;
        width: 960px;
        position: absolute;

    You need to bear with me a little more, age is rapidly setting in making it harder for me to understand what you are on about.
    Which code did I supply?
    Or do you mean the link?
    If you are referring to the link, I do not see a 170px gap from the top.
    Maybe someone more from this world would like to help you.
    Happy New Year!

  • Illustrator Shape / Graphics Styles issue (bug?)

    When using the 'Split into Grid' command the resulting rectangles are defined as paths not shapes so that the live corners feature is not visible in the toolbar/transform palette.
    Since starting to write this I've stumbled upon the fact that while holding the Ctrl key with the object selected the live corners become visible and editable directly either via dragging the mouse or when double-clicking the mouse on the radius point where as options window appears to allow exact settings - this is great. It would be better if the toolbar/transform palette also reflected these settings to see at a glance which values have been used or even better, the resultant output of the 'Split into Grid' was defined  as a rectangle in the first place.
    Also, historically (CS5) I would save the rounded corner effect as a graphic style, I've noted that shapes with live corners set, do not copy those settings into the captured graphic style.
    Cheers!
    Rob

    Learning on the fly here, I just noticed the Object > Shape menu where you can convert a shape to rectangle when then enables the live corners to be updated. Perhaps a check box could be added to the 'Split into Grid' to enable this to be done automatically?
    The graphics styles issue still stands.

  • Position/Draw graphics on graphics

    I'd like to let a textarea draw itself then get it's graphics and add it to another graphics object.
    This code always draws the textArea at position (0,0) on the incoming graphics object.
        protected void paintComponent(Graphics g)
         g.setColor(m_bgColor);
         g.fillRect(0, 0, getWidth(), getHeight());
         Graphics2D g2d = (Graphics2D) g.create();
         g2d.setColor(Color.black);
         textArea.setText("1 foo bar\n2 foo bar\n3 foo bar");
         textArea.setSize(25,25);
         // I'd like to do something like this (compare to icon.paintIcon below):
         // textArea.paint(g2d, xLocation, yLocation);
         textArea.paint(g2d);
         icon.paintIcon(this, g2d, 100, 50);
         g2d.drawString("< text >", 200, 20);
         g2d.dispose();
        }or something more general like a drawGraphics in Graphics2D:
         g2d.drawGraphics(textArea.getGraphics(), xLocation, yLocation);Any ideas?

    Use Graphics2D translate method.
    Don't forget to store AffineTransform before translating and restore it after painting.
    Regards,
    Stas

  • Positioning graphics by arrayList value

    Hello,
    The code i have included below is a simple application which allows the user to click a button and enter a value - a rectangle graphic will appear on the screen as a result. A user can do this multiple times and the graphics will appear on screen from left to right. The values the user enters are stored in an arrayList.
    I would like to know how i can change this code, so that when a user enters a value, the program will check the value against the other values already in the arrayList and position the graphics from left to right in ascending order order according to their value. So a graphic with value one would be furthest left, while a graphic with value 100 would be furthest right.
    If you could let me know how i can do this that'd be great.
    Many Thanks.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.util.ArrayList;
    import java.util.List;
    public class Sample extends JFrame implements ActionListener
    private JButton insertRectangle, removeRectangle, nextRectangle, resetCursor, nextStep,exit;
    boolean paintRectangle = false;
    CustomPanel panel; // actionPerformed method needs this reference
    public Sample()
    {        super("Linked Lists Tutorial");
    setSize(700,600);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setVisible(true);
    insertRectangle = new JButton("Insert Graphic");
    FlowLayout flowManager = new FlowLayout();
    Container contentArea = getContentPane();
    panel = new CustomPanel();
    JPanel buttonPanel = new JPanel();
    buttonPanel.setBackground(Color.red);
    buttonPanel.add(insertRectangle);
    contentArea.add(buttonPanel,BorderLayout.NORTH);
    contentArea.add(panel);
    setContentPane(contentArea);
    insertRectangle.addActionListener(this);
    public void actionPerformed(ActionEvent e)
    if(e.getSource() == insertRectangle)
    {            paintRectangle = true;           
    String input = panel.getUserInput();
    if(input.length() == 0) // no entry or user canceled
    return; // so no new Rectangle to create
    else
    panel.inputList.add(input);
    panel.RectangleCount++;
    repaint();
    class CustomPanel extends JPanel
    List inputList; // holds state for user input strings
    int RectangleWidth, RectangleHeight;
    final int PAD = 25; // padding between Rectangles
    int RectangleCount = 0;
    public CustomPanel()
    RectangleWidth = 60;
    RectangleHeight = 65;
    inputList = new ArrayList();
    public void paintComponent(Graphics painter)
    super.paintComponent(painter);
    int width = getWidth();
    int height = getHeight();
    painter.setColor(Color.white);
    painter.fillRect(0,0,getSize().width,getSize().height);
    painter.setColor(Color.blue);
    Graphics2D painter2D = (Graphics2D) painter;
    if(paintRectangle == true)
    for(int i = 0; i < RectangleCount; i++)
    Point p = getRectanglePosition(width, i);
    String s = (String)inputList.get(i);
    drawRectangle(painter, p, s);
    /** * For fluid design, resizes well when there are multiple rows. */
    private Point getRectanglePosition(int w, int count)
    int cols = (w - PAD) / (RectangleWidth + PAD); // components/line
    int rows = count / cols; // current # of rows
    Point p = new Point(); // (an index for p.y)
    p.x = PAD + (count % cols) * (RectangleWidth + PAD);
    p.y = PAD + rows * (RectangleHeight + PAD);
    return p;
    public void drawRectangle(Graphics painter, Point p, String text)
    Graphics2D painter2D = (Graphics2D) painter;
    Rectangle2D.Float Rectangle = new Rectangle2D.Float(p.x, p.y,RectangleWidth, RectangleHeight);
    painter2D.draw(Rectangle);
    Line2D.Float RectangleLine = new Line2D.Float(p.x, p.y + 30,p.x + RectangleWidth, p.y + 30);
    painter2D.draw(RectangleLine);
    painter.drawString(text, p.x + 20, p.y + 20);
    public String getUserInput()
    {            String input = "";                  // avoid NullPointerException
    input = JOptionPane.showInputDialog(null,
    "Enter a value for inserted Rectangle:");
    return input;
    public static void main(String[] args)
    {       Sample Main = new Sample();    }

    This is [url http://forum.java.sun.com/thread.jsp?forum=31&thread=504944]also posted in the Java Programming Forum. You might check over there and see if someone has already answered this question over there.

  • Tweening Shapes

    Hey guys,
    I'm trying to make a program in which when you click on the screen, a randomly sized/coloured circle appears where you clicked. I've got it working, so I wanted to try and tween the circle when it appears, but I don't know how to reference it.
    It says that the first parameter, which tells it what object to Tween, should be the instance name of what you want to tween (the "object"), but since it's a variable, a shape generated purely through code, does it even have an instance name?
    Anyways, here's what I have so far, the "??????" are where I don't know what to put to make it Tween the circle
    (Might be some things out of place, I've been changing the same code multiple times)
    package  {
        import flash.display.Shape;
        import flash.events.MouseEvent;
        import flash.display.MovieClip;
        import flash.media.Sound;
        import flash.media.SoundChannel;
        import fl.transitions.Tween;
        import fl.transitions.easing.*;
        import fl.transitions.TweenEvent;
        public class Main extends MovieClip
            var pop:PopSound;
            var soundChannel:SoundChannel;
            public function Main()
                stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseClick);
                pop = new PopSound();
                soundChannel = new SoundChannel();
            function mouseClick(e:MouseEvent):void
                var theX:Number = mouseX;
                var theY:Number = mouseY;
                var circle:Shape = new Shape();
                graphics.beginFill((Math.random() * 0xFFFFFF), 1.0);
                graphics.drawCircle(theX, theY, ((Math.round(Math.random() * 40)) + 20));
                graphics.endFill();
                stage.addChild(circle);
                var xTween:Tween = new Tween(??????, "scaleX", None.easeNone, 0, 1, 1, true);
                var yTween:Tween = new Tween(??????, "scaleY", None.easeNone, 0, 1, 1, true);
                soundChannel = pop.play();

    Thanks Ned, the tween now applies to the circle .
    I have a quick question about the tween though, when I set the positions to 0 and 1, the circle comes in from the top left. The higher I set the start position the closer towards the click point it starts, but the bigger it starts too. If I set both positions to 1 it appears at the point where I click, but there's no growth. I also tried setting the positions to the circles positions, but it still doesn't work.
    How do I make it just grow in place?

  • Make anchored graphics frames act as containers

    If I choose Object/Anchored Object/Insert and make the inserted frame a graphics frame (with above line positioning), it doesn't act as a container. That is, if I put a graphic into the frame or create one with the drawing tools -- say a line diagram -- and then make edits to surrounding text that causes the text to move up or down, the *frame* moves with the text it's anchored to, but the graphics inside it *don't* -- with enough editing, they could move right outside the frame, like ghosts passing thro' walls. Since almost every time I want to put a graphic onto the page it bears some specific relationship to the local text, this behavior is unhelpful, to say the least.
    I can't figure out what the point of graphics frames that don't hold their contents in place could be, so I wonder if this is a bug. If so, please fix it. But if ID is behaving as intended, please add the option to preserve the position of graphics inside the frame *relative to the frame boundaries* (as opposed to relative the page boundaries).
    Thanks.
    PS: I did try to group the frame with a line diagram inside it but that seems impossible. I also know you can paste graphics into body text directly -- I watched AMC's video at Adobe -- but when the graphic in question has different pieces that relate to specific words above or below it, you really can't build it off-site then paste it in -- especially if the result of doing that limits your options for adjustments.

    I believe we've covered this issue thoroughly. There's nothing wrong with your intention, but there is something missing about the containership behavior of ID's anchored frames that works fine in FM.
    I think it's a bug. Others may think it's a personal wish that isn't supported. My thinking is that ID's frame objects are already packed with smarts about content type and fitting abilities, that the developers simply overlooked providing the ability to add new objects freely into a frame that's already got content (like FM can.)
    Apparently designers don't encounter this need anywhere nearly as often as those who author annotated documents in Word, FM, or other similar tools that permit working in the isolated environment of a frame - adding, removing, resizing, rearranging text objects and graphic objects at will - as if it were a blank page environment. So, there have been few reports of problems in this area.
    The main reliable anchored-frame solution for this particular problem is to create and revise the content outside of any frame, then group, select, and copy the composite object and paste it at the cursor insertion point, or save it as a separate ID file and place it as an anchored object.
    Perhaps you've already explored using an unstroked table for this particular need. The baselines of text in your example seem to be aligned across the horizontal rows, and the divider lines also seem aligned on horizontal rows. The divider lines could be created by several means - underlines in cells, graphic lines in anchored frames in cells, or horizontal cell rulings.
    The whole arrangement requires painstaking attention no matter how it's constructed, so the fussiness of working with a table wouldn't seem to add something that might not be needed with a different method. Because tables can break across frames, you'd need to set all rows to keep together.
    Again, I strongly suggest formally reporting this quirk as a bug to be fixed and/or a feature request.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Graphics in computer documentation

    I'm trying to figure out the best way to handle graphics in a computer book. the book is generally two-column layout with the illustrations in the right column. sometimes the text flows to the right column as well. each chapter is a separate story and each indesign document is a complete story. if i insert text in the middle of a story, i would like the illustrations to move with the text they belong with. i don't know if it's worth the effort though. seems like anchored objects are a pain if the illustrations are not all the same size. i use screen shots saved as photoshop psd files. then i reduce the size to 50% in indesign so all the screenshots are the same relative size. finally, i crop the screen shots to show the part of the screen relevant to the discussion. any suggestions?

    Ok i'm trying again to work with an anchored object. my layout has two columns and i want the graphic to appear in the right column (no facing pages). i've inserted an anchored object at the beginning of an existing paragraph because i don't understand what separate paragraph will do for me yet. i used anchored object options to position the graphic flush with the right margin of the page - hurrah! however, this graphic is a little larger than the right column so i need the text in the left column to wrap around the graphic. so right now i have two questions, how do i get the text to wrap? second question, i have the anchored object set to align to top of caps thinking that would align it to the top of the paragraph it is in but instead it is aligning to top of page margin - what should this be?

  • How to make shape rotation at it's center point?

    I draw a shape,like follows:
    var shape1:Shape;
    shape1=draw();
    addChild(shape1);
    shape1.rotation=50;
    private function draw():Shape{
       var shape:Shape = new Shape();
       shape.graphics.beginFill(0x00FFFF);
       shape.graphics.moveTo(200,200);
       shape.graphics.lineTo(300, 202);
       shape.graphics.lineTo(200, 204);
       shape.graphics.lineTo(100, 202);
       shape.graphics.lineTo(200, 200);
       return shape;
    Then I want to rotate the shape at it's center point(200,202) by using shape1.rotation=50,but I find the shape don't rotate at the the center of it's shape. How to realize the function which make shape rotate at its center point?
    Thanks

    Here is a sample to make it rotate from center:
    var sprite:Sprite=new Sprite();
    sprite.graphics.lineStyle(3,0x00ff00);
    sprite.graphics.beginFill(0x0000FF);
    sprite.graphics.moveTo(0,0);
    sprite.graphics.lineTo(100,0);
    sprite.graphics.lineTo(100,100);
    sprite.graphics.lineTo(0,100);
    sprite.graphics.lineTo(0,0);
    sprite.graphics.endFill();
    var mc:Sprite=new Sprite();
    mc.addChild(sprite);
    //This will make the sprite to center
    mc.getChildAt(0).x=-(mc.getChildAt(0).width/2);
    mc.getChildAt(0).y=-(mc.getChildAt(0).height/2);
    addChild(mc);
    mc.x=200;
    mc.y=300;
    //Now it rotates from the center.
    mc.rotation=20;

Maybe you are looking for

  • Maintain serial number for total quantity" error in BAPI_GOODSMVT_CREATE

    Hi! I also encountered the error "Maintain serial number for total quantity" in using BAPI_GOODSMVT_CREATE . In retrieving the serial number, I use this code: Select all         READ TABLE l_it_ser03 ASSIGNING <ser03> WITH KEY mblnr = <gm_items>-mat_

  • Pivoting date data in Diadem - summarising data by grouping

    Hi, Is there a way to summarise date data in Diadem? For example, if I have a file with the following headings: Date/time, on/off, duration The Date/time column is recordrded in date, hours and seconds, the on/off is either 1 or 0 duration is the dif

  • Apache Tomcat 4 error - cant fine a servlet

    Hi, I have a web.xml file that defines classes and url patterns fine. For some reason though, which I cant work out, even when I add the following to web.xml, Tomcat says it cant find the requested resourse. http://localhost:8080/servlet/SimpleShoppi

  • BusinessObjects XI 3.1 Designer 连接BW QUERY 问题?

    晚上好,    请教一个问题:BusinessObjects XI 3.1  Designer 连接BW QUERY ,Designer  可以直接连接 BW 系统标准CUBE 0SD_C01 的QUERY,但是其它我自定义的CUBE 的QUERY却不能显示出来连接,这个是什么权限问题呢? 如下图. [http://file.itpub.net/attachment/day_091216/20091216_21a7d983a9bfcd34a0c9eMTYbB9zDfnM.jpg|http://f

  • Adobe on storage service how to cancel

    I do not want to continue this service and elements 9 does not appear to offer a way to cancel this "service" Owen