AdvancedDataGrid view Header color and text

Hi,
I want to change the color of datagrid header as well as change the color of header text(only) not entire column.
i dont know how to do this .please help me boz i m new in flex.

Nevermind, i figured out that you keep the same way of drawing for lines and ovals in graphics2d as in regular graphics...
anyways, I tried this and what happens is that everything turns black... the background does not change...
i think it has something to do with the following important lines:
metabolicImage = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB);
Graphics2D g;
g = (Graphics2D) metabolicImage.getGraphics();
g.setPaint(Color.white);
then later....
          if (type == 'C')
               StringTokenizer circ = new StringTokenizer(Instr, "\t");
          trash = circ.nextToken(); // get first token C1, C2, etc
          x =     Integer.parseInt(circ.nextToken()); // get circle's x location
          y = Integer.parseInt(circ.nextToken()); // circle's y location
          r = Integer.parseInt(circ.nextToken()); // circle's radius
          g.setPaint( Color.black );
          g.drawOval(x-4,y-4,2*r,2*r);
I think somehow the image has a default background... is there anyway to change the color of the image background?

Similar Messages

  • Edit a png file... change colors and text and then export to gif?

    First I want to state that I am VERY new to Fireworks and I am trying to figure out how this works!  I typically use Photoshop.
    I was sent a PNG file (from a friend).  The file has many buttons on it that I believe are somehow saved or exported out as gif images to be buttons on her website.  All of the buttons are basic rectangles that are gray with black text.  She was told she could edit all of the buttons quickly in Fireworks (change their color, font color, etc) and it would change them all together.  Then save them all out so we would have the individual gif files for the buttons to save to the directory.
    So... I am able to open the png file in Fireworks and I can select each button or all of them, but I cannot see how to change their color and font, etc.  I know this must be very simple!  Can someone help me?
    Thank you!
    Sharlyn

    Have a look in the ocument Library panel to see if the buttons are Symbols. If yes, then double click on one of the buttons to open it in the symbol editor where you can easily make changes in all of them at once.

  • How differs soft proofing in View - Proof Colors and Save for Web - Preview?

    Hi, I'm currently confused with one inconsistency. My working space is Adobe RGB and I use calibrated monitor. After I finish my work on image I go to View -> Proof Colors -> Internet Standard RGB. Image looks terribly with the overall violet/purple hue. Then I open Save for Web dialogue, I check Convert to RGB and from Preview options I select again Internet Standard RGB. Now the previewed image looks as expected. The same results I get if I manually convert image to sRGB before soft proofing and saving for web. So... what's the difference between preview in Proof Colours and in Save for Web? Thank you for your opinions.

    Hi 21, thank you for your input. All what you say makes perfect sense, it is exactly how it should work and how I expected it works. My problem was, that while testing this theory in practice, I have come to different results. I expected, that if I stick to the theory (meaning keeping in mind all rules you perfectly described) I should get the same result in both soft proof and save for web preview. But... it was not the case. Save for web preview offered expected results while soft proof was completely out of any assumptions and colours were totally over-saturated with violet/purple hue. Also, Edit -> Assign Profile -> sRGB gave another result then Soft Proof -> Custom -> assign sRGB (preserve numbers), but the same as save for web preview.  What troubled me was why this is so.
    Today I've made tests on hardware calibrated monitor and... everything works exactly as you describe and as I expected.
    Then I went back to another monitor which is software calibrated (both monitors are calibrated with X-Rite i1 Display Pro). And again... I received strange results described above. So I did the last thing I thought and disabled colour calibration on that monitor. And suddenly... both soft proof and save for web preview gave the same result.
    Probable conclusion: soft proof and save for web preview (together with Edit -> Assign Profile) are programmed to use different algorithm which is evident on standard gamut monitors with software calibration. Question can be closed.
    Gene and 21, thank you for your effort.

  • Get colors and text from Legend or chart?

    It seems to be impossible ( or at least I cannot find a way to ) to wrap the labels in the Legend control.
    so I will have to write my own legend control that can do this.
    In order to create a Legend control I will need to get a array of the colors used in the Chart ( or legend) and apply these to the new legend control. Can anyone advise how I can do this?
    thanks

    Hi Natasha
    I have tried:
    for each(var item in myChart.series.legendData ){
    trace("series item is : " + item);
    And
    for each(var item in myChart.series.items){
    trace("series item is : " + item);
    UPDATE: I have also tried:
    trace ("legendData is : " + myChart.series[0].legendData); 
    trace("items is : " + myChart.series[0].items);
    for each(var item:Array in myChart.series[0].legendData){ 
    trace("series item is : "+ item);
    And again the trace statement in the for each loop is never reached, and the other trace statements are empty (besides the initial string), yet I can see in the variables window of Eclipse that there should be data.
    And I have a breakpoint on the trace statement, yet in both cases the breakpoint is never reached. I am not getting any error message.
    Also, when editing, when I put the '.' after myChart.series I do not get either legendData or items in the 'intellisense', just methods. Perhaps the intellisense is very limited.
    Anyway, can you advise on another way to get the colors and labels from a chart so I can create my own legend, which can wrap the labels?
    Many thanks

  • Header div and text?

    I have a header with text and 2 divs, one div is right aligned and the other is below the main text which is also text and will be hyperlinked, I want the bottom text to be justified across the header but it wont work, I gave it a z value of 2 but still no joy?

    Not sure what z has to to with it. It is also hard to visualise what you have done to get the one div to be right aligned. Getting a div to sit below should be quite easy as is hyperlinking. I do see a question mark after what I regard as a statement.
    So now my questions to you
    What is your question
    What does the markup look like

  • Two boolean buttons with colors and text?

    HI,
    I need two boolean buttons which will represent a power switch. So one will be ON and one will be OFF, but I need the text to be right on the button and I also want the buttons to switch colors. I have found only one or the other property (text on button or color) but not both on the pallette. Am I just not looking at the right buttons/properties? Please recommend what I should be using. (i.e. when ON is depressed I want it to be green, and OFF to be grey and viceversa)

    Programatically, there are two attribute nodes, one of them is strings, which will accept an array of 4 strings, being the following:
    1-OFF state
    2-ON state
    3-ON to OFF state (when latched or switched until release)
    4-OFF to ON state (when latched or switched until release)
    The other attribute is Colors, which is composed of an array of clusters of two numeric or color constants(controls):
    1-OFF sate foreground and background
    2-ON state foreground and background
    3-ON to OFF state foreground and background (when latched or switched until release)
    4-OFF to ON state foreground and background (when latched or switched until release)
    Hope this helps

  • How to color a table view header's text via css

    I have managed to change font-name, background and text alignment of my table view header, but the text-fill line is just ignored! What's the correct way to do this?
    Example:
    .table-view .column-header, .table-view .filler {
    -fx-text-fill: white;
    -fx-font-family: "Helvetica";
    -fx-font-size: 10px;
    -fx-font-weight: bold;
    -fx-size: 25;
    -fx-border-style: solid;
    -fx-border-insets: 0 1 1 0, 0 0 0 0;
    -fx-border-width: 0.083333em, 0.083333em;
    I also added:
    .table-view.column-header.label{
         -fx-text-fill: white;
    Wich was recommended on a site, but didn't work either..

    I think you need
    .table-view .column-header .label{
      -fx-text-fill: white;
    }(with spaces between the class selectors).

  • HT204053 My family shares one apple id among 4 devices.  How do I make it impossible for my children (i pad mini and i pod touch 5) to see my contacts and texts, but yet still share all of my apps? Been trying to figure this out for hours.  Please help.

    my family shares one apple id among 4 devices. how do i make it IMPPOSSIBLE for my children (i pad mini and i pod touch 5) to view my contacts and texts while still sharing my apps? please help. been working on this for hours.

    Delete your account in 1. "Settings > iCloud" + 2. "Settings > Messages > Send & Receive" + 3. "Settings > FaceTime", but still let them using your account for iTunes and app purchases in "Settings > iTunes & App Stores". Of course, please make sure that they do not know your password to set up your account for iCloud again or purchase anything alone.

  • I've heard that when you update your new software you are able to view any photo or text message you have ever done, is this true?

    I've heard that when you update the new software to your iphone you are then able to view every photo and text message you have ever created, is this true.

    Um, no.

  • How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.

    How can I change fullscreen background color, so that it is the same when viewing on mac and iPad? I want this to be able to use MathType in widget text.
    As an example, html widget has white background on iPad, and black on mac. The same goes for interactive widget.
    The MathType text inserted is inserted as a image, and will have the same color when in fullscreen as when not. So I need the textcolor to be the same in both views. Anyone know how to fix this?

    We're still not communicating. This is why I wanted an example .iba.
    Here's a re-creation of my own, going off what you described. You said "all html widgets and all gallery widgets" have this problem. So I inserted a blank HTML widget and a blank Gallery widget, and typed into both. Inserted a MathType equation into both. I don't see any difference when I preview it on my Mac compared to the preview on the iPad. I want to help, but I can't help if I can't duplicate the issue.
    I've attached the screen shots and the .iba file [link to .iba file].
    Feel free to email me directly at bobm at dessci dot com. If you're uncomfortable giving some information here, tell me anything you want in email. I work for the "MathType company", Design Science.

  • Issues: NetBeans View Colors, and All Tasks, Sort by Start Time

    2 Odd Issues - I'm hoping I can get some help with.
    When I look up (checkout) a User View in NetBeans, it displays in the lower window view, as
    White text on White background - making it Invisible [ I can only see the content, if I highlight it ]
    The columns are from L to R: Object/Attr, Name, Value, XML
    Nothing looks out of place, as I've checked under Tools | Options | Fonts and Colors
    and those are set to standard black fg and white bg
    not sure why the view got messed up
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    I have a client with the All Tasks, Sort by Start Time
    not functioning correctly. In fact, it's sorting quite randomly, despite clicking the column header.
    Wondered what could be the issue here ?
    It is set up as 2 different servers behind a Load Balancer, but still, How could anything cause this ?
    I don't believe anything has to be configured to build in the functionality of sort by 'Start Time'
    Any Suggestions ? TIA for your help.

    Bennal wrote:
    Two and a half years on, the album artist feature is still not supported by iPods? What the ****? Is this even on a 'todo' list at Apple?
    I'm really happy with iTunes, the album artist feature is a godsend, but seriously, why can't iPods support it?
    I quite agree... In the meantime you might find my previous post on Grouping Tracks Into Albums useful, it details workarounds for this and other quirks in the iTunes/iPod system.
    tt2

  • Problem editing text color and page properties due to favicon link

    I recently added a link to a sites favicon using the link tag. Following advice on the net this was added beneath the HTML tag and before the HEAD tag. I was using a Dreamweaver template for the site and it updated all pages with the new link in the non-editable area above HEAD and just after the template declaration.
    This was fine, unitl the user went to edit the site. He found that he could no longer get to page properties as he got an error that no page properties existed in editable areas... although there was an editable region for the page title. Also text color and highlighting were now disabled.
    Moving the link tag into the head area has resolved the editing issue, but it seems a strange bug. Is there some way to add something between HTML and HEAD and have it appear before the InstanceBegin of the template?

    You can edit text in any PDF by using trial version but as for as my knowledge and limited experience with Adobe I could not find any text color option in Adobe Acrobat. But you can highlight text in Adobe Acrobat. If you want to change the text color in PDF, I would like to recommend some another software which allows you to change the color of text and is available for download here.
    Let me tell you how can change text color using this software. Open PDF file > go to "edit tab" > Click "edit" then highlight text to change the color. As you can see in the below screenshot.
    Free free to ask. Hope it helps you. Don't forget to come back to share your views.
    Thanks

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • Labels. Confusing. It colors the folder and text in a block of color.

    I've written before about this. I'm wishing and hoping Apple has "fixed" the options for colorizing folders.
    My problem is that after using a label color, the folder and the entire line of text are colored in a block of color. With several folders colored, in column view, it looks horrible and it is impossible to tell which folder is the currently highlighted one - the one I am working in.
    I did purchase Color Labels, and it does a much better job - it just colors the folder and leaves the text alone. But it has many limitations.
    I'm wondering if Apple has changed anything. As I recall, very many others complained about this.
    Thanks for any help.
    nÔÔdle--hëad

    George
    This is very helpful information (I'll go back and mark it as such after I post this - a clumsy rating system but...)
    Your first point, fo rhte most part, solves my problem. Though the ideal would be the reverse, which is what Color Labels does; the folder get colored and the line of text is left alone. So much cleaner, less cluttered and garish. But I'm glad to get this much.
    Your second point is very noteworthy as well. I never noticed the subtle differences. Likewise with your third point.
    With all this in mind, I'm going to try going back to Apple's labeling, and forgo my Color Labels app for a while.
    Thanks again
    noodlehead - hapPY

  • Changing field text color and fill based on input value.

    I am trying to create a field that can be red, yellow or green.  In the end, what I need is a box that can be made red, yellow or green by the form user.  My strategy is to use a validation script to change the field and text color based on the field input.  So if you type "red", the text and field turn red, essentially making a red box.  The field is named "GoalColor".
    Am I headed in the right direction to get make this dynamic colored box?
    This script works but you must type "red" into the field(including quotation marks).  Any ideas on why the word red alone isn't triggering it? 
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == "red") {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    I have also tried - works if you type 'red'
    var vcolor = this.getField("GoalColor").value;
    if (vcolor == 'red') {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    and  - does not work
    var vcolor = this.getField("GoalColor").value;
    if ( vcolor == red ) {
        this.getField('GoalColor').fillColor = color.red;
    } else {
        this.getField('GoalColor').fillColor = color.white;
    Thanks!

    And you don't need to add the quotation marks in the text field. In fact, doing it will cause the script not to identify the word.

Maybe you are looking for