Menu

#2 Show CPU name in label

closed-duplicate
5
2006-09-15
2006-09-13
Anonymous
No

Show CPU name in label as an icon image

Discussion

  • Nobody/Anonymous

    conatins patches for the creation for

     
  • Martijn Rutten

    Martijn Rutten - 2006-09-13

    Logged In: YES
    user_id=1563356

    Review comments on the code.
    - Factor out the creation of the CPU label icon in a
    separate class in order not to crowd the traceLineViewer
    class too much with details on creating the icon. Can we
    inherit from the Image class here?
    - Hide the call to getCpuNameCoOrdinates and the creation
    of the image from createLabel(). Only create an instance of
    the new CpuLabelImage class.
    - getCpuLabelImage - rename this method to e.g.
    createCpuLabelImage. A "get" operation usually does not do
    more than simply return a local variable.
    - getCpuLabelImage - instead of drawing two filled
    rectangles inside eachother, can you draw one filled
    rectangle and one non-filled rectangle?
    - getCpuLabelImage - why is the creation of the mask so
    complex? Is this needed? Please add comments.
    - @SuppressWarnings - why is this needed? Please try to
    avoid any dependency on depreciated features and discuss
    upfront if you see no other solution
    - deselectDropTarget: please do not leave commented out
    code but remove it entirely.

    Please provide a patch for the reworked code.

     
  • Martijn Rutten

    Martijn Rutten - 2006-09-13
    • assigned_to: ruttenm --> maheshdc
    • status: open --> pending
     
  • Martijn Rutten

    Martijn Rutten - 2006-09-15

    Logged In: YES
    user_id=1563356

    Handled in patch 1558698

     
  • Martijn Rutten

    Martijn Rutten - 2006-09-15
    • status: pending --> closed-duplicate
     

Log in to post a comment.