Ignore:
Timestamp:
05/26/08 09:11:05 (16 years ago)
Author:
ra33
Message:

Added @b and @v...
Also changed @f... so that images can be displayed with transparent backgrounds.
Did a bunch of refactoring in the process to remove duplicated code and simplify managing @i, @f and @b.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        88testdummyaudio
        99tests_apollos
         10*.txt
  • trunk/src/org/expeditee/items/Dot.java

    r74 r78  
    219219                                // remove lines that are in common
    220220                                if (getLines().contains(line)) {
    221                                         this.setThickness(getThickness() + dot.getThickness());
    222221                                        dot.removeLine(line);
    223222                                        removeLine(line);
     
    294293        @Override
    295294        public void anchor() {
     295                Frame current = getParentOrCurrentFrame();
     296                //This is to make lines anchored across frames be on one frame
     297                for(Line l: getLines()) {
     298                        Frame parent = l.getOppositeEnd(this).getParent();
     299                        if (parent != null && parent != current) {
     300                                this.setParent(parent);
     301                                if(DisplayIO.getCurrentSide() == 0)
     302                                        this.setX(this.getX() - DisplayIO.getMiddle());
     303                                else
     304                                        this.setX(this.getX() + DisplayIO.getMiddle());
     305                        }
     306                        break;
     307                }
     308               
    296309                super.anchor();
    297                 Frame current = getParentOrCurrentFrame();
     310               
     311                //TODO is the code below needed... what for?
    298312                for (Line line : getLines()) {
    299313                        if (line.getID() < 0 && !current.getItems().contains(line)) {
Note: See TracChangeset for help on using the changeset viewer.