Commit Graph

1197 Commits

Author SHA1 Message Date
ray 13542f421f Because I'm sick of unforgiving clicks.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@855 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-10-01 17:31:14 +00:00
shaper a9b4b9ee9c Added variant of createDialog() that allows specifying a dialog title.
Added copyright header and edited javadoc slightly.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@854 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-30 06:23:11 +00:00
mdb 61796f97cf A layout manager for those times when you need absolute control.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@853 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-25 23:49:10 +00:00
mdb 412d26b2d4 Catch weird sporadic error that is occasionally thrown when label layout
results from the initial call to pack() on a Frame when an application
first starts up.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@852 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-25 08:42:00 +00:00
mdb 64355cce3c Added some new make[HV]Box variants.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@851 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-25 07:26:19 +00:00
shaper db0d6a7407 Deal gracefully with a null dialog in invalidateDialog().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@850 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 09:47:34 +00:00
shaper a961d4547e Deal gracefully with a null component in applyToHierarchy().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@849 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 09:47:14 +00:00
mdb ec5f971b62 Improved handling of preformatted lines; other minor cleanups.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@848 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 07:57:40 +00:00
mdb e185557e52 Added fieldsToString() versions that take a field separator.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@847 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 07:43:50 +00:00
mdb 91867ce1e5 Use HORIZONTAL text constraining by default.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@846 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 06:47:38 +00:00
shaper 770d50c363 Need to call repaint() in each of the setXXX() methods after marking
ourselves dirty.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@845 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 01:31:39 +00:00
mdb b3961924e3 Added code to toString() InetAddresses in dotted quad notation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@844 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 01:00:03 +00:00
mdb 90383047cd Added support for parsing byte arrays.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@843 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-24 00:09:37 +00:00
shaper 0aac64cdd5 Added support for rendering label text with a shadow or bold text style.
Fixed MultiLineLabel.getPreferredSize() to attempt to lay out the label
before obtaining its preferred size, and to lay out a dirtied label lazily
rather than each time a setXXX() method is called.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@842 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-23 21:19:06 +00:00
mdb 09f035de30 Whoops, wrap avoidance code was booched. Normal log lines have no newlines
anywhere until we add one when logging it.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@841 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-23 20:33:04 +00:00
mdb af63d8f436 Don't wrap lines that contain newlines other than at the end (so that we
don't mess up attempts at hand-formatting log messages). Added, but left
commented out, code to include the logging thread id.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@840 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-23 18:00:59 +00:00
mdb fdd6400033 Test SortableArrayList.insertSorted().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@839 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-23 01:45:47 +00:00
mdb 8ddea694d3 Added insertSorted().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@838 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-20 21:28:08 +00:00
mdb 5ab843caf1 Fixed a bug in insert().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@837 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-20 21:27:54 +00:00
shaper 8d59a9deec Added splice() variant for int[][].
git-svn-id: https://samskivert.googlecode.com/svn/trunk@836 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-19 23:37:40 +00:00
mdb 22e5c9e35b Changed default "terminal" width.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@835 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-19 18:42:42 +00:00
shaper 526d43fe6e Added setAntiAliased().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@834 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-18 01:19:26 +00:00
shaper 687628f9f6 Added toString().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@833 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-18 01:18:51 +00:00
ray da66da636f Added add*() methods that let you specify if you don't want the component
to be automatically removed as a target/source when it's removed from
the component hierarchy.
Added remove*() methods.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@832 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-16 21:29:25 +00:00
ray d5ec4bba40 Added support for autoscrolling.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@831 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 21:56:57 +00:00
ray 2bdb22349c Properly pad images that are the same size as the 'best' cursor size in
only one dimension.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@830 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 17:46:29 +00:00
ray 3270fb959f - allow specification of the hotspot for custom cursors.
- don't scale up cursors smaller than the desired size.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@829 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 17:41:41 +00:00
shaper 8636555a67 Don't freak out if the splice() variant with no length parameter is passed
a null values array.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@828 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 02:36:12 +00:00
shaper 66be01eb29 Added various variants of splice() to facilitate array manipulations by
those who are accustomed to slinging backticks and slurping files with
Perl.  Someday perhaps we'll go whole-hog and implement more of the
Perl-style splicing antics (allowing negative offset and/or length, and
optionally passing a list of items to splice into the array.)


