Commit graph

5927 commits

Author SHA1 Message Date
Christoph Atteneder
e70d2f38f0
Use mono space font also for sell offers 2018-02-21 16:18:14 +01:00
Christoph Atteneder
b9d6112d6c
Remove padding that is not necessary anymore 2018-02-21 16:16:56 +01:00
Christoph Atteneder
31221ad266
Fix resetting if no price feed is available 2018-02-21 16:15:42 +01:00
Christoph Atteneder
fab6f74199
Adapt chart axis labels 2018-02-21 13:36:27 +01:00
Christoph Atteneder
8c027836b6
Add security check 2018-02-21 13:21:14 +01:00
Christoph Atteneder
2006224074
Use Comparator 2018-02-21 12:48:59 +01:00
Christoph Atteneder
b508671f4e
Add dynamic right align for total amounts column 2018-02-21 12:40:57 +01:00
Christoph Atteneder
35c3d736bd
Add dynamic right alignment for volume column in OfferBookView 2018-02-21 12:02:30 +01:00
Christoph Atteneder
19ebfc4dfe
Use static values from GUIUtil 2018-02-21 10:49:30 +01:00
Christoph Atteneder
6569da16fb
Use GUIUtil.RANGE_SEPARATOR 2018-02-21 10:49:02 +01:00
Chris Beams
22f54d1a9e
Indent multiline constructor args
The convention throughout most of the Bisq codebase is this kind of
stacked alignment for multiline constructor arguments.
2018-02-21 10:45:22 +01:00
Chris Beams
3e9e7490b7
Add @Override where appropriate 2018-02-21 10:45:21 +01:00
Chris Beams
1760fccc89
Move io.bisq.core.network.{* => .p2p.seed.*}
Prior to this change, the contents of io.bisq.core.network were in fact
all seednode-related, and the main public type in this package,
DefaultSeedNodeRepository, is an implementation of
io.bisq.network.p2p.seed.SeedNodeRepository. This repackaging makes
better reflects these facts, making it more obvious to the unitiated
what this package is all about, and preserving the unqualified
io.bisq.core.network package for future expansion into non-seednode
related areas.
2018-02-21 10:45:21 +01:00
Chris Beams
08ca7ee0f9
Sort static factory methods at bottom 2018-02-21 10:45:21 +01:00
Chris Beams
fb856aea95
Favor public visibility for non-private members of package-private types
Public members of package-private classes are in effect still
package-private. Leaving the public modifier in place on these members
(as opposed to marking all members package-private) is beneficial for
two reasons:

 1. It leaves these members looking "normal" to the trained Java eye.
Readers are not left wondering why constructors and methods are
package-private. They can notice, if and when appropriate, that the
class itself is package-private, and can understand the transitive
visibility of each member on that basis.  Otherwise, the class is left
looking conventional, unsurprising, and therefore as easy as possible to
read and understand.

 2. It leaves the visibility of these members controlled by a single
modifier at the class level as opposed to N+1 modifiers (one for every
member + the class itself). Should the class in question for some reason
need to be promoted to public visibility, for example if it were to be
moved to a different package, its members would automatically inherit
the now-public visibility of the class, which is likely to be the
desired state, because if the class needs to be public, at least some of
its members will need to be public too. The maintainer making that
change can (and should) reduce the visibility of any members that should
remain package-private (e.g. those that exist only for for testing
purposes), but in doing so, they make an explicit and self-documenting
decision that will show up at the level of a Git diff.
2018-02-21 10:45:21 +01:00
Chris Beams
a72bb72473
Rename classes from Node* => SeedNode* as appropriate
Each of the classes here are in fact specific to seed nodes, so have
been renamed accordingly, e.g. from NodeAddresses => SeedNodeAddresses.
2018-02-21 10:45:21 +01:00
Christoph Atteneder
170e2895a0
Fix rebase issues 2018-02-21 10:37:28 +01:00
Chris Beams
b392864661
Rename CoreSeedNodeRepository => DefaultSeedNodeRepository
The original name was intended to distinguish that this implementation
is the implentation that lives within Bisq's 'core' module. This commit
renames the class to DefaultSeedNodeRepository as this is more idiomatic
and intention-revealing. This implementation is in fact the only one
ever gets used; it is the 'default' (and only) implementation.
2018-02-21 10:33:20 +01:00
Chris Beams
4ac45d7fe8
Rename SeedNodesRepository => SeedNodeRepository
The idiomatic approach to naming domain-driven design (DDD)-style
repositories is to use the singular form of the object being
encapsulated by the repository, e.g. BookRepository vs. BooksRepository.

Thus far, the repository interfaces and implementations created here in
Bisq have used the latter, plural form, but going forward we should
revert to the norm. To this end, this commit renames SeedNodesRepository
and its single implementation to SeedNodeRepository and
CoreSeedNodeRepository respectively.
2018-02-21 10:33:20 +01:00
Chris Beams
a737194d39
Make CoreSeedNodesRepository#seedNodeAddresses final
Also remove the @NotThreadSafe annotation as this class is now stateless
and immutable and therefore naturally threadsafe.

