Using a.draw ( Confused )

//code
boolean[] ba = {true, false, true, false, false};
// code
for (int i=0; i<ba.length; i++) {
               Color c = Color.black;
               if(ba) c = Color.cyan;
               ACircle a = new ACircle(c, (i+1)*10, 5);
               a.draw();
The above computation.
1. Isn't It only suppose to draw 4 circles? I learned that it has 5 circles
2. There is an error says "Cannot find symbol class" ACircle
How do you explain?
Thanks :)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

import java.awt.*;
class TestCircle {
     public static void main(String[] args) {
          boolean[] ba = {true, false, true, false, false};
          for (int i=0; i<ba.length; i++) {
               Color c = Color.black;
               if(ba) c = Color.cyan;
               ACircle a = new ACircle(c, (i+1)*10, 5);
               a.draw();
That was actually a sample I try to compute the error was
Cannot find symbol class ACircle
The rest I understood.

Similar Messages

  • My Ipad did work on my wireless at home and works on other wireless but no longer at home. My IPhone works at home and others can use the wireless Confused that it did work and now does not?

    My Ipad did work on my wireless at home and works on other wireless but no longer at home. My IPhone works at home and others can use the wireless> Confused that it did work and now does not?

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    Additional things to try.
    Turn Off your iPad. Then turn Off the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    On your iPad go to Settings > General > Reset > Reset network settings and see if that enables you to connect.
     Cheers, Tom

  • Unable to use Hyper Draw on some projects

    I might be doing something wrong, but all of a sudden in one of the current projects I'm working on I can't use Hyper Draw in the Piano roll view. I can't see any current automation or draw any new modulation, sustain, volume etc. I have had to revert to using track automation, which works OK.
    If I start up a new project I can use Hyper Draw in the Piano roll and it appears to work on other completed projects. Have I changed a setting or parameter in the project that it won't work in, or is it a known bug?

    Bump. Anyone?

  • Reducing PDF-size: automatic reduction of datapoints that are used to draw lines in a 2d-axis system within report

    Creating fancy pdf-files for costumers and other purposes is great. However, if the experimental data include many datapoints (>200000) a line-2d-graph ends up in a very big pdf-file. Especially when many pages need to be used.
    Explanation:
    When I use lines to show experimental data in 2d-plots the size of my PDF-file is directly influenced by the number of datapoints used. The more datapoints are used to draw lines within the graph, the bigger the exported PDF-files of the report are.
    It would be great to limit the number of points used to draw a line as it can be done with markers without using the curve transformation option. - Hence, e.g. plotting a line with the help of 200 datapoints is usually as good as showing the same line based on 200000 datapoints but the pdf-size is significantly reduced. You can imagine that when this would be done via the transformation option a long lasting script would be needed for each line to reduce the number of datapoints shown. Hence, the plotting within the report and the actualisation of data would need very long.
     

    Since a while DIAdem optimizes the size of exported PDF-files in a related way as it is suggested here. In principle the PDF-file is exported in a very high resolution, so you can display it in a reader with a very high zoom value (e. g. 6000 %) to look into details of your data. If you have a huge dataset, this could lead in fact to a bigger file size, if data points could be displayed because the high PDF-resolution. But in general, DIAdem only saves information in a PDF-file which is really necessary - but with a high resolution.

  • How can I use freehand drawing in a PC?

    How can I use freehand drawing in Adobe Reader XI in Surface Pro 3?

    Is the drawing a PDF?
    Something on paper?
    Something made with Aldus Freehand?
    Something made with other software (what)?
    A scanned file?
    Something else?
    What do you mean by "use"?

  • Getting Security Error when trying to use bitmapdata.draw method on youtube videos

    Hi All ,
    I am playing youtube videos in UIComponet of flex, but when I trying to capture the image using bitmapdata.draw() method it gives me an secutity error on server  , It works well locally in flex editor.
    Is any one knows how to resolve this bug??
    Thanks in advance
    sujit Rai

    Try nesting the clips and then adding the warp stabiliser to the nest.

  • Tool used to draw?

    What tool do you use to draw in photoshop? I need to touch up a pic and I wanted to darken the lines of the pic (it's a sketch), but I wasn't sure what tool to use. I'm still not very familiar with photoshop, not at certain capacities.
    Thanks!

    Brush creates a spray paint kind of effect when I use it. Pencil creates straight lines when I use it. Am I missing something?
    I'll check my manual about levels.
    Thanks for being serious about this. I know this is a dumb question. I guess brush is what I want to use (and have used), but I don't care for the faded spray paint look it can create.
    I just got a wacom tablet and this will be my first experience using it. I'm sure the results (with Brush) will be better than using the mouse.
    Sorry for the dumb question.

  • I used the drawing option in AppleWorks. What is an equivalent program/option for Lion?

    I used the drawing option in AppleWorks. What is an equivalent program/option in Lion? I use it to design quilts.

    Nothing that comes with Lion.
    Just put, "osx drawing program free," in Google and take your pick.
    First one on the list is one called Paintbrush: http://paintbrush.sourceforge.net/
    You could also just search the App Store.

  • Appleworks does not work with mountain Lion.  What can I use for drawing and painting?

    Appleworks does not work with mountain Lion.  What can I use for drawing and painting?
    MacBook
    Marian

    Please see this article which examines various possible alternatives to AppleWorks:
    http://rfwilmut.net/aw

  • Using a drawing tablet with Logic Pro, esp. for hyperdraw?

    Is anybody using a drawing tablet, such as the Wacom Graphire 4, with Logic Pro? I am particularly interested to hear whether a tablet makes inputting hyperdraw data easier.
    Thanx and cheers,
    Vincent

    Yeah, it changes everything — from selecting menu items, to turning knobs or moving sliders. You'll never go back... This is due to the fact that pointing and clicking are merged into one gesture, like playing a piano key takes care of selecting both the pitch and the velocity.
    Be sure you get a small model though, not the big one that they use with Photoshop...
    I find it indispensable whatever the kind of application I'm using, be it a text processor or an audio editor, whenever precise selection or action is required — to the point that I feel awkward when I'm forced to use a mouse.
    By the way, people who are used to using trackballs feel the same — but this isn't true for track-pads.

  • It seems a bug of as3 when using BitmapData.draw for a shape which is masked with another shape

    This is the code of my document class:
    public class FirstMask extends Sprite
      private var maskedShape:Shape;
      public function FirstMask() {
       init();
      private function init():void {
       maskedShape = new Shape();
       addChild(maskedShape);
       maskedShape.graphics.beginFill(0xff0000);
       maskedShape.graphics.drawRect(0,0,80,80);
       maskedShape.graphics.endFill();
       var maskShape:Sprite=new Sprite();
       maskShape.graphics.beginFill(0x000000);
       maskShape.graphics.drawRect(0, 0, 20,20);
       maskShape.graphics.endFill();
       maskedShape.mask=maskShape;
       var bmd:BitmapData=new BitmapData(80,80);
       bmd.draw(maskedShape);
    When I do not use the bmd to draw the maskedShape,everything is ok.When I do that,it seems the maskShape is auto-transformed including its position and size.As a result,I can not see the maskedShape unless I adjusted the IE size.Can anybody tell me why?
    ps:If I set this.stage.align=StageAlign.TOP_LEFT; I can see the small scaled maskedShape.If I add the maskedShape to the displaylist ,everythis is ok.But Why drawing has the effect on the drawn shape?

    Thanks again.But the "draw" itself is all right.
    After " bmd.draw(maskedShape);",I code:
       var bm:Bitmap=new Bitmap(bmd);
       bm.x=100;
       bm.y=0;
       addChild(bm);
    The bm can be shown.
    So to make it clear,I print the screen:
    1.No"mask" No "draw" at all.
    2."mask" without "draw"
    3."mask"and then "draw"---the IE shows nothing
    4.If I drag the IE,adjust its size,then I can see a little thing on the top-left.
    confusing...
    PS:If I run the code as "air application",it seems all right.

  • Is it possible to use the drawing dynamic content to erase an image rather than draw over the top?

    I'm trying to create a cover for my magazine  that has a chalk board with writing on. I want the user to be able to erase the writing with their finger but can't figure out how to do it. All i can do is draw a solid colour over the top. What i want is for the finger swipe to erase the .png image instead. wondered if it can be done using a mask but I can only get a mask to reveal solid colour not an image.

    If the images are exactly the same size then make sure the layer with the mask
    is the active layer and in the other documents go to Select>Load Selection and choose
    your document with the layer mask under Source document and under channel choose the layer mask.
    After the selection loads press the layer mask icon at the bottom of the layers panel.
    MTSTUNER

  • How do I save/export an image without a background when using Adobe draw on iPad?

    Hi :-)
    brand new new to adobe draw... Using on an iPad... How do I export/save an image so that it has no background?

    The solution is the following:
    - by default the first drawing layer is white... and will remain so... you have to turn the opacity of this white layer to zero by pushing the white button on the left,
    - then use any of the remaining 9 layers for your drawings,
    - export to adobe Creative Cloud or Illustrator (not as JPEG) and you have you picture with a transparent background...
    Hope this helps..

  • How use mouse draw a text select area on a PDF?

    Hi All,
    I am developing a small vb.net program to allow user select a area on PDF and extract the text.
    I know some code below can extract text
    RectAry.Left = 0
    RectAry.right = rect.x
    RectAry.bottom = 630
    RectAry.Top = 703
    txt = gPDDoc.CreateTextSelect(lngPage, RectAry)
    My problem is how to know those four position value by looking at PDF.
    Advanced achivement is how to let customer draw a box on that demanding area and my program pickup those four values.
    If you could give me a code snippet, I am really appricate your time.
    thank you

    Thanks, Leonard. I am following your instrcution and making progress now.
    But I had another small issue. It is regarding the coordinate value.
    I tried to use arobat's "CORP" function to get the top, bottom, left, right (Because this is the only way I know to get coordinate values). Then set into select rectange parameters. I found if I put the CORP to close the text, the select rectange cannot get the text from the area.
    But my CORP area is definitely include all texts and still leave a small margin to the word. If i want to get the text, I have to change the parameters a little bit and enlarge the area by a few points. Then It works.
    I want to know if Acrobat SDK require a minmum margin to selected text?

  • Using VPD -- Very Confused!

    Hey,
    I'm trying to write a small amount of code that will generate the PL/SQL that I'll need to implement simple policies like:
    Column ________ in table ________ should only be visible by ________ and ________
    I've been reading the Oracle Security Guide for a few hours but am so confused by everything that needs to be done!
    This is what I'm thinking so far:
    * STEP 1: SET SECURE CONTEXT:
    * CREATE OR REPLACE PACKAGE $pol_name AS
    * PROCEDURE set_user;
    * END;
    * CREATE OR REPLACE PACKAGE BODY $pol_name AS
    * PROCEDURE set_user IS
    * user VARCHAR;
    * BEGIN
    *      user = SYS_CONTEXT('USERENV', 'SESSION_USER');
    *      DBMS_SESSION.SET_CONTEXT('app_context', 'user', user);
    * END;
    * END;
    * STEP 2: CREATE A UNIQUE SECURE CONTEXT:
    * CREATE CONTEXT user_entry USING $pol_name ;
    * STEP 3: SET THE SECURE CONTEXT BEFORE THE USER RETRIEVES DATA (TRIGGERS!):
    Obviously I'm not done yet, but I'm just not sure if I'm on the right track!
    Any ideas?
    Thanks!

    Hey, thanks for replying!
    I'm using 10g R2 and the documentation talks about column level restriction and a nice new feature called column masking--both of which I'm trying to implement. But those are implemented when adding the policy, I'm most confused by the first few steps, setting up the procedures and what not.
    Thanks again!

Maybe you are looking for

  • What is a Scratch disc?

    Hi, My discs (80+120gb) are almost full, I sought (and gained) info on the expanding your Mac forum and noticed a thread that referred to using a disc as a "scratch disc" for Photoshop, I use Photoshop a lot and would like to know what scratch disc m

  • LIV-Planned Del.Cost for Multiple Purchase order.

    Hi Gurus, I have following issue while doing LIV -T-code MIRO . Passing Planned del. cost (Imports -Custom Duty) for Multiple POs (Same Vendor) Checked following basics. 1.In Po Planned Del cost are maintained .(Custom Duty) 2.in MIRO -Selected Layou

  • Need HELP on upgrading to os 4.5!!!

    ok..this is my like second time trying to updrage my blackberry....my problem is that i just intalled my desktop manger 4.3, then i upgraded to 4.6...after that is done i deleted the vender.xml..after that i connect my blackberry on my computer and a

  • How can I get iCal invitations received and accepted by Outlook?

    I am forwarding invitations to Outlook (Windows Vista) clients for appointments in iCal on MacBookPro. The invitations are not being received by Outlook and cannot be accepted. I notice many people have this problem. Does anyone have a solution pleas

  • Is there a shortcut key(s) to automatically reload my live bookmarks?

    See question...it's a pretty simple ask.