git-svn-id: https://samskivert.googlecode.com/svn/trunk@827 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 02:12:26 +00:00
shaper 9f0e3fc3c8 Added size().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@826 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 02:09:05 +00:00
ray 083b7f210e log the platform-dependant restrictions on custom cursors when we create
one.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@825 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 01:04:32 +00:00
samskivert@gmail.com 028a419d23 Moved component-level cursor handling into methods.
Fix: don't copy down parental cursors to children when we drag over them.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@824 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 00:26:10 +00:00
ray 10e09fd566 Reduce cursor flashiness by setting the current cursor to the top level window
and only do per-component cursor overriding if an entered component
(or one of its parents) has a custom cursor.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@823 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-06 00:07:40 +00:00
shaper f2bacfb509 Pass font changes via setFont() along to internal components.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@822 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-09-04 01:28:09 +00:00
shaper deb729e2cd Rolled back to deprecated call to getBoundingBox() so as to properly
effect desired functionality and avoid infinite recursion.  Since
Polygon.calculateBounds() has package-protected access, our only happily
non-deprecated alternative is to copy calculateBounds() and the code from
Polygon.getBoundingBox() into this class, explicitly avoiding a call to
bounds.getBounds(), but for now I choose to live with deprecation.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@821 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-22 01:14:55 +00:00
mdb 628addc144 Pass the drag source along when informing the drop target of a completed
drop.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@820 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-21 17:54:10 +00:00
ray 6823210bd8 reset the last component's cursor before completing a drop.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@819 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-21 00:15:23 +00:00
ray e520cf69b3 fixed up docs
git-svn-id: https://samskivert.googlecode.com/svn/trunk@818 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-20 22:47:49 +00:00
ray d8571fb1dd added support for dragover effects,
fixed NPE


git-svn-id: https://samskivert.googlecode.com/svn/trunk@817 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-20 22:38:42 +00:00
ray 756d6d9702 - listen for mouseExited during a drag and clear the target
- broke enter/exit/released into their own methods
- don't assume components don't have their own custom cursors, restore their
old cursors when we're done with them.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@816 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-20 21:05:10 +00:00
mdb e12f2e9a51 Revise use of deprecated methods.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@815 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-20 18:57:31 +00:00
ray 597290d4df A simple DnD system that does not allow DnD operations with other programs,
but does things very nicely within a single app.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@814 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-20 02:49:19 +00:00
shaper 51adbd3b20 Added getMaxValue(). Really fixed getMaxIndexes() to not freak out if
values is null.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@813 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-19 23:22:09 +00:00
mdb 15702ec6ba Not to freak out if I recompile with jikes or javac.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@812 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-19 22:59:01 +00:00
mdb 3186c72bf9 New MySQL JDBC driver reports connection loss differently.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@811 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-19 21:18:58 +00:00
shaper 636890a638 Added reverse(byte[]).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@810 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-15 23:00:30 +00:00
mdb 8ce40edfe3 Moved SortableArrayList.binarySearch functionality into ArrayUtil to make
it generally accessible. Moved test code from ArrayUtil into separate
JUnit test class.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@809 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-12 01:10:32 +00:00
mdb ef75007784 Reverted to Ray's comparison order now that I see the light in checking
for less than max first to avoid a second compare in most iterations
through the loop.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@808 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-10 18:45:27 +00:00
mdb a0996535df Other minor optimizations while the going is good.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@807 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-10 18:42:35 +00:00
ray aba9d6f6a8 minor optimization I thought of in the shower
git-svn-id: https://samskivert.googlecode.com/svn/trunk@806 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2002-08-10 02:30:49 +00:00