Changeset 711


Ignore:
Timestamp:
01/16/14 15:59:39 (10 years ago)
Author:
jts21
Message:

Changes to tooltip drawing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Item.java

    r707 r711  
    11891189                int x = bounds.x + bounds.width;
    11901190                if(x + _tooltipItem.getPolygon().getBounds().width > FrameGraphics.getMaxFrameSize().width) {
    1191                         x = bounds.x - _tooltipItem.getPolygon().getBounds().width;
    1192                 }
    1193                 int y = bounds.y + bounds.height;
     1191                        x -= x + _tooltipItem.getPolygon().getBounds().width - FrameGraphics.getMaxFrameSize().width;
     1192                }
     1193                int y = bounds.y + bounds.height + bounds.height / 2;
    11941194                if(y + _tooltipItem.getPolygon().getBounds().height > FrameGraphics.getMaxFrameSize().height) {
    1195                         y = bounds.y - _tooltipItem.getPolygon().getBounds().height;
     1195                        y = bounds.y + bounds.height / 2 - _tooltipItem.getPolygon().getBounds().height;
    11961196                }
    11971197                _tooltipItem.setPosition(x, y);
Note: See TracChangeset for help on using the changeset viewer.