See https://github.com/bisq-network/exchange/pull/1362#discussion_r169143759
for context.
2018-02-21 10:33:20 +01:00
Chris Beams
9c77f4ce57
Simplify CoreSeedNodesRepository#isSeedNode stream pipeline 2018-02-21 10:33:19 +01:00
Chris Beams
b5af59dee0
Remove NetworkStressTest to simplify CoreSeedNodesRepository
NetworkStressTest has been ignored for months because it had become
"outdated" and is therefore now dead code. It is the only place that the
CoreSeedNodesRepository#setTorSeedNodeAddresses
and #setLocalhostSeedNodeAddresses methods were called. Removing it
completely allows for removing these methods and marking the underlying
fields in CoreSeedNodesRepository as final.
2018-02-21 10:33:19 +01:00
Christoph Atteneder
879a6ad56d
Add new font style and use it for number columns 2018-02-21 10:26:30 +01:00
Christoph Atteneder
edf1884bbb
Add Fira Sans and Fira Mono font 2018-02-21 10:26:30 +01:00
stevenkain
b82132c875
Update displayStrings_ro.properties
New Romanian translations
2018-02-21 10:22:21 +01:00
stevenkain
0ccc32b6be
Update displayStrings_hu.properties
New translations
2018-02-21 10:22:21 +01:00
tau3
5bb91a3fd3 Fixed factory method for NodeAddresses in case of empty string 2018-02-21 13:17:08 +04:00
Christoph Atteneder
d377eec122
Merge pull request #1379 from stevenkain/patch-8
Update displayStrings_hu.properties
2018-02-21 09:23:32 +01:00
Christoph Atteneder
182fb5f94e
Merge pull request #1380 from stevenkain/patch-9
Update displayStrings_ro.properties
2018-02-21 09:20:05 +01:00
stevenkain
6af2fccb89
Update displayStrings_ro.properties
New Romanian translations
2018-02-20 23:08:35 +02:00
stevenkain
601bd9ea4e
Update displayStrings_hu.properties
New translations
2018-02-20 23:03:44 +02:00
stevenkain
f0a676bd33
Update displayStrings.properties
"both trades" makes no sense. Shouldn't it be "both traders"?
2018-02-20 22:41:35 +02:00
Christoph Atteneder
bc4576680d
Add dynamic decimal alignment for amount column in OfferBookView 2018-02-20 18:43:34 +01:00
Bernard Labno
fe1edafbd8 Dockerize seednode for development mode 2018-02-20 17:58:06 +01:00
Christoph Atteneder
584bb29abd
Remove unused methods 2018-02-20 17:42:42 +01:00
Christoph Atteneder
8fc1f2ced9
Use Comparator Util 2018-02-20 17:35:09 +01:00
Christoph Atteneder
9a7f59832a
Add tests for OfferBookChartViewModel 2018-02-20 17:32:24 +01:00
author
0bbb487d9c Proposed fix for Issue 1186 (Resize 'Offers to buy/sell with X'; list to Bisq's vertical window size). Sets offer table view heights within a scene height change listener. 2018-02-20 13:12:51 -03:00
Christoph Atteneder
6a2a60f4d9
Fix broken test for non-english systems 2018-02-20 14:23:46 +01:00
Christoph Atteneder
cd623af1c3
Add dynamic spacing in offer book for price and volume columns (amount is hardly going to change > 9 BTC) 2018-02-20 14:20:34 +01:00
Christoph Atteneder
6ab21f1066
Add different colorized fiat decimal places for price 2018-02-20 11:48:19 +01:00
Christoph Atteneder
2a3de280fc
Reset cell when null 2018-02-20 11:40:46 +01:00
Christoph Atteneder
12a204df91
Add colorization of zeros for volume 2018-02-20 11:22:12 +01:00
Christoph Atteneder
c2aaedc4b4
Add zero decimal places formatting for most important tables 2018-02-20 11:07:09 +01:00
Christoph Atteneder
0fffc2dd96
Fix test class 2018-02-20 10:00:24 +01:00
Christoph Atteneder
45b4ac0cb0
Merge branch 'add-monospace-font-support-roboto' of github.com:ripcurlx/exchange into add-monospace-font-support-roboto 2018-02-20 09:54:02 +01:00
Christoph Atteneder
477567b2f4
Add initial formatting for OfferBookView 2018-02-20 09:53:33 +01:00
Christoph Atteneder
021e02d17f
Improve formatting in OfferBook 2018-02-20 09:53:33 +01:00
Christoph Atteneder
2ca2d7bf09
Add formatting support for ranges 2018-02-20 09:53:33 +01:00
Christoph Atteneder
fd2f2aa33a
Add number formatting to columns 2018-02-20 09:53:32 +01:00