| 635 | } |
| 636 | |
| 637 | int RotateBox::getOrigin(string option) { |
| 638 | if (option.empty()) return BBL; |
| 639 | if (option.size() == 1) option += "c"; |
| 640 | |
| 641 | if (option == "bl" || option == "lb") return BL; |
| 642 | if (option == "bc" || option == "cb") return BC; |
| 643 | if (option == "br" || option == "rb") return BR; |
| 644 | if (option == "cl" || option == "lc") return CL; |
| 645 | if (option == "cc") return CC; |
| 646 | if (option == "cr" || option == "rc") return CR; |
| 647 | if (option == "tl" || option == "lt") return TL; |
| 648 | if (option == "tc" || option == "ct") return TC; |
| 649 | if (option == "tr" || option == "rt") return TR; |
| 650 | if (option == "Bl" || option == "lB") return BBL; |
| 651 | if (option == "Bc" || option == "cB") return BBC; |
| 652 | if (option == "Br" || option == "rB") return BBR; |
| 653 | return BBL; |
| 654 | } |
| 655 | |
| 656 | void RotateBox::draw(Graphics2D& g2, float x, float y) { |
| 657 | drawDebug(g2, x, y); |
nothing calls this directly
no outgoing calls
no test coverage detected