aboutsummaryrefslogtreecommitdiffstats
path: root/draw9patch/src
Commit message (Collapse)AuthorAgeFilesLines
* SDK: Delete projects moved to tools/base or tools/swt.Raphael Moll2013-03-1320-3099/+0
| | | | Change-Id: Iba15f82cb00d19217382c78d8ff37dda1e97ea59
* 9patch: Set default zoom level based on image size.Siva Velusamy2013-03-012-9/+62
| | | | Change-Id: Idfe3db88eb3c7493a4ccde0713ec925b4dfb8769
* Allow editing patch regions via dragging markersSiva Velusamy2013-02-283-147/+544
| | | | | | | | | | | | | Patches are created in draw9patch by clicking on the 1 pixel boundary. This is quite cumbersome when creating patches that span certain regions. This CL adds support for dragging markers to mark ranges that are stretchable (or indicate content region). Based on the location of the mouse pointer, a patch or padding region is created in the image. Change-Id: Ic0203efe9b12d4616f1eb76ddd3ca55d0f81cf01
* Ignore layout bound markers during patch calculationSiva Velusamy2013-02-282-3/+33
| | | | Change-Id: I0ae90c2867e2599a71ddf11f83352db4868deca2
* Highlight regions on mouse hover.Siva Velusamy2013-02-272-0/+215
| | | | | | | This CL highlights regions of the image covered by patch or padding markers depending on the current mouse location. Change-Id: I60066a7b1ea988019cda72dad0d8d6233c650ef5
* Default to not showing lock regionsSiva Velusamy2013-02-272-2/+2
| | | | Change-Id: I1ec7032385fc62eec53c7bd9973387407a34158a
* Move components to separate classes.Siva Velusamy2013-02-277-1009/+1375
| | | | | | | Also collects all 9 patch related information into PatchInfo, add adds some basic tests for PatchInfo. Change-Id: If5d8acbb169416290a2a0298526889b8f7960e32
* Use maven directory structureSiva Velusamy2013-02-2514-0/+0
| | | | Change-Id: I64abaaf75b438b46e1a496f4b1e974c1240361fe
* Use swing worker that is part of Java6Siva Velusamy2013-02-152-11/+10
| | | | | | Remove references to the org.jdesktop version Change-Id: I443ce115e950d678eaaf12eedad758bf56958f91
* draw9patch tool changed to draw lines instead of pixels.Kaloyan Donev2013-02-141-27/+138
| | | | | | | | | I changed the tool to draw lines when you are draging mouse. Before my change it puts pixels when draging but that way it misses some pixels because user cannot make straight line with mouse. Change-Id: I64d6f2eb7924a67051cafabdbfb0950d07a206c7 Signed-off-by: Kaloyan Donev <kdonev@gmail.com>
* Merge "Using the same directory as loaded png file path."Xavier Ducrohet2012-06-131-1/+2
|\
| * Using the same directory as loaded png file path.Keiji Ariyama2012-05-151-1/+2
| | | | | | | | Change-Id: I7bbba4491e6ebb7379b141dc85bdbdf3fc71d1e6
* | Merge "style nitpick: delete unnecessary space."Xavier Ducrohet2012-05-081-3/+3
|\ \
| * | style nitpick: delete unnecessary space.Keiji Ariyama2012-03-241-3/+3
| |/ | | | | | | Change-Id: Ie604a42d014999243e66367fed4568fd5d613083
* | Prevent to deleting original image file at d&d from Eclipse toKeiji Ariyama2012-04-171-2/+8
| | | | | | | | | | | | | | | | draw9patch tool on Mac OS X. Issue: http://code.google.com/p/android/issues/detail?id=28978 Change-Id: I844880528d98c5c83e90edf64d2dffb413a92ec1
* | Update tool to add red ticks as well, for layout bounds.Amith Yamasani2012-04-041-9/+20
|/ | | | | | Bug: 6087201 Change-Id: I40ab7656b85cf5b3c395143b561bbf30866797f8
* Fix: Filename isn't displayed on titlebar when the file not exist.Keiji Ariyama2011-05-171-4/+2
| | | | Change-Id: I5c19b481d6b78b7dc302353f816f0c9f5fd2028c
* Displaying a filename to the titlebar when draw9-patch tool is invoked with ↵Keiji Ariyama2011-05-041-1/+7
| | | | | | specifying the filename. Change-Id: Icbf8c7a61d6c184df5ba46f39ca978cd55e67e93
* Displaying a file name to window title, when a image is loaded in draw9patch ↵Keiji Ariyama2011-04-141-0/+1
| | | | | | tool. Change-Id: Iad52e227696403752c6deea590b183c74624c12b
* Add missing notice files.Xavier Ducrohet2011-03-153-26/+0
| | | | | | | | | | Also fix some makefiles to make sure the notices are picked up. - move the makefile outside of the source folder. - resources are now in the source folder directly instead of being inside src/resources. It's much simpler. Change-Id: Ica8ee4c2bc8a9b035d23fc914d4137cdca7e567d
* Prevent java.lang.ArithmeticException in draw9patchTor Norbye2011-02-041-1/+1
| | | | | | | | | | | | | | | | | | Initialize the zoom field to 1 instead of the default 0 since I ran into a scenario where a division by an uninitialized zoom caused a divide by zero exception. Exception in thread "AWT-EventQueue-0" java.lang.ArithmeticException: / by zero at com.android.draw9patch.ui.ImageEditorPanel$ImageViewer.checkLockedR egion(ImageEditorPanel.java:894) at com.android.draw9patch.ui.ImageEditorPanel$ImageViewer.access$1800( ImageEditorPanel.java:646) at com.android.draw9patch.ui.ImageEditorPanel$ImageViewer$3.mouseMoved (ImageEditorPanel.java:745) at java.awt.Component.processMouseMotionEvent(Component.java:6397) Change-Id: I7d2252f07458864d591be91636477ace4b520855
* draw9patch tool: improving zoom process.Keiji Ariyama2011-02-041-7/+8
| | | | Change-Id: Ie4d6408858db5b2bafb76ecb916e6b7c00ba0bb7
* Fixes problem in "draw9patch tool".Keiji Ariyama2011-01-301-5/+29
| | | | | | | If a big PNG image will be loading, HelpPanel hides ImageView. This patch fix that problem. Change-Id: I615705849b475e5b88daae7bef2af92cb5fa0657
* auto import from //branches/cupcake/...@137197The Android Open Source Project2009-03-092-11/+80
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-053-8/+24
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0315-0/+1821
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0315-1821/+0
|
* Initial ContributionThe Android Open Source Project2008-10-2115-0/+1821