mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-20 04:27:48 -05:00
- moved to package in.ua.smartjava
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -27,9 +27,9 @@ out/
|
|||||||
|
|
||||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
com_crashlytics_export_strings.xml
|
com_crashlytics_export_strings.xml
|
||||||
crashlytics.properties
|
crashlytics.ua.in.smartjava.properties
|
||||||
crashlytics-build.properties
|
crashlytics-build.ua.in.smartjava.properties
|
||||||
fabric.properties
|
fabric.ua.in.smartjava.properties
|
||||||
### Java template
|
### Java template
|
||||||
# Compiled class file
|
# Compiled class file
|
||||||
*.class
|
*.class
|
||||||
@@ -67,5 +67,5 @@ gradle-app.setting
|
|||||||
.gradletasknamecache
|
.gradletasknamecache
|
||||||
|
|
||||||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
|
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
|
||||||
# gradle/wrapper/gradle-wrapper.properties
|
# gradle/wrapper/gradle-wrapper.ua.in.smartjava.properties
|
||||||
|
|
||||||
|
|||||||
36
CHANGELOG
36
CHANGELOG
@@ -1,6 +1,6 @@
|
|||||||
0.3.2 20171105
|
0.3.2 20171105
|
||||||
- Resolves issue with tuner frequency adjustments that was causing channel processing
|
- Resolves issue with tuner frequency adjustments that was causing ua.in.smartjava.channel processing
|
||||||
to lockup and show persistent 'overflow' state in each channel status
|
to lockup and show persistent 'overflow' state in each ua.in.smartjava.channel status
|
||||||
- Resolves issue with broadcastify 'mountpoint-in-use' error handling and updates
|
- Resolves issue with broadcastify 'mountpoint-in-use' error handling and updates
|
||||||
memory usage logging
|
memory usage logging
|
||||||
- Resolves issue with Shoutcast 2 login error
|
- Resolves issue with Shoutcast 2 login error
|
||||||
@@ -10,47 +10,47 @@
|
|||||||
|
|
||||||
0.3.0 20170922
|
0.3.0 20170922
|
||||||
- REQUIRES: Java 8 (or newer) for compatibility and eventual changeover to JavaFX
|
- REQUIRES: Java 8 (or newer) for compatibility and eventual changeover to JavaFX
|
||||||
- FEATURE: audio streaming - adds capability to stream to multiple remote broadcast
|
- FEATURE: ua.in.smartjava.audio streaming - adds capability to stream to multiple remote broadcast
|
||||||
servers (Broadcastify, Icecast v2.3 and v2.4+, and Shoutcast V1 and V2). Each
|
servers (Broadcastify, Icecast v2.3 and v2.4+, and Shoutcast V1 and V2). Each
|
||||||
stream can be independently configured with a delay. Audio calls are directed
|
stream can be independently configured with a delay. Audio calls are directed
|
||||||
to one or more streams by attaching one or more stream identifiers to each alias.
|
to one or more streams by attaching one or more stream identifiers to each ua.in.smartjava.alias.
|
||||||
- Extensive GUI updates for tuner, channel and alias management. Includes new
|
- Extensive GUI updates for tuner, ua.in.smartjava.channel and ua.in.smartjava.alias management. Includes new
|
||||||
'Now Playing' channel view and 'Detail' view.
|
'Now Playing' ua.in.smartjava.channel view and 'Detail' view.
|
||||||
- Updated alias list management of alias id values and wildcards. Weighting is now
|
- Updated ua.in.smartjava.alias list management of ua.in.smartjava.alias id values and wildcards. Weighting is now
|
||||||
applied to each wildcard so that they can be ordered from most specific to least
|
applied to each wildcard so that they can be ordered from most specific to least
|
||||||
specific for lookup value matching purposes.
|
specific for lookup value matching purposes.
|
||||||
- Added handling for Motorola-specific P25 patch messages and auto-generation of
|
- Added handling for Motorola-specific P25 patch messages and auto-generation of
|
||||||
patch group aliases that roll-up aliases from each patched talkgroup to support
|
patch group aliases that roll-up aliases from each patched talkgroup to support
|
||||||
audio recording and streaming of patch calls according to the identifiers and
|
ua.in.smartjava.audio recording and streaming of patch calls according to the identifiers and
|
||||||
actions defined for each of the patched talkgroups.
|
actions defined for each of the patched talkgroups.
|
||||||
- Implemented bounded queues for both tuner and individual channel IQ sample
|
- Implemented bounded queues for both tuner and individual ua.in.smartjava.channel IQ ua.in.smartjava.sample
|
||||||
buffers. Bounded queues have ability to enter/exit overflow state when queue
|
buffers. Bounded queues have ability to enter/exit overflow state when queue
|
||||||
size reaches overflow threshold and reset when queue size falls below the reset
|
size reaches overflow threshold and reset when queue size falls below the reset
|
||||||
threshold. Channel state will show OVERFLOW in red/yellow.
|
threshold. Channel state will show OVERFLOW in red/yellow.
|
||||||
- Improves handling of P25 TDMA channels (NO Phase 2 decoder support yet)
|
- Improves handling of P25 TDMA channels (NO Phase 2 decoder support yet)
|
||||||
- Updated airspy controller for airspy-mini specific sample rate handling.
|
- Updated airspy ua.in.smartjava.controller for airspy-mini specific ua.in.smartjava.sample rate handling.
|
||||||
- New developer remez filter designer tool and internal usage
|
- New developer remez ua.in.smartjava.filter designer tool and internal usage
|
||||||
|
|
||||||
0.2.0 20160329
|
0.2.0 20160329
|
||||||
- Major overhaul of underlying processing chain and extensive updates to all
|
- Major overhaul of underlying processing chain and extensive updates to all
|
||||||
decoders and filters
|
decoders and filters
|
||||||
- New audio playback interface with global mute and support for one or two
|
- New ua.in.smartjava.audio playback interface with global mute and support for one or two
|
||||||
audio channels
|
ua.in.smartjava.audio channels
|
||||||
- Audio playback is prioritized using a new Call Priority name action
|
- Audio playback is prioritized using a new Call Priority name action
|
||||||
with selected channels having the highest priority and any audio without
|
with selected channels having the highest priority and any ua.in.smartjava.audio without
|
||||||
an name identifier having the lowest priority.
|
an name identifier having the lowest priority.
|
||||||
- Updated Audio recording per call with new 'Non-Recordable' name action
|
- Updated Audio recording per call with new 'Non-Recordable' name action
|
||||||
- Updated Baseband (I/Q) recording at 48 kHz
|
- Updated Baseband (I/Q) recording at 48 kHz
|
||||||
- Added Airspy tuner support
|
- Added Airspy tuner support
|
||||||
- New traffic channel pool manager for trunked call following
|
- New traffic ua.in.smartjava.channel pool manager for trunked call following
|
||||||
- P25 Decoder for C4FM and LSM with trunked call following and audio
|
- P25 Decoder for C4FM and LSM with trunked call following and ua.in.smartjava.audio
|
||||||
decoding via the JMBE library
|
decoding via the JMBE library
|
||||||
- Updated MPT1327 decoder and trunked call following.
|
- Updated MPT1327 decoder and trunked call following.
|
||||||
- Updated spectral and waterfall display with zoom (2-64x) and pan and automatic
|
- Updated spectral and waterfall display with zoom (2-64x) and pan and automatic
|
||||||
noise floor (dB) adjusted to tuner sample size
|
noise floor (dB) adjusted to tuner ua.in.smartjava.sample size
|
||||||
- Resolved some issues with memory leaks and crashes
|
- Resolved some issues with memory leaks and crashes
|
||||||
|
|
||||||
0.1.5 20150612 Added initial P25 Decoder support with integrated audio decoding
|
0.1.5 20150612 Added initial P25 Decoder support with integrated ua.in.smartjava.audio decoding
|
||||||
using the JMBE library
|
using the JMBE library
|
||||||
|
|
||||||
0.1.4 20150528 Updated test P25 Decoder
|
0.1.4 20150528 Updated test P25 Decoder
|
||||||
|
|||||||
32
LICENSE
32
LICENSE
@@ -22,7 +22,7 @@ your programs, too.
|
|||||||
When we speak of free software, we are referring to freedom, not
|
When we speak of free software, we are referring to freedom, not
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
have the freedom to distribute copies of free software (and charge for
|
have the freedom to distribute copies of free software (and charge for
|
||||||
them if you wish), that you receive source code or can get it if you
|
them if you wish), that you receive ua.in.smartjava.source code or can get it if you
|
||||||
want it, that you can change the software or use pieces of it in new
|
want it, that you can change the software or use pieces of it in new
|
||||||
free programs, and that you know you can do these things.
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ you modify it: responsibilities to respect the freedom of others.
|
|||||||
For example, if you distribute copies of such a program, whether
|
For example, if you distribute copies of such a program, whether
|
||||||
gratis or for a fee, you must pass on to the recipients the same
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
freedoms that you received. You must make sure that they, too, receive
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
or can get the source code. And you must show them these terms so they
|
or can get the ua.in.smartjava.source code. And you must show them these terms so they
|
||||||
know their rights.
|
know their rights.
|
||||||
|
|
||||||
Developers that use the GNU GPL protect your rights with two steps:
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
@@ -111,8 +111,8 @@ menu, a prominent item in the list meets this criterion.
|
|||||||
|
|
||||||
1. Source Code.
|
1. Source Code.
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
The "ua.in.smartjava.source code" for a work means the preferred form of the work
|
||||||
for making modifications to it. "Object code" means any non-source
|
for making modifications to it. "Object code" means any non-ua.in.smartjava.source
|
||||||
form of a work.
|
form of a work.
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
A "Standard Interface" means an interface that either is an official
|
||||||
@@ -125,21 +125,21 @@ than the work as a whole, that (a) is included in the normal form of
|
|||||||
packaging a Major Component, but which is not part of that Major
|
packaging a Major Component, but which is not part of that Major
|
||||||
Component, and (b) serves only to enable use of the work with that
|
Component, and (b) serves only to enable use of the work with that
|
||||||
Major Component, or to implement a Standard Interface for which an
|
Major Component, or to implement a Standard Interface for which an
|
||||||
implementation is available to the public in source code form. A
|
implementation is available to the public in ua.in.smartjava.source code form. A
|
||||||
"Major Component", in this context, means a major essential component
|
"Major Component", in this context, means a major essential component
|
||||||
(kernel, window system, and so on) of the specific operating system
|
(kernel, window system, and so on) of the specific operating system
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
produce the work, or an object code interpreter used to run it.
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
The "Corresponding Source" for a work in object code form means all
|
||||||
the source code needed to generate, install, and (for an executable
|
the ua.in.smartjava.source code needed to generate, install, and (for an executable
|
||||||
work) run the object code and to modify the work, including scripts to
|
work) run the object code and to modify the work, including scripts to
|
||||||
control those activities. However, it does not include the work's
|
control those activities. However, it does not include the work's
|
||||||
System Libraries, or general-purpose tools or generally available free
|
System Libraries, or general-purpose tools or generally available free
|
||||||
programs which are used unmodified in performing those activities but
|
programs which are used unmodified in performing those activities but
|
||||||
which are not part of the work. For example, Corresponding Source
|
which are not part of the work. For example, Corresponding Source
|
||||||
includes interface definition files associated with source files for
|
includes interface definition files associated with ua.in.smartjava.source files for
|
||||||
the work, and the source code for shared libraries and dynamically
|
the work, and the ua.in.smartjava.source code for shared libraries and dynamically
|
||||||
linked subprograms that the work is specifically designed to require,
|
linked subprograms that the work is specifically designed to require,
|
||||||
such as by intimate data communication or control flow between those
|
such as by intimate data communication or control flow between those
|
||||||
subprograms and other parts of the work.
|
subprograms and other parts of the work.
|
||||||
@@ -148,7 +148,7 @@ subprograms and other parts of the work.
|
|||||||
can regenerate automatically from other parts of the Corresponding
|
can regenerate automatically from other parts of the Corresponding
|
||||||
Source.
|
Source.
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
The Corresponding Source for a work in ua.in.smartjava.source code form is that
|
||||||
same work.
|
same work.
|
||||||
|
|
||||||
2. Basic Permissions.
|
2. Basic Permissions.
|
||||||
@@ -194,7 +194,7 @@ technological measures.
|
|||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
You may convey verbatim copies of the Program's ua.in.smartjava.source code as you
|
||||||
receive it, in any medium, provided that you conspicuously and
|
receive it, in any medium, provided that you conspicuously and
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
keep intact all notices stating that this License and any
|
keep intact all notices stating that this License and any
|
||||||
@@ -208,7 +208,7 @@ and you may offer support or warranty protection for a fee.
|
|||||||
5. Conveying Modified Source Versions.
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
You may convey a work based on the Program, or the modifications to
|
||||||
produce it from the Program, in the form of source code under the
|
produce it from the Program, in the form of ua.in.smartjava.source code under the
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
a) The work must carry prominent notices stating that you modified
|
||||||
@@ -263,7 +263,7 @@ in one of these ways:
|
|||||||
product that is covered by this License, on a durable physical
|
product that is covered by this License, on a durable physical
|
||||||
medium customarily used for software interchange, for a price no
|
medium customarily used for software interchange, for a price no
|
||||||
more than your reasonable cost of physically performing this
|
more than your reasonable cost of physically performing this
|
||||||
conveying of source, or (2) access to copy the
|
conveying of ua.in.smartjava.source, or (2) access to copy the
|
||||||
Corresponding Source from a network server at no charge.
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
c) Convey individual copies of the object code with a copy of the
|
||||||
@@ -290,7 +290,7 @@ in one of these ways:
|
|||||||
Source of the work are being offered to the general public at no
|
Source of the work are being offered to the general public at no
|
||||||
charge under subsection 6d.
|
charge under subsection 6d.
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
A separable portion of the object code, whose ua.in.smartjava.source code is excluded
|
||||||
from the Corresponding Source as a System Library, need not be
|
from the Corresponding Source as a System Library, need not be
|
||||||
included in conveying the object code work.
|
included in conveying the object code work.
|
||||||
|
|
||||||
@@ -337,7 +337,7 @@ protocols for communication across the network.
|
|||||||
Corresponding Source conveyed, and Installation Information provided,
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
in accord with this section must be in a format that is publicly
|
in accord with this section must be in a format that is publicly
|
||||||
documented (and with an implementation available to the public in
|
documented (and with an implementation available to the public in
|
||||||
source code form), and must require no special password or key for
|
ua.in.smartjava.source code form), and must require no special password or key for
|
||||||
unpacking, reading or copying.
|
unpacking, reading or copying.
|
||||||
|
|
||||||
7. Additional Terms.
|
7. Additional Terms.
|
||||||
@@ -396,7 +396,7 @@ of that license document, provided that the further restriction does
|
|||||||
not survive such relicensing or conveying.
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
If you add terms to a covered work in accord with this section, you
|
||||||
must place, in the relevant source files, a statement of the
|
must place, in the relevant ua.in.smartjava.source files, a statement of the
|
||||||
additional terms that apply to those files, or a notice indicating
|
additional terms that apply to those files, or a notice indicating
|
||||||
where to find the applicable terms.
|
where to find the applicable terms.
|
||||||
|
|
||||||
@@ -627,7 +627,7 @@ possible use to the public, the best way to achieve this is to make it
|
|||||||
free software which everyone can redistribute and change under these terms.
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
To do so, attach the following notices to the program. It is safest
|
||||||
to attach them to the start of each source file to most effectively
|
to attach them to the start of each ua.in.smartjava.source file to most effectively
|
||||||
state the exclusion of warranty; and each file should have at least
|
state the exclusion of warranty; and each file should have at least
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
|||||||
12
build.gradle
12
build.gradle
@@ -6,8 +6,6 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
apply plugin:'application'
|
|
||||||
mainClassName = "gui.SDRTrunk"
|
|
||||||
|
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
@@ -17,6 +15,7 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version = '1.0'
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -60,12 +59,3 @@ dependencies {
|
|||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
gradleVersion = '4.3.1'
|
gradleVersion = '4.3.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
|
||||||
manifest {
|
|
||||||
attributes(
|
|
||||||
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
|
|
||||||
'Main-Class': 'gui.SDRTrunk'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
2
gradlew
vendored
2
gradlew
vendored
@@ -106,7 +106,7 @@ fi
|
|||||||
|
|
||||||
# For Darwin, add options to specify how the application appears in the dock
|
# For Darwin, add options to specify how the application appears in the dock
|
||||||
if $darwin; then
|
if $darwin; then
|
||||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:ua.in.smartjava.icon=$APP_HOME/media/gradle.icns\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# For Cygwin, switch paths to Windows format before running java
|
# For Cygwin, switch paths to Windows format before running java
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ for /f "usebackq tokens=3" %%a in (`java -version 2^>^&1 ^| find "version"`) do
|
|||||||
|
|
||||||
if !c! equ 9 (
|
if !c! equ 9 (
|
||||||
echo Using Java 9 options
|
echo Using Java 9 options
|
||||||
java -cp "SDRTrunk.jar;*;libs/*;config/*;images/*" --add-modules java.xml.bind gui.SDRTrunk
|
java -cp "SDRTrunk.jar;*;libs/*;config/*;images/*" --add-modules java.xml.bind ua.in.smartjava.gui.SDRTrunk
|
||||||
) else (
|
) else (
|
||||||
echo Using Java 8 options
|
echo Using Java 8 options
|
||||||
java -XX:+UseG1GC -cp "SDRTrunk.jar;*;libs/*;config/*;images/*" gui.SDRTrunk
|
java -XX:+UseG1GC -cp "SDRTrunk.jar;*;libs/*;config/*;images/*" ua.in.smartjava.gui.SDRTrunk
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
package audio.squelch;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Squelch state for a decoding channel. The state determines the handling of
|
|
||||||
* any audio packets processed by the channel state.
|
|
||||||
*/
|
|
||||||
public enum SquelchMode
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Automatic: decoded message activity dictates squelch state and determines
|
|
||||||
* if audio is passed
|
|
||||||
*/
|
|
||||||
AUTOMATIC,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Manually applied squelch noise level threshold determines if audio is
|
|
||||||
* passed.
|
|
||||||
*/
|
|
||||||
MANUAL,
|
|
||||||
|
|
||||||
/**
|
|
||||||
* No Squelch - no squelch is applied and all audio is passed
|
|
||||||
*/
|
|
||||||
NONE;
|
|
||||||
}
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
package filter;
|
|
||||||
|
|
||||||
public interface IFilter<T>
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Generic filter method.
|
|
||||||
*
|
|
||||||
* @param message - message to filter
|
|
||||||
* @return - true if the message passes the filter
|
|
||||||
*/
|
|
||||||
public boolean passes( T t );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Indicates if the filter can process (filter) the object
|
|
||||||
*
|
|
||||||
* @param message - candidate message for filtering
|
|
||||||
*
|
|
||||||
* @return - true if the filter is capable of filtering the message
|
|
||||||
*/
|
|
||||||
public boolean canProcess( T t );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Indicates if this filter is enabled to evaluate messages
|
|
||||||
*/
|
|
||||||
public boolean isEnabled();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the enabled state of the filter
|
|
||||||
*/
|
|
||||||
public void setEnabled( boolean enabled );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Display name for the filter
|
|
||||||
*/
|
|
||||||
public String getName();
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
package module.decode.p25;
|
|
||||||
|
|
||||||
import bits.BinaryMessage;
|
|
||||||
|
|
||||||
public interface C4FMFrameListener
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Listener interface to receive the output of the C4FMMessageFramer.
|
|
||||||
*
|
|
||||||
* @param buffer - framed message without the sync pattern
|
|
||||||
* @param inverted - flag indicating if the message was received inverted
|
|
||||||
*/
|
|
||||||
public void receive( BinaryMessage buffer, boolean inverted );
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
/*******************************************************************************
|
|
||||||
* sdrtrunk
|
|
||||||
* Copyright (C) 2014-2016 Dennis Sheirer
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
||||||
*
|
|
||||||
******************************************************************************/
|
|
||||||
public class network
|
|
||||||
{
|
|
||||||
}
|
|
||||||
@@ -37,7 +37,7 @@ import java.beans.VetoableChangeSupport;
|
|||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* A non-visual java bean is a Java class that conforms to the AbstractBean
|
* A non-visual java bean is a Java class that conforms to the AbstractBean
|
||||||
* patterns to allow visual manipulation of the bean's properties and event
|
* patterns to allow visual manipulation of the bean's ua.in.smartjava.properties and event
|
||||||
* handlers at design-time.
|
* handlers at design-time.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
@@ -178,7 +178,7 @@ public abstract class AbstractBean {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a PropertyChangeListener to the listener list.
|
* Add a PropertyChangeListener to the listener list.
|
||||||
* The listener is registered for all properties.
|
* The listener is registered for all ua.in.smartjava.properties.
|
||||||
* The same listener object may be added more than once, and will be called
|
* The same listener object may be added more than once, and will be called
|
||||||
* as many times as it is added.
|
* as many times as it is added.
|
||||||
* If <code>listener</code> is null, no exception is thrown and no action
|
* If <code>listener</code> is null, no exception is thrown and no action
|
||||||
@@ -193,9 +193,9 @@ public abstract class AbstractBean {
|
|||||||
/**
|
/**
|
||||||
* Remove a PropertyChangeListener from the listener list.
|
* Remove a PropertyChangeListener from the listener list.
|
||||||
* This removes a PropertyChangeListener that was registered
|
* This removes a PropertyChangeListener that was registered
|
||||||
* for all properties.
|
* for all ua.in.smartjava.properties.
|
||||||
* If <code>listener</code> was added more than once to the same event
|
* If <code>listener</code> was added more than once to the same event
|
||||||
* source, it will be notified one less time after being removed.
|
* ua.in.smartjava.source, it will be notified one less time after being removed.
|
||||||
* If <code>listener</code> is null, or was never added, no exception is
|
* If <code>listener</code> is null, or was never added, no exception is
|
||||||
* thrown and no action is taken.
|
* thrown and no action is taken.
|
||||||
*
|
*
|
||||||
@@ -259,7 +259,7 @@ public abstract class AbstractBean {
|
|||||||
/**
|
/**
|
||||||
* Remove a PropertyChangeListener for a specific property.
|
* Remove a PropertyChangeListener for a specific property.
|
||||||
* If <code>listener</code> was added more than once to the same event
|
* If <code>listener</code> was added more than once to the same event
|
||||||
* source for the specified property, it will be notified one less time
|
* ua.in.smartjava.source for the specified property, it will be notified one less time
|
||||||
* after being removed.
|
* after being removed.
|
||||||
* If <code>propertyName</code> is null, no exception is thrown and no
|
* If <code>propertyName</code> is null, no exception is thrown and no
|
||||||
* action is taken.
|
* action is taken.
|
||||||
@@ -340,8 +340,8 @@ public abstract class AbstractBean {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if there are any listeners for a specific property, including
|
* Check if there are any listeners for a specific property, including
|
||||||
* those registered on all properties. If <code>propertyName</code>
|
* those registered on all ua.in.smartjava.properties. If <code>propertyName</code>
|
||||||
* is null, only check for listeners registered on all properties.
|
* is null, only check for listeners registered on all ua.in.smartjava.properties.
|
||||||
*
|
*
|
||||||
* @param propertyName the property name.
|
* @param propertyName the property name.
|
||||||
* @return true if there are one or more listeners for the given property
|
* @return true if there are one or more listeners for the given property
|
||||||
@@ -352,8 +352,8 @@ public abstract class AbstractBean {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if there are any listeners for a specific property, including
|
* Check if there are any listeners for a specific property, including
|
||||||
* those registered on all properties. If <code>propertyName</code>
|
* those registered on all ua.in.smartjava.properties. If <code>propertyName</code>
|
||||||
* is null, only check for listeners registered on all properties.
|
* is null, only check for listeners registered on all ua.in.smartjava.properties.
|
||||||
*
|
*
|
||||||
* @param propertyName the property name.
|
* @param propertyName the property name.
|
||||||
* @return true if there are one or more listeners for the given property
|
* @return true if there are one or more listeners for the given property
|
||||||
@@ -364,7 +364,7 @@ public abstract class AbstractBean {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a VetoableListener to the listener list.
|
* Add a VetoableListener to the listener list.
|
||||||
* The listener is registered for all properties.
|
* The listener is registered for all ua.in.smartjava.properties.
|
||||||
* The same listener object may be added more than once, and will be called
|
* The same listener object may be added more than once, and will be called
|
||||||
* as many times as it is added.
|
* as many times as it is added.
|
||||||
* If <code>listener</code> is null, no exception is thrown and no action
|
* If <code>listener</code> is null, no exception is thrown and no action
|
||||||
@@ -380,9 +380,9 @@ public abstract class AbstractBean {
|
|||||||
/**
|
/**
|
||||||
* Remove a VetoableChangeListener from the listener list.
|
* Remove a VetoableChangeListener from the listener list.
|
||||||
* This removes a VetoableChangeListener that was registered
|
* This removes a VetoableChangeListener that was registered
|
||||||
* for all properties.
|
* for all ua.in.smartjava.properties.
|
||||||
* If <code>listener</code> was added more than once to the same event
|
* If <code>listener</code> was added more than once to the same event
|
||||||
* source, it will be notified one less time after being removed.
|
* ua.in.smartjava.source, it will be notified one less time after being removed.
|
||||||
* If <code>listener</code> is null, or was never added, no exception is
|
* If <code>listener</code> is null, or was never added, no exception is
|
||||||
* thrown and no action is taken.
|
* thrown and no action is taken.
|
||||||
*
|
*
|
||||||
@@ -425,7 +425,7 @@ public abstract class AbstractBean {
|
|||||||
/**
|
/**
|
||||||
* Remove a VetoableChangeListener for a specific property.
|
* Remove a VetoableChangeListener for a specific property.
|
||||||
* If <code>listener</code> was added more than once to the same event
|
* If <code>listener</code> was added more than once to the same event
|
||||||
* source for the specified property, it will be notified one less time
|
* ua.in.smartjava.source for the specified property, it will be notified one less time
|
||||||
* after being removed.
|
* after being removed.
|
||||||
* If <code>propertyName</code> is null, no exception is thrown and no
|
* If <code>propertyName</code> is null, no exception is thrown and no
|
||||||
* action is taken.
|
* action is taken.
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
<Property name="action" type="javax.swing.Action" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
<Property name="action" type="javax.swing.Action" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Connection code="getZoomOutAction()" type="code"/>
|
<Connection code="getZoomOutAction()" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="ua.in.smartjava.icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||||
<Image iconType="3" name="/org/jdesktop/swingx/mapviewer/resources/plus.png"/>
|
<Image iconType="3" name="/org/jdesktop/swingx/mapviewer/resources/plus.png"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
<Property name="action" type="javax.swing.Action" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
<Property name="action" type="javax.swing.Action" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Connection code="getZoomInAction()" type="code"/>
|
<Connection code="getZoomInAction()" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="ua.in.smartjava.icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||||
<Image iconType="3" name="/org/jdesktop/swingx/mapviewer/resources/minus.png"/>
|
<Image iconType="3" name="/org/jdesktop/swingx/mapviewer/resources/minus.png"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ import org.jdesktop.swingx.painter.Painter;
|
|||||||
/**
|
/**
|
||||||
* <p>The JXMapKit is a pair of JXMapViewers preconfigured to be easy to use
|
* <p>The JXMapKit is a pair of JXMapViewers preconfigured to be easy to use
|
||||||
* with common features built in. This includes zoom buttons, a zoom slider,
|
* with common features built in. This includes zoom buttons, a zoom slider,
|
||||||
* and a mini-map in the lower right corner showing an overview of the map.
|
* and a mini-ua.in.smartjava.map in the lower right corner showing an overview of the ua.in.smartjava.map.
|
||||||
* Each feature can be turned off using an appropriate
|
* Each feature can be turned off using an appropriate
|
||||||
* <CODE>is<I>X</I>visible</CODE> property. For example, to turn
|
* <CODE>is<I>X</I>visible</CODE> property. For example, to turn
|
||||||
* off the minimap call
|
* off the minimap call
|
||||||
@@ -112,7 +112,7 @@ public class JXMapKit extends JPanel
|
|||||||
rebuildMainMapOverlay();
|
rebuildMainMapOverlay();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* // adapter to move the minimap after the main map has moved MouseInputAdapter ma = new MouseInputAdapter() {
|
* // adapter to move the minimap after the main ua.in.smartjava.map has moved MouseInputAdapter ma = new MouseInputAdapter() {
|
||||||
* public void mouseReleased(MouseEvent e) { miniMap.setCenterPosition(mapCenterPosition); } };
|
* public void mouseReleased(MouseEvent e) { miniMap.setCenterPosition(mapCenterPosition); } };
|
||||||
* mainMap.addMouseMotionListener(ma); mainMap.addMouseListener(ma);
|
* mainMap.addMouseMotionListener(ma); mainMap.addMouseListener(ma);
|
||||||
*/
|
*/
|
||||||
@@ -152,13 +152,13 @@ public class JXMapKit extends JPanel
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// an overlay for the mini-map which shows a rectangle representing the main map
|
// an overlay for the mini-ua.in.smartjava.map which shows a rectangle representing the main ua.in.smartjava.map
|
||||||
miniMap.setOverlayPainter(new Painter<JXMapViewer>()
|
miniMap.setOverlayPainter(new Painter<JXMapViewer>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void paint(Graphics2D g, JXMapViewer map, int width, int height)
|
public void paint(Graphics2D g, JXMapViewer map, int width, int height)
|
||||||
{
|
{
|
||||||
// get the viewport rect of the main map
|
// get the viewport rect of the main ua.in.smartjava.map
|
||||||
Rectangle mainMapBounds = mainMap.getViewportBounds();
|
Rectangle mainMapBounds = mainMap.getViewportBounds();
|
||||||
|
|
||||||
// convert to Point2Ds
|
// convert to Point2Ds
|
||||||
@@ -170,7 +170,7 @@ public class JXMapKit extends JPanel
|
|||||||
GeoPosition upperLeft = mainMap.getTileFactory().pixelToGeo(upperLeft2D, mainMap.getZoom());
|
GeoPosition upperLeft = mainMap.getTileFactory().pixelToGeo(upperLeft2D, mainMap.getZoom());
|
||||||
GeoPosition lowerRight = mainMap.getTileFactory().pixelToGeo(lowerRight2D, mainMap.getZoom());
|
GeoPosition lowerRight = mainMap.getTileFactory().pixelToGeo(lowerRight2D, mainMap.getZoom());
|
||||||
|
|
||||||
// convert to Point2Ds on the mini-map
|
// convert to Point2Ds on the mini-ua.in.smartjava.map
|
||||||
upperLeft2D = map.getTileFactory().geoToPixel(upperLeft, map.getZoom());
|
upperLeft2D = map.getTileFactory().geoToPixel(upperLeft, map.getZoom());
|
||||||
lowerRight2D = map.getTileFactory().geoToPixel(lowerRight, map.getZoom());
|
lowerRight2D = map.getTileFactory().geoToPixel(lowerRight, map.getZoom());
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ public class JXMapKit extends JPanel
|
|||||||
Rectangle rect = map.getViewportBounds();
|
Rectangle rect = map.getViewportBounds();
|
||||||
// p("rect = " + rect);
|
// p("rect = " + rect);
|
||||||
g.translate(-rect.x, -rect.y);
|
g.translate(-rect.x, -rect.y);
|
||||||
// Point2D centerpos = map.getTileFactory().geoToPixel(mapCenterPosition, map.getZoom());
|
// Point2D centerpos = ua.in.smartjava.map.getTileFactory().geoToPixel(mapCenterPosition, ua.in.smartjava.map.getZoom());
|
||||||
// p("center pos = " + centerpos);
|
// p("center pos = " + centerpos);
|
||||||
g.setPaint(Color.RED);
|
g.setPaint(Color.RED);
|
||||||
// g.drawRect((int)centerpos.getX()-30,(int)centerpos.getY()-30,60,60);
|
// g.drawRect((int)centerpos.getX()-30,(int)centerpos.getY()-30,60,60);
|
||||||
@@ -210,7 +210,7 @@ public class JXMapKit extends JPanel
|
|||||||
private boolean zoomChanging = false;
|
private boolean zoomChanging = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the current zoomlevel for the main map. The minimap will be updated accordingly
|
* Set the current zoomlevel for the main ua.in.smartjava.map. The minimap will be updated accordingly
|
||||||
* @param zoom the new zoom level
|
* @param zoom the new zoom level
|
||||||
*/
|
*/
|
||||||
public void setZoom(int zoom)
|
public void setZoom(int zoom)
|
||||||
@@ -230,7 +230,7 @@ public class JXMapKit extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an action which can be attached to buttons or menu items to make the map zoom out
|
* Returns an action which can be attached to buttons or menu items to make the ua.in.smartjava.map zoom out
|
||||||
* @return a preconfigured Zoom Out action
|
* @return a preconfigured Zoom Out action
|
||||||
*/
|
*/
|
||||||
public Action getZoomOutAction()
|
public Action getZoomOutAction()
|
||||||
@@ -253,7 +253,7 @@ public class JXMapKit extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an action which can be attached to buttons or menu items to make the map zoom in
|
* Returns an action which can be attached to buttons or menu items to make the ua.in.smartjava.map zoom in
|
||||||
* @return a preconfigured Zoom In action
|
* @return a preconfigured Zoom In action
|
||||||
*/
|
*/
|
||||||
public Action getZoomInAction()
|
public Action getZoomInAction()
|
||||||
@@ -417,8 +417,8 @@ public class JXMapKit extends JPanel
|
|||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the mini-map is currently visible
|
* Indicates if the mini-ua.in.smartjava.map is currently visible
|
||||||
* @return the current value of the mini-map property
|
* @return the current value of the mini-ua.in.smartjava.map property
|
||||||
*/
|
*/
|
||||||
public boolean isMiniMapVisible()
|
public boolean isMiniMapVisible()
|
||||||
{
|
{
|
||||||
@@ -426,7 +426,7 @@ public class JXMapKit extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets if the mini-map should be visible
|
* Sets if the mini-ua.in.smartjava.map should be visible
|
||||||
* @param miniMapVisible a new value for the miniMap property
|
* @param miniMapVisible a new value for the miniMap property
|
||||||
*/
|
*/
|
||||||
public void setMiniMapVisible(boolean miniMapVisible)
|
public void setMiniMapVisible(boolean miniMapVisible)
|
||||||
@@ -534,7 +534,7 @@ public class JXMapKit extends JPanel
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a reference to the main embedded JXMapViewer component
|
* Returns a reference to the main embedded JXMapViewer component
|
||||||
* @return the main map
|
* @return the main ua.in.smartjava.map
|
||||||
*/
|
*/
|
||||||
public JXMapViewer getMainMap()
|
public JXMapViewer getMainMap()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,24 +39,24 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A tile oriented map component that can easily be used with tile sources
|
* A tile oriented ua.in.smartjava.map component that can easily be used with tile sources
|
||||||
* on the web like Google and Yahoo maps, satellite data such as NASA imagery,
|
* on the web like Google and Yahoo maps, satellite data such as NASA imagery,
|
||||||
* and also with file based sources like pre-processed NASA images.
|
* and also with file based sources like pre-processed NASA images.
|
||||||
* A known map provider can be used with the SLMapServerInfo,
|
* A known ua.in.smartjava.map provider can be used with the SLMapServerInfo,
|
||||||
* which will connect to a 2km resolution version of NASA's Blue Marble Next Generation
|
* which will connect to a 2km resolution version of NASA's Blue Marble Next Generation
|
||||||
* imagery. @see SLMapServerInfo for more information.
|
* imagery. @see SLMapServerInfo for more information.
|
||||||
*
|
*
|
||||||
* Note, the JXMapViewer has three center point properties. The <B>addressLocation</B> property
|
* Note, the JXMapViewer has three center point ua.in.smartjava.properties. The <B>addressLocation</B> property
|
||||||
* represents an abstract center of the map. This would usually be something like the first item
|
* represents an abstract center of the ua.in.smartjava.map. This would usually be something like the first item
|
||||||
* in a search result. It is a {@link GeoPosition}. The <b>centerPosition</b> property represents
|
* in a search result. It is a {@link GeoPosition}. The <b>centerPosition</b> property represents
|
||||||
* the current center point of the map. If the user pans the map then the centerPosition point will
|
* the current center point of the ua.in.smartjava.map. If the user pans the ua.in.smartjava.map then the centerPosition point will
|
||||||
* change but the <B>addressLocation</B> will not. Calling <B>recenterToAddressLocation()</B> will move the map
|
* change but the <B>addressLocation</B> will not. Calling <B>recenterToAddressLocation()</B> will move the ua.in.smartjava.map
|
||||||
* back to that center address. The <B>center</B> property represents the same point as the centerPosition
|
* back to that center address. The <B>center</B> property represents the same point as the centerPosition
|
||||||
* property, but as a Point2D in pixel space instead of a GeoPosition in lat/long space. Note that
|
* property, but as a Point2D in pixel space instead of a GeoPosition in lat/long space. Note that
|
||||||
* the center property is a Point2D in the entire world bitmap, not in the portion of the map currently
|
* the center property is a Point2D in the entire world bitmap, not in the portion of the ua.in.smartjava.map currently
|
||||||
* visible. You can use the <B>getViewportBounds()</B> method to find the portion of the map currently visible
|
* visible. You can use the <B>getViewportBounds()</B> method to find the portion of the ua.in.smartjava.map currently visible
|
||||||
* and adjust your calculations accordingly. Changing the <B>center</B> property will change the <B>centerPosition</B>
|
* and adjust your calculations accordingly. Changing the <B>center</B> property will change the <B>centerPosition</B>
|
||||||
* property and vice versa. All three properties are bound.
|
* property and vice versa. All three ua.in.smartjava.properties are bound.
|
||||||
* @author Joshua.Marinacci@sun.com
|
* @author Joshua.Marinacci@sun.com
|
||||||
* @see org.jdesktop.swingx.mapviewer.bmng.SLMapServerInfo
|
* @see org.jdesktop.swingx.mapviewer.bmng.SLMapServerInfo
|
||||||
*/
|
*/
|
||||||
@@ -76,9 +76,9 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
private int zoomLevel = 1;
|
private int zoomLevel = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The position, in <I>map coordinates</I> of the center point. This is defined as the distance from the top and
|
* The position, in <I>ua.in.smartjava.map coordinates</I> of the center point. This is defined as the distance from the top and
|
||||||
* left edges of the map in pixels. Dragging the map component will change the center position. Zooming in/out will
|
* left edges of the ua.in.smartjava.map in pixels. Dragging the ua.in.smartjava.map component will change the center position. Zooming in/out will
|
||||||
* cause the center to be recalculated so as to remain in the center of the new "map".
|
* cause the center to be recalculated so as to remain in the center of the new "ua.in.smartjava.map".
|
||||||
*/
|
*/
|
||||||
private Point2D center = new Point2D.Double(0, 0);
|
private Point2D center = new Point2D.Double(0, 0);
|
||||||
|
|
||||||
@@ -89,20 +89,20 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
private boolean drawTileBorders = false;
|
private boolean drawTileBorders = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory used by this component to grab the tiles necessary for painting the map.
|
* Factory used by this component to grab the tiles necessary for painting the ua.in.smartjava.map.
|
||||||
*/
|
*/
|
||||||
private TileFactory factory;
|
private TileFactory factory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The position in latitude/longitude of the "address" being mapped. This is a special coordinate that, when moved,
|
* The position in latitude/longitude of the "address" being mapped. This is a special coordinate that, when moved,
|
||||||
* will cause the map to be moved as well. It is separate from "center" in that "center" tracks the current center
|
* will cause the ua.in.smartjava.map to be moved as well. It is separate from "center" in that "center" tracks the current center
|
||||||
* (in pixels) of the viewport whereas this will not change when panning or zooming. Whenever the addressLocation is
|
* (in pixels) of the viewport whereas this will not change when panning or zooming. Whenever the addressLocation is
|
||||||
* changed, however, the map will be repositioned.
|
* changed, however, the ua.in.smartjava.map will be repositioned.
|
||||||
*/
|
*/
|
||||||
private GeoPosition addressLocation;
|
private GeoPosition addressLocation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The overlay to delegate to for painting the "foreground" of the map component. This would include painting
|
* The overlay to delegate to for painting the "foreground" of the ua.in.smartjava.map component. This would include painting
|
||||||
* waypoints, day/night, etc. Also receives mouse events.
|
* waypoints, day/night, etc. Also receives mouse events.
|
||||||
*/
|
*/
|
||||||
private Painter<? super JXMapViewer> overlay;
|
private Painter<? super JXMapViewer> overlay;
|
||||||
@@ -194,7 +194,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw the map tiles. This method is for implementation use only.
|
* Draw the ua.in.smartjava.map tiles. This method is for implementation use only.
|
||||||
* @param g Graphics
|
* @param g Graphics
|
||||||
* @param zoom zoom level to draw at
|
* @param zoom zoom level to draw at
|
||||||
* @param viewportBounds the bounds to draw within
|
* @param viewportBounds the bounds to draw within
|
||||||
@@ -233,7 +233,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
int ox = ((itpx * getTileFactory().getTileSize(zoom)) - viewportBounds.x);
|
int ox = ((itpx * getTileFactory().getTileSize(zoom)) - viewportBounds.x);
|
||||||
int oy = ((itpy * getTileFactory().getTileSize(zoom)) - viewportBounds.y);
|
int oy = ((itpy * getTileFactory().getTileSize(zoom)) - viewportBounds.y);
|
||||||
|
|
||||||
// if the tile is off the map to the north/south, then just don't paint anything
|
// if the tile is off the ua.in.smartjava.map to the north/south, then just don't paint anything
|
||||||
if (isTileOnMap(itpx, itpy, mapSize))
|
if (isTileOnMap(itpx, itpy, mapSize))
|
||||||
{
|
{
|
||||||
if (isOpaque())
|
if (isOpaque())
|
||||||
@@ -303,9 +303,9 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the map overlay. This is a Painter<JXMapViewer> which will paint on top of the map. It can be used to draw waypoints,
|
* Sets the ua.in.smartjava.map overlay. This is a Painter<JXMapViewer> which will paint on top of the ua.in.smartjava.map. It can be used to draw waypoints,
|
||||||
* lines, or static overlays like text messages.
|
* lines, or static overlays like text messages.
|
||||||
* @param overlay the map overlay to use
|
* @param overlay the ua.in.smartjava.map overlay to use
|
||||||
*/
|
*/
|
||||||
public void setOverlayPainter(Painter<? super JXMapViewer> overlay)
|
public void setOverlayPainter(Painter<? super JXMapViewer> overlay)
|
||||||
{
|
{
|
||||||
@@ -341,8 +341,8 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current map overlay
|
* Gets the current ua.in.smartjava.map overlay
|
||||||
* @return the current map overlay
|
* @return the current ua.in.smartjava.map overlay
|
||||||
*/
|
*/
|
||||||
public Painter<? super JXMapViewer> getOverlayPainter()
|
public Painter<? super JXMapViewer> getOverlayPainter()
|
||||||
{
|
{
|
||||||
@@ -352,7 +352,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
/**
|
/**
|
||||||
* Returns the bounds of the viewport in pixels. This can be used to transform points into the world bitmap
|
* Returns the bounds of the viewport in pixels. This can be used to transform points into the world bitmap
|
||||||
* coordinate space.
|
* coordinate space.
|
||||||
* @return the bounds in <em>pixels</em> of the "view" of this map
|
* @return the bounds in <em>pixels</em> of the "view" of this ua.in.smartjava.map
|
||||||
*/
|
*/
|
||||||
public Rectangle getViewportBounds()
|
public Rectangle getViewportBounds()
|
||||||
{
|
{
|
||||||
@@ -413,9 +413,9 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current address location of the map. This property does not change when the user pans the map. This
|
* Gets the current address location of the ua.in.smartjava.map. This property does not change when the user pans the ua.in.smartjava.map. This
|
||||||
* property is bound.
|
* property is bound.
|
||||||
* @return the current map location (address)
|
* @return the current ua.in.smartjava.map location (address)
|
||||||
*/
|
*/
|
||||||
public GeoPosition getAddressLocation()
|
public GeoPosition getAddressLocation()
|
||||||
{
|
{
|
||||||
@@ -423,7 +423,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current address location of the map
|
* Gets the current address location of the ua.in.smartjava.map
|
||||||
* @param addressLocation the new address location
|
* @param addressLocation the new address location
|
||||||
*/
|
*/
|
||||||
public void setAddressLocation(GeoPosition addressLocation)
|
public void setAddressLocation(GeoPosition addressLocation)
|
||||||
@@ -437,7 +437,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Re-centers the map to have the current address location be at the center of the map, accounting for the map's
|
* Re-centers the ua.in.smartjava.map to have the current address location be at the center of the ua.in.smartjava.map, accounting for the ua.in.smartjava.map's
|
||||||
* width and height.
|
* width and height.
|
||||||
*/
|
*/
|
||||||
public void recenterToAddressLocation()
|
public void recenterToAddressLocation()
|
||||||
@@ -468,7 +468,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A property indicating the center position of the map
|
* A property indicating the center position of the ua.in.smartjava.map
|
||||||
* @param geoPosition the new property value
|
* @param geoPosition the new property value
|
||||||
*/
|
*/
|
||||||
public void setCenterPosition(GeoPosition geoPosition)
|
public void setCenterPosition(GeoPosition geoPosition)
|
||||||
@@ -481,7 +481,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A property indicating the center position of the map
|
* A property indicating the center position of the ua.in.smartjava.map
|
||||||
* @return the current center position
|
* @return the current center position
|
||||||
*/
|
*/
|
||||||
public GeoPosition getCenterPosition()
|
public GeoPosition getCenterPosition()
|
||||||
@@ -537,8 +537,8 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current pixel center of the map. This point is in the global bitmap coordinate system, not as lat/longs.
|
* Gets the current pixel center of the ua.in.smartjava.map. This point is in the global bitmap coordinate system, not as lat/longs.
|
||||||
* @return the current center of the map as a pixel value
|
* @return the current center of the ua.in.smartjava.map as a pixel value
|
||||||
*/
|
*/
|
||||||
public Point2D getCenter()
|
public Point2D getCenter()
|
||||||
{
|
{
|
||||||
@@ -546,8 +546,8 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the new center of the map in pixel coordinates.
|
* Sets the new center of the ua.in.smartjava.map in pixel coordinates.
|
||||||
* @param center the new center of the map in pixel coordinates
|
* @param center the new center of the ua.in.smartjava.map in pixel coordinates
|
||||||
*/
|
*/
|
||||||
public void setCenter(Point2D center)
|
public void setCenter(Point2D center)
|
||||||
{
|
{
|
||||||
@@ -591,13 +591,13 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
centerX = mapWidth - viewportWidth / 2;
|
centerX = mapWidth - viewportWidth / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if map is to small then just center it vert
|
// if ua.in.smartjava.map is to small then just center it vert
|
||||||
if (mapHeight < newVP.getHeight())
|
if (mapHeight < newVP.getHeight())
|
||||||
{
|
{
|
||||||
centerY = mapHeight / 2;// viewportHeight/2;// - mapHeight/2;
|
centerY = mapHeight / 2;// viewportHeight/2;// - mapHeight/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if map is too small then just center it horiz
|
// if ua.in.smartjava.map is too small then just center it horiz
|
||||||
if (!isHorizontalWrapped() && mapWidth < newVP.getWidth())
|
if (!isHorizontalWrapped() && mapWidth < newVP.getWidth())
|
||||||
{
|
{
|
||||||
centerX = mapWidth / 2;
|
centerX = mapWidth / 2;
|
||||||
@@ -641,7 +641,7 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
|
|
||||||
int zoom = getZoom();
|
int zoom = getZoom();
|
||||||
Rectangle2D rect = generateBoundingRect(positions, zoom);
|
Rectangle2D rect = generateBoundingRect(positions, zoom);
|
||||||
// Rectangle2D viewport = map.getViewportBounds();
|
// Rectangle2D viewport = ua.in.smartjava.map.getViewportBounds();
|
||||||
int count = 0;
|
int count = 0;
|
||||||
while (!getViewportBounds().contains(rect))
|
while (!getViewportBounds().contains(rect))
|
||||||
{
|
{
|
||||||
@@ -745,9 +745,9 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts the specified GeoPosition to a point in the JXMapViewer's local coordinate space. This method is
|
* Converts the specified GeoPosition to a point in the JXMapViewer's local coordinate space. This method is
|
||||||
* especially useful when drawing lat/long positions on the map.
|
* especially useful when drawing lat/long positions on the ua.in.smartjava.map.
|
||||||
* @param pos a GeoPosition on the map
|
* @param pos a GeoPosition on the ua.in.smartjava.map
|
||||||
* @return the point in the local coordinate space of the map
|
* @return the point in the local coordinate space of the ua.in.smartjava.map
|
||||||
*/
|
*/
|
||||||
public Point2D convertGeoPositionToPoint(GeoPosition pos)
|
public Point2D convertGeoPositionToPoint(GeoPosition pos)
|
||||||
{
|
{
|
||||||
@@ -759,9 +759,9 @@ public class JXMapViewer extends JPanel implements DesignMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts the specified Point2D in the JXMapViewer's local coordinate space to a GeoPosition on the map. This
|
* Converts the specified Point2D in the JXMapViewer's local coordinate space to a GeoPosition on the ua.in.smartjava.map. This
|
||||||
* method is especially useful for determining the GeoPosition under the mouse cursor.
|
* method is especially useful for determining the GeoPosition under the mouse cursor.
|
||||||
* @param pt a point in the local coordinate space of the map
|
* @param pt a point in the local coordinate space of the ua.in.smartjava.map
|
||||||
* @return the point converted to a GeoPosition
|
* @return the point converted to a GeoPosition
|
||||||
*/
|
*/
|
||||||
public GeoPosition convertPointToGeoPosition(Point2D pt)
|
public GeoPosition convertPointToGeoPosition(Point2D pt)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
//
|
//
|
||||||
// Copyright (c) Fraunhofer IGD. All rights reserved.
|
// Copyright (c) Fraunhofer IGD. All rights reserved.
|
||||||
//
|
//
|
||||||
// This source code is property of the Fraunhofer IGD and underlies
|
// This ua.in.smartjava.source code is property of the Fraunhofer IGD and underlies
|
||||||
// copyright restrictions. It may only be used with explicit
|
// copyright restrictions. It may only be used with explicit
|
||||||
// permission from the respective owner.
|
// permission from the respective owner.
|
||||||
|
|
||||||
|
|||||||
@@ -28,22 +28,22 @@ import org.jdesktop.swingx.mapviewer.TileFactoryInfo;
|
|||||||
public class VirtualEarthTileFactoryInfo extends TileFactoryInfo
|
public class VirtualEarthTileFactoryInfo extends TileFactoryInfo
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Use road map
|
* Use road ua.in.smartjava.map
|
||||||
*/
|
*/
|
||||||
public final static MVEMode MAP = new MVEMode("map", "map", "r", ".png");
|
public final static MVEMode MAP = new MVEMode("ua/in/smartjava/map", "ua/in/smartjava/map", "r", ".png");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use satellite map
|
* Use satellite ua.in.smartjava.map
|
||||||
*/
|
*/
|
||||||
public final static MVEMode SATELLITE = new MVEMode("satellite", "satellite", "a", ".jpeg");
|
public final static MVEMode SATELLITE = new MVEMode("satellite", "satellite", "a", ".jpeg");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use hybrid map
|
* Use hybrid ua.in.smartjava.map
|
||||||
*/
|
*/
|
||||||
public final static MVEMode HYBRID = new MVEMode("hybrid", "hybrid", "h", ".jpeg");
|
public final static MVEMode HYBRID = new MVEMode("hybrid", "hybrid", "h", ".jpeg");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The map mode
|
* The ua.in.smartjava.map mode
|
||||||
*/
|
*/
|
||||||
public static class MVEMode
|
public static class MVEMode
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import javax.swing.SwingUtilities;
|
|||||||
import org.jdesktop.swingx.JXMapViewer;
|
import org.jdesktop.swingx.JXMapViewer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Centers the map on the mouse cursor
|
* Centers the ua.in.smartjava.map on the mouse cursor
|
||||||
* if left is double-clicked or middle mouse
|
* if left is double-clicked or middle mouse
|
||||||
* button is pressed.
|
* button is pressed.
|
||||||
* @author Martin Steiger
|
* @author Martin Steiger
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public abstract class AbstractTileFactory extends TileFactory
|
|||||||
private int threadPoolSize = 4;
|
private int threadPoolSize = 4;
|
||||||
private ExecutorService service;
|
private ExecutorService service;
|
||||||
|
|
||||||
// TODO the tile map should be static ALWAYS, regardless of the number
|
// TODO the tile ua.in.smartjava.map should be static ALWAYS, regardless of the number
|
||||||
// of GoogleTileFactories because each tile is, really, a singleton.
|
// of GoogleTileFactories because each tile is, really, a singleton.
|
||||||
private Map<String, Tile> tileMap = new HashMap<String, Tile>();
|
private Map<String, Tile> tileMap = new HashMap<String, Tile>();
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ public abstract class AbstractTileFactory extends TileFactory
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
tile = tileMap.get(url);
|
tile = tileMap.get(url);
|
||||||
// if its in the map but is low and isn't loaded yet
|
// if its in the ua.in.smartjava.map but is low and isn't loaded yet
|
||||||
// but we are in high mode
|
// but we are in high mode
|
||||||
if (tile.getPriority() == Tile.Priority.Low && eagerLoad && !tile.isLoaded())
|
if (tile.getPriority() == Tile.Priority.Low && eagerLoad && !tile.isLoaded())
|
||||||
{
|
{
|
||||||
@@ -208,7 +208,7 @@ public abstract class AbstractTileFactory extends TileFactory
|
|||||||
@Override
|
@Override
|
||||||
public Thread newThread(Runnable r)
|
public Thread newThread(Runnable r)
|
||||||
{
|
{
|
||||||
Thread t = new Thread(r, "map tile fetcher-pool-" + count++);
|
Thread t = new Thread(r, "ua.in.smartjava.map tile fetcher-pool-" + count++);
|
||||||
t.setPriority(Thread.MIN_PRIORITY);
|
t.setPriority(Thread.MIN_PRIORITY);
|
||||||
t.setDaemon(true);
|
t.setDaemon(true);
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ public abstract class TileFactory
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a Dimension containing the width and height of the map, in tiles at the current zoom level. So a
|
* Returns a Dimension containing the width and height of the ua.in.smartjava.map, in tiles at the current zoom level. So a
|
||||||
* Dimension that returns 10x20 would be 10 tiles wide and 20 tiles tall. These values can be multipled by
|
* Dimension that returns 10x20 would be 10 tiles wide and 20 tiles tall. These values can be multipled by
|
||||||
* getTileSize() to determine the pixel width/height for the map at the given zoom level
|
* getTileSize() to determine the pixel width/height for the ua.in.smartjava.map at the given zoom level
|
||||||
* @return the size of the world bitmap in tiles
|
* @return the size of the world bitmap in tiles
|
||||||
* @param zoom the current zoom level
|
* @param zoom the current zoom level
|
||||||
*/
|
*/
|
||||||
@@ -61,7 +61,7 @@ public abstract class TileFactory
|
|||||||
* @return the tile that is located at the given tilePoint for this zoom level. For example, if getMapSize() returns
|
* @return the tile that is located at the given tilePoint for this zoom level. For example, if getMapSize() returns
|
||||||
* 10x20 for this zoom, and the tilePoint is (3,5), then the appropriate tile will be located and returned. This
|
* 10x20 for this zoom, and the tilePoint is (3,5), then the appropriate tile will be located and returned. This
|
||||||
* method must not return null. However, it can return dummy tiles that contain no data if it wants. This is
|
* method must not return null. However, it can return dummy tiles that contain no data if it wants. This is
|
||||||
* appropriate, for example, for tiles which are outside of the bounds of the map and if the factory doesn't
|
* appropriate, for example, for tiles which are outside of the bounds of the ua.in.smartjava.map and if the factory doesn't
|
||||||
* implement wrapping.
|
* implement wrapping.
|
||||||
* @param x the x value
|
* @param x the x value
|
||||||
* @param y the y value
|
* @param y the y value
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ package org.jdesktop.swingx.mapviewer;
|
|||||||
import java.awt.geom.Point2D;
|
import java.awt.geom.Point2D;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A TileFactoryInfo encapsulates all information specific to a map server. This includes everything from the url to
|
* A TileFactoryInfo encapsulates all information specific to a ua.in.smartjava.map server. This includes everything from the url to
|
||||||
* load the map tiles from to the size and depth of the tiles. Theoretically any map server can be used by installing a
|
* load the ua.in.smartjava.map tiles from to the size and depth of the tiles. Theoretically any ua.in.smartjava.map server can be used by installing a
|
||||||
* customized TileFactoryInfo. Currently
|
* customized TileFactoryInfo. Currently
|
||||||
* @author joshy
|
* @author joshy
|
||||||
*/
|
*/
|
||||||
@@ -30,7 +30,7 @@ public class TileFactoryInfo
|
|||||||
*/
|
*/
|
||||||
private int[] mapWidthInTilesAtZoom;
|
private int[] mapWidthInTilesAtZoom;
|
||||||
/**
|
/**
|
||||||
* An array of coordinates in <em>pixels</em> that indicates the center in the world map for the given zoom level.
|
* An array of coordinates in <em>pixels</em> that indicates the center in the world ua.in.smartjava.map for the given zoom level.
|
||||||
*/
|
*/
|
||||||
private Point2D[] mapCenterInPixelsAtZoom;// = new Point2D.Double[18];
|
private Point2D[] mapCenterInPixelsAtZoom;// = new Point2D.Double[18];
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ public class TileFactoryInfo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instance of TileFactoryInfo. Note that TileFactoryInfo should be considered invariate, meaning that
|
* Creates a new instance of TileFactoryInfo. Note that TileFactoryInfo should be considered invariate, meaning that
|
||||||
* subclasses should ensure all of the properties stay the same after the class is constructed. Returning different
|
* subclasses should ensure all of the ua.in.smartjava.properties stay the same after the class is constructed. Returning different
|
||||||
* values of getTileSize() for example is considered an error and may result in unexpected behavior.
|
* values of getTileSize() for example is considered an error and may result in unexpected behavior.
|
||||||
* @param minimumZoomLevel The minimum zoom level
|
* @param minimumZoomLevel The minimum zoom level
|
||||||
* @param maximumZoomLevel the maximum zoom level
|
* @param maximumZoomLevel the maximum zoom level
|
||||||
@@ -76,7 +76,7 @@ public class TileFactoryInfo
|
|||||||
* @param zparam the z parameter for the tile url
|
* @param zparam the z parameter for the tile url
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* @param xr2l true if tile x is measured from the far left of the map to the far right, or else false if based on
|
* @param xr2l true if tile x is measured from the far left of the ua.in.smartjava.map to the far right, or else false if based on
|
||||||
* the center line.
|
* the center line.
|
||||||
* @param yt2b true if tile y is measured from the top (north pole) to the bottom (south pole) or else false if
|
* @param yt2b true if tile y is measured from the top (north pole) to the bottom (south pole) or else false if
|
||||||
* based on the equator.
|
* based on the equator.
|
||||||
@@ -90,7 +90,7 @@ public class TileFactoryInfo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instance of TileFactoryInfo. Note that TileFactoryInfo should be considered invariate, meaning that
|
* Creates a new instance of TileFactoryInfo. Note that TileFactoryInfo should be considered invariate, meaning that
|
||||||
* subclasses should ensure all of the properties stay the same after the class is constructed. Returning different
|
* subclasses should ensure all of the ua.in.smartjava.properties stay the same after the class is constructed. Returning different
|
||||||
* values of getTileSize() for example is considered an error and may result in unexpected behavior.
|
* values of getTileSize() for example is considered an error and may result in unexpected behavior.
|
||||||
* @param name A name to identify this information.
|
* @param name A name to identify this information.
|
||||||
* @param minimumZoomLevel The minimum zoom level
|
* @param minimumZoomLevel The minimum zoom level
|
||||||
@@ -105,7 +105,7 @@ public class TileFactoryInfo
|
|||||||
* @param zparam the z parameter for the tile url
|
* @param zparam the z parameter for the tile url
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* @param xr2l true if tile x is measured from the far left of the map to the far right, or else false if based on
|
* @param xr2l true if tile x is measured from the far left of the ua.in.smartjava.map to the far right, or else false if based on
|
||||||
* the center line.
|
* the center line.
|
||||||
* @param yt2b true if tile y is measured from the top (north pole) to the bottom (south pole) or else false if
|
* @param yt2b true if tile y is measured from the top (north pole) to the bottom (south pole) or else false if
|
||||||
* based on the equator.
|
* based on the equator.
|
||||||
@@ -170,7 +170,7 @@ public class TileFactoryInfo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the total map zoom level
|
* @return the total ua.in.smartjava.map zoom level
|
||||||
*/
|
*/
|
||||||
public int getTotalMapZoom()
|
public int getTotalMapZoom()
|
||||||
{
|
{
|
||||||
@@ -179,7 +179,7 @@ public class TileFactoryInfo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param zoom the zoom level
|
* @param zoom the zoom level
|
||||||
* @return the map width in tiles
|
* @return the ua.in.smartjava.map width in tiles
|
||||||
*/
|
*/
|
||||||
public int getMapWidthInTilesAtZoom(int zoom)
|
public int getMapWidthInTilesAtZoom(int zoom)
|
||||||
{
|
{
|
||||||
@@ -188,7 +188,7 @@ public class TileFactoryInfo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param zoom the zoom level
|
* @param zoom the zoom level
|
||||||
* @return the map center in pixels
|
* @return the ua.in.smartjava.map center in pixels
|
||||||
*/
|
*/
|
||||||
public Point2D getMapCenterInPixelsAtZoom(int zoom)
|
public Point2D getMapCenterInPixelsAtZoom(int zoom)
|
||||||
{
|
{
|
||||||
@@ -211,7 +211,7 @@ public class TileFactoryInfo
|
|||||||
public String getTileUrl(int x, int y, int zoom)
|
public String getTileUrl(int x, int y, int zoom)
|
||||||
{
|
{
|
||||||
// System.out.println("getting tile at zoom: " + zoom);
|
// System.out.println("getting tile at zoom: " + zoom);
|
||||||
// System.out.println("map width at zoom = " + getMapWidthInTilesAtZoom(zoom));
|
// System.out.println("ua.in.smartjava.map width at zoom = " + getMapWidthInTilesAtZoom(zoom));
|
||||||
String ypart = "&" + yparam + "=" + y;
|
String ypart = "&" + yparam + "=" + y;
|
||||||
// System.out.println("ypart = " + ypart);
|
// System.out.println("ypart = " + ypart);
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ import org.jdesktop.swingx.JXMapViewer;
|
|||||||
public interface WaypointRenderer<W>
|
public interface WaypointRenderer<W>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* paint the specified waypoint on the specified map and graphics context
|
* paint the specified waypoint on the specified ua.in.smartjava.map and graphics context
|
||||||
* @param g the graphics2D object
|
* @param g the graphics2D object
|
||||||
* @param map the map
|
* @param map the ua.in.smartjava.map
|
||||||
* @param waypoint the waypoint
|
* @param waypoint the waypoint
|
||||||
*/
|
*/
|
||||||
public void paintWaypoint(Graphics2D g, JXMapViewer map, W waypoint);
|
public void paintWaypoint(Graphics2D g, JXMapViewer map, W waypoint);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ package org.jdesktop.swingx.mapviewer.bmng;
|
|||||||
import org.jdesktop.swingx.mapviewer.TileFactoryInfo;
|
import org.jdesktop.swingx.mapviewer.TileFactoryInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A TileFactoryInfo subclass which knows how to connect to the SwingLabs map server. This server contains 2k resolution
|
* A TileFactoryInfo subclass which knows how to connect to the SwingLabs ua.in.smartjava.map server. This server contains 2k resolution
|
||||||
* Blue Marble data from NASA.
|
* Blue Marble data from NASA.
|
||||||
*/
|
*/
|
||||||
public class SLMapServerInfo extends TileFactoryInfo
|
public class SLMapServerInfo extends TileFactoryInfo
|
||||||
|
|||||||
@@ -59,9 +59,9 @@ public class EmptyTileFactory extends TileFactory
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets an instance of an empty tile for the given tile position and zoom on the world map.
|
* Gets an instance of an empty tile for the given tile position and zoom on the world ua.in.smartjava.map.
|
||||||
* @param x The tile's x position on the world map.
|
* @param x The tile's x position on the world ua.in.smartjava.map.
|
||||||
* @param y The tile's y position on the world map.
|
* @param y The tile's y position on the world ua.in.smartjava.map.
|
||||||
* @param zoom The current zoom level.
|
* @param zoom The current zoom level.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class ESRITileFactory extends DefaultTileFactory
|
|||||||
{
|
{
|
||||||
// "&usrid=&ds=&c=-117.1817|34.0556&sf=52500&fmt=&ocs=";
|
// "&usrid=&ds=&c=-117.1817|34.0556&sf=52500&fmt=&ocs=";
|
||||||
// System.out.println("getting tile at zoom: " + zoom);
|
// System.out.println("getting tile at zoom: " + zoom);
|
||||||
// System.out.println("map width at zoom = " + getMapWidthInTilesAtZoom(zoom));
|
// System.out.println("ua.in.smartjava.map width at zoom = " + getMapWidthInTilesAtZoom(zoom));
|
||||||
|
|
||||||
// provide the center point of the tile, in lat/long coords
|
// provide the center point of the tile, in lat/long coords
|
||||||
int tileY = y;
|
int tileY = y;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public final class GeoUtil
|
|||||||
/**
|
/**
|
||||||
* @param zoom the zoom level
|
* @param zoom the zoom level
|
||||||
* @param info the tile factory info
|
* @param info the tile factory info
|
||||||
* @return the size of the map at the given zoom, in tiles (num tiles tall by num tiles wide)
|
* @return the size of the ua.in.smartjava.map at the given zoom, in tiles (num tiles tall by num tiles wide)
|
||||||
*/
|
*/
|
||||||
public static Dimension getMapSize(int zoom, TileFactoryInfo info)
|
public static Dimension getMapSize(int zoom, TileFactoryInfo info)
|
||||||
{
|
{
|
||||||
@@ -50,17 +50,17 @@ public final class GeoUtil
|
|||||||
{
|
{
|
||||||
// int x = (int)coord.getX();
|
// int x = (int)coord.getX();
|
||||||
// int y = (int)coord.getY();
|
// int y = (int)coord.getY();
|
||||||
// if off the map to the top or left
|
// if off the ua.in.smartjava.map to the top or left
|
||||||
if (x < 0 || y < 0)
|
if (x < 0 || y < 0)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// if of the map to the right
|
// if of the ua.in.smartjava.map to the right
|
||||||
if (info.getMapCenterInPixelsAtZoom(zoomLevel).getX() * 2 <= x * info.getTileSize(zoomLevel))
|
if (info.getMapCenterInPixelsAtZoom(zoomLevel).getX() * 2 <= x * info.getTileSize(zoomLevel))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// if off the map to the bottom
|
// if off the ua.in.smartjava.map to the bottom
|
||||||
if (info.getMapCenterInPixelsAtZoom(zoomLevel).getY() * 2 <= y * info.getTileSize(zoomLevel))
|
if (info.getMapCenterInPixelsAtZoom(zoomLevel).getY() * 2 <= y * info.getTileSize(zoomLevel))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@@ -136,8 +136,8 @@ public final class GeoUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the map bounds.
|
* Gets the ua.in.smartjava.map bounds.
|
||||||
* @param mapViewer The map viewer.
|
* @param mapViewer The ua.in.smartjava.map viewer.
|
||||||
* @return Returns the bounds.
|
* @return Returns the bounds.
|
||||||
*/
|
*/
|
||||||
public static GeoBounds getMapBounds(JXMapViewer mapViewer)
|
public static GeoBounds getMapBounds(JXMapViewer mapViewer)
|
||||||
@@ -147,9 +147,9 @@ public final class GeoUtil
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the bounds as a set of two <code>GeoPosition</code> objects.
|
* Gets the bounds as a set of two <code>GeoPosition</code> objects.
|
||||||
* @param mapViewer The map viewer.
|
* @param mapViewer The ua.in.smartjava.map viewer.
|
||||||
* @return Returns the set of two <code>GeoPosition</code> objects that represent the north west and south east
|
* @return Returns the set of two <code>GeoPosition</code> objects that represent the north west and south east
|
||||||
* corners of the map.
|
* corners of the ua.in.smartjava.map.
|
||||||
*/
|
*/
|
||||||
private static Set<GeoPosition> getMapGeoBounds(JXMapViewer mapViewer)
|
private static Set<GeoPosition> getMapGeoBounds(JXMapViewer mapViewer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ import org.jdesktop.swingx.util.GraphicsUtilities;
|
|||||||
public abstract class AbstractPainter<T> extends AbstractBean implements Painter<T> {
|
public abstract class AbstractPainter<T> extends AbstractBean implements Painter<T> {
|
||||||
/**
|
/**
|
||||||
* An enum representing the possible interpolation values of Bicubic, Bilinear, and
|
* An enum representing the possible interpolation values of Bicubic, Bilinear, and
|
||||||
* Nearest Neighbor. These map to the underlying RenderingHints,
|
* Nearest Neighbor. These ua.in.smartjava.map to the underlying RenderingHints,
|
||||||
* but are easier to use and serialization safe.
|
* but are easier to use and serialization safe.
|
||||||
*/
|
*/
|
||||||
public enum Interpolation {
|
public enum Interpolation {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
|||||||
* <p>A {@link Painter} implementation composed of an array of <code>Painter</code>s.
|
* <p>A {@link Painter} implementation composed of an array of <code>Painter</code>s.
|
||||||
* <code>CompoundPainter</code> provides a means for combining several individual
|
* <code>CompoundPainter</code> provides a means for combining several individual
|
||||||
* <code>Painter</code>s, or groups of them, into one logical unit. Each of the
|
* <code>Painter</code>s, or groups of them, into one logical unit. Each of the
|
||||||
* <code>Painter</code>s are executed in order. BufferedImageOp filter effects can
|
* <code>Painter</code>s are executed in order. BufferedImageOp ua.in.smartjava.filter effects can
|
||||||
* be applied to them together as a whole. The entire set of painting operations
|
* be applied to them together as a whole. The entire set of painting operations
|
||||||
* may be cached together.</p>
|
* may be cached together.</p>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
* Copyright (c) 2006 Romain Guy <romain.guy@mac.com>
|
* Copyright (c) 2006 Romain Guy <romain.guy@mac.com>
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in ua.in.smartjava.source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of ua.in.smartjava.source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
@@ -151,7 +151,7 @@ public class GraphicsUtilities {
|
|||||||
* transparency as the image specified as a parameter. That is, the
|
* transparency as the image specified as a parameter. That is, the
|
||||||
* returned BufferedImage will be compatible with the graphics hardware.
|
* returned BufferedImage will be compatible with the graphics hardware.
|
||||||
* If this method is called in a headless environment, then
|
* If this method is called in a headless environment, then
|
||||||
* the returned BufferedImage will be compatible with the source
|
* the returned BufferedImage will be compatible with the ua.in.smartjava.source
|
||||||
* image.</p>
|
* image.</p>
|
||||||
*
|
*
|
||||||
* @see java.awt.Transparency
|
* @see java.awt.Transparency
|
||||||
@@ -175,7 +175,7 @@ public class GraphicsUtilities {
|
|||||||
* That is, the returned <code>BufferedImage</code> is compatible with
|
* That is, the returned <code>BufferedImage</code> is compatible with
|
||||||
* the graphics hardware. If the method is called in a headless
|
* the graphics hardware. If the method is called in a headless
|
||||||
* environment, then the returned BufferedImage will be compatible with
|
* environment, then the returned BufferedImage will be compatible with
|
||||||
* the source image.</p>
|
* the ua.in.smartjava.source image.</p>
|
||||||
*
|
*
|
||||||
* @see java.awt.Transparency
|
* @see java.awt.Transparency
|
||||||
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
||||||
@@ -203,7 +203,7 @@ public class GraphicsUtilities {
|
|||||||
* height. That is, the returned <code>BufferedImage</code> is compatible with
|
* height. That is, the returned <code>BufferedImage</code> is compatible with
|
||||||
* the graphics hardware. If the method is called in a headless
|
* the graphics hardware. If the method is called in a headless
|
||||||
* environment, then the returned BufferedImage will be compatible with
|
* environment, then the returned BufferedImage will be compatible with
|
||||||
* the source image.</p>
|
* the ua.in.smartjava.source image.</p>
|
||||||
*
|
*
|
||||||
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
||||||
* @see #createCompatibleImage(java.awt.image.BufferedImage, int, int)
|
* @see #createCompatibleImage(java.awt.image.BufferedImage, int, int)
|
||||||
@@ -226,7 +226,7 @@ public class GraphicsUtilities {
|
|||||||
* height. That is, the returned <code>BufferedImage</code> is compatible with
|
* height. That is, the returned <code>BufferedImage</code> is compatible with
|
||||||
* the graphics hardware. If the method is called in a headless
|
* the graphics hardware. If the method is called in a headless
|
||||||
* environment, then the returned BufferedImage will be compatible with
|
* environment, then the returned BufferedImage will be compatible with
|
||||||
* the source image.</p>
|
* the ua.in.smartjava.source image.</p>
|
||||||
*
|
*
|
||||||
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
||||||
* @see #createCompatibleImage(java.awt.image.BufferedImage, int, int)
|
* @see #createCompatibleImage(java.awt.image.BufferedImage, int, int)
|
||||||
@@ -298,7 +298,7 @@ public class GraphicsUtilities {
|
|||||||
* and therefore optimized for fast blitting operations.</p>
|
* and therefore optimized for fast blitting operations.</p>
|
||||||
*
|
*
|
||||||
* <p>If the method is called in a headless environment, then the returned
|
* <p>If the method is called in a headless environment, then the returned
|
||||||
* <code>BufferedImage</code> will be the source image.</p>
|
* <code>BufferedImage</code> will be the ua.in.smartjava.source image.</p>
|
||||||
*
|
*
|
||||||
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
* @see #createCompatibleImage(java.awt.image.BufferedImage)
|
||||||
* @see #createCompatibleImage(java.awt.image.BufferedImage, int, int)
|
* @see #createCompatibleImage(java.awt.image.BufferedImage, int, int)
|
||||||
@@ -335,12 +335,12 @@ public class GraphicsUtilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Returns a thumbnail of a source image. <code>newSize</code> defines
|
* <p>Returns a thumbnail of a ua.in.smartjava.source image. <code>newSize</code> defines
|
||||||
* the length of the longest dimension of the thumbnail. The other
|
* the length of the longest dimension of the thumbnail. The other
|
||||||
* dimension is then computed according to the dimensions ratio of the
|
* dimension is then computed according to the dimensions ratio of the
|
||||||
* original picture.</p>
|
* original picture.</p>
|
||||||
* <p>This method favors speed over quality. When the new size is less than
|
* <p>This method favors speed over quality. When the new size is less than
|
||||||
* half the longest dimension of the source image,
|
* half the longest dimension of the ua.in.smartjava.source image,
|
||||||
* {@link #createThumbnail(BufferedImage, int)} or
|
* {@link #createThumbnail(BufferedImage, int)} or
|
||||||
* {@link #createThumbnail(BufferedImage, int, int)} should be used instead
|
* {@link #createThumbnail(BufferedImage, int, int)} should be used instead
|
||||||
* to ensure the quality of the result without sacrificing too much
|
* to ensure the quality of the result without sacrificing too much
|
||||||
@@ -349,7 +349,7 @@ public class GraphicsUtilities {
|
|||||||
* @see #createThumbnailFast(java.awt.image.BufferedImage, int, int)
|
* @see #createThumbnailFast(java.awt.image.BufferedImage, int, int)
|
||||||
* @see #createThumbnail(java.awt.image.BufferedImage, int)
|
* @see #createThumbnail(java.awt.image.BufferedImage, int)
|
||||||
* @see #createThumbnail(java.awt.image.BufferedImage, int, int)
|
* @see #createThumbnail(java.awt.image.BufferedImage, int, int)
|
||||||
* @param image the source image
|
* @param image the ua.in.smartjava.source image
|
||||||
* @param newSize the length of the largest dimension of the thumbnail
|
* @param newSize the length of the largest dimension of the thumbnail
|
||||||
* @return a new compatible <code>BufferedImage</code> containing a
|
* @return a new compatible <code>BufferedImage</code> containing a
|
||||||
* thumbnail of <code>image</code>
|
* thumbnail of <code>image</code>
|
||||||
@@ -403,9 +403,9 @@ public class GraphicsUtilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Returns a thumbnail of a source image.</p>
|
* <p>Returns a thumbnail of a ua.in.smartjava.source image.</p>
|
||||||
* <p>This method favors speed over quality. When the new size is less than
|
* <p>This method favors speed over quality. When the new size is less than
|
||||||
* half the longest dimension of the source image,
|
* half the longest dimension of the ua.in.smartjava.source image,
|
||||||
* {@link #createThumbnail(BufferedImage, int)} or
|
* {@link #createThumbnail(BufferedImage, int)} or
|
||||||
* {@link #createThumbnail(BufferedImage, int, int)} should be used instead
|
* {@link #createThumbnail(BufferedImage, int, int)} should be used instead
|
||||||
* to ensure the quality of the result without sacrificing too much
|
* to ensure the quality of the result without sacrificing too much
|
||||||
@@ -414,7 +414,7 @@ public class GraphicsUtilities {
|
|||||||
* @see #createThumbnailFast(java.awt.image.BufferedImage, int)
|
* @see #createThumbnailFast(java.awt.image.BufferedImage, int)
|
||||||
* @see #createThumbnail(java.awt.image.BufferedImage, int)
|
* @see #createThumbnail(java.awt.image.BufferedImage, int)
|
||||||
* @see #createThumbnail(java.awt.image.BufferedImage, int, int)
|
* @see #createThumbnail(java.awt.image.BufferedImage, int, int)
|
||||||
* @param image the source image
|
* @param image the ua.in.smartjava.source image
|
||||||
* @param newWidth the width of the thumbnail
|
* @param newWidth the width of the thumbnail
|
||||||
* @param newHeight the height of the thumbnail
|
* @param newHeight the height of the thumbnail
|
||||||
* @return a new compatible <code>BufferedImage</code> containing a
|
* @return a new compatible <code>BufferedImage</code> containing a
|
||||||
@@ -451,20 +451,20 @@ public class GraphicsUtilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Returns a thumbnail of a source image. <code>newSize</code> defines
|
* <p>Returns a thumbnail of a ua.in.smartjava.source image. <code>newSize</code> defines
|
||||||
* the length of the longest dimension of the thumbnail. The other
|
* the length of the longest dimension of the thumbnail. The other
|
||||||
* dimension is then computed according to the dimensions ratio of the
|
* dimension is then computed according to the dimensions ratio of the
|
||||||
* original picture.</p>
|
* original picture.</p>
|
||||||
* <p>This method offers a good trade-off between speed and quality.
|
* <p>This method offers a good trade-off between speed and quality.
|
||||||
* The result looks better than
|
* The result looks better than
|
||||||
* {@link #createThumbnailFast(java.awt.image.BufferedImage, int)} when
|
* {@link #createThumbnailFast(java.awt.image.BufferedImage, int)} when
|
||||||
* the new size is less than half the longest dimension of the source
|
* the new size is less than half the longest dimension of the ua.in.smartjava.source
|
||||||
* image, yet the rendering speed is almost similar.</p>
|
* image, yet the rendering speed is almost similar.</p>
|
||||||
*
|
*
|
||||||
* @see #createThumbnailFast(java.awt.image.BufferedImage, int, int)
|
* @see #createThumbnailFast(java.awt.image.BufferedImage, int, int)
|
||||||
* @see #createThumbnailFast(java.awt.image.BufferedImage, int)
|
* @see #createThumbnailFast(java.awt.image.BufferedImage, int)
|
||||||
* @see #createThumbnail(java.awt.image.BufferedImage, int, int)
|
* @see #createThumbnail(java.awt.image.BufferedImage, int, int)
|
||||||
* @param image the source image
|
* @param image the ua.in.smartjava.source image
|
||||||
* @param newSize the length of the largest dimension of the thumbnail
|
* @param newSize the length of the largest dimension of the thumbnail
|
||||||
* @return a new compatible <code>BufferedImage</code> containing a
|
* @return a new compatible <code>BufferedImage</code> containing a
|
||||||
* thumbnail of <code>image</code>
|
* thumbnail of <code>image</code>
|
||||||
@@ -567,17 +567,17 @@ public class GraphicsUtilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Returns a thumbnail of a source image.</p>
|
* <p>Returns a thumbnail of a ua.in.smartjava.source image.</p>
|
||||||
* <p>This method offers a good trade-off between speed and quality.
|
* <p>This method offers a good trade-off between speed and quality.
|
||||||
* The result looks better than
|
* The result looks better than
|
||||||
* {@link #createThumbnailFast(java.awt.image.BufferedImage, int)} when
|
* {@link #createThumbnailFast(java.awt.image.BufferedImage, int)} when
|
||||||
* the new size is less than half the longest dimension of the source
|
* the new size is less than half the longest dimension of the ua.in.smartjava.source
|
||||||
* image, yet the rendering speed is almost similar.</p>
|
* image, yet the rendering speed is almost similar.</p>
|
||||||
*
|
*
|
||||||
* @see #createThumbnailFast(java.awt.image.BufferedImage, int)
|
* @see #createThumbnailFast(java.awt.image.BufferedImage, int)
|
||||||
* @see #createThumbnailFast(java.awt.image.BufferedImage, int, int)
|
* @see #createThumbnailFast(java.awt.image.BufferedImage, int, int)
|
||||||
* @see #createThumbnail(java.awt.image.BufferedImage, int)
|
* @see #createThumbnail(java.awt.image.BufferedImage, int)
|
||||||
* @param image the source image
|
* @param image the ua.in.smartjava.source image
|
||||||
* @param newWidth the width of the thumbnail
|
* @param newWidth the width of the thumbnail
|
||||||
* @param newHeight the height of the thumbnail
|
* @param newHeight the height of the thumbnail
|
||||||
* @return a new compatible <code>BufferedImage</code> containing a
|
* @return a new compatible <code>BufferedImage</code> containing a
|
||||||
@@ -678,7 +678,7 @@ public class GraphicsUtilities {
|
|||||||
* an image of type different from <code>BufferedImage.TYPE_INT_ARGB</code>
|
* an image of type different from <code>BufferedImage.TYPE_INT_ARGB</code>
|
||||||
* and <code>BufferedImage.TYPE_INT_RGB</code> will unmanage the image.</p>
|
* and <code>BufferedImage.TYPE_INT_RGB</code> will unmanage the image.</p>
|
||||||
*
|
*
|
||||||
* @param img the source image
|
* @param img the ua.in.smartjava.source image
|
||||||
* @param x the x location at which to start grabbing pixels
|
* @param x the x location at which to start grabbing pixels
|
||||||
* @param y the y location at which to start grabbing pixels
|
* @param y the y location at which to start grabbing pixels
|
||||||
* @param w the width of the rectangle of pixels to grab
|
* @param w the width of the rectangle of pixels to grab
|
||||||
|
|||||||
@@ -17,22 +17,22 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package playlist;
|
package playlist;
|
||||||
|
|
||||||
import alias.AliasEvent;
|
import ua.in.smartjava.alias.AliasEvent;
|
||||||
import alias.AliasModel;
|
import ua.in.smartjava.alias.AliasModel;
|
||||||
import audio.broadcast.BroadcastEvent;
|
import ua.in.smartjava.audio.broadcast.BroadcastEvent;
|
||||||
import audio.broadcast.BroadcastModel;
|
import ua.in.smartjava.audio.broadcast.BroadcastModel;
|
||||||
import controller.channel.Channel.ChannelType;
|
import ua.in.smartjava.controller.channel.Channel.ChannelType;
|
||||||
import controller.channel.ChannelEvent;
|
import ua.in.smartjava.controller.channel.ChannelEvent;
|
||||||
import controller.channel.ChannelEventListener;
|
import ua.in.smartjava.controller.channel.ChannelEventListener;
|
||||||
import controller.channel.ChannelModel;
|
import ua.in.smartjava.controller.channel.ChannelModel;
|
||||||
import controller.channel.map.ChannelMapEvent;
|
import ua.in.smartjava.controller.channel.map.ChannelMapEvent;
|
||||||
import controller.channel.map.ChannelMapModel;
|
import ua.in.smartjava.controller.channel.map.ChannelMapModel;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import playlist.version1.PlaylistConverterV1ToV2;
|
import playlist.version1.PlaylistConverterV1ToV2;
|
||||||
import properties.SystemProperties;
|
import ua.in.smartjava.properties.SystemProperties;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
import util.ThreadPool;
|
import ua.in.smartjava.util.ThreadPool;
|
||||||
|
|
||||||
import javax.xml.bind.JAXBContext;
|
import javax.xml.bind.JAXBContext;
|
||||||
import javax.xml.bind.JAXBException;
|
import javax.xml.bind.JAXBException;
|
||||||
@@ -65,8 +65,8 @@ public class PlaylistManager implements ChannelEventListener
|
|||||||
private boolean mPlaylistLoading = false;
|
private boolean mPlaylistLoading = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Playlist manager - manages all channel configurations, channel maps, and
|
* Playlist manager - manages all ua.in.smartjava.channel configurations, ua.in.smartjava.channel maps, and
|
||||||
* alias lists and handles loading or persisting to a playlist.xml file
|
* ua.in.smartjava.alias lists and handles loading or persisting to a playlist.xml file
|
||||||
*
|
*
|
||||||
* Monitors playlist changes to automatically save configuration changes
|
* Monitors playlist changes to automatically save configuration changes
|
||||||
* after they occur.
|
* after they occur.
|
||||||
@@ -80,7 +80,7 @@ public class PlaylistManager implements ChannelEventListener
|
|||||||
mChannelModel = channelModel;
|
mChannelModel = channelModel;
|
||||||
mChannelMapModel = channelMapModel;
|
mChannelMapModel = channelMapModel;
|
||||||
|
|
||||||
//Register for alias, channel and channel map events so that we can
|
//Register for ua.in.smartjava.alias, ua.in.smartjava.channel and ua.in.smartjava.channel ua.in.smartjava.map events so that we can
|
||||||
//save the playlist when there are any changes
|
//save the playlist when there are any changes
|
||||||
mChannelModel.addListener(this);
|
mChannelModel.addListener(this);
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ public class PlaylistManager implements ChannelEventListener
|
|||||||
@Override
|
@Override
|
||||||
public void receive(AliasEvent t)
|
public void receive(AliasEvent t)
|
||||||
{
|
{
|
||||||
//Save the playlist for all alias events
|
//Save the playlist for all ua.in.smartjava.alias events
|
||||||
schedulePlaylistSave();
|
schedulePlaylistSave();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -99,7 +99,7 @@ public class PlaylistManager implements ChannelEventListener
|
|||||||
@Override
|
@Override
|
||||||
public void receive(ChannelMapEvent t)
|
public void receive(ChannelMapEvent t)
|
||||||
{
|
{
|
||||||
//Save the playlist for all channel map events
|
//Save the playlist for all ua.in.smartjava.channel ua.in.smartjava.map events
|
||||||
schedulePlaylistSave();
|
schedulePlaylistSave();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -188,7 +188,7 @@ public class PlaylistManager implements ChannelEventListener
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Channel event listener method. Monitors channel events for events that indicate that the playlist has changed
|
* Channel event listener method. Monitors ua.in.smartjava.channel events for events that indicate that the playlist has changed
|
||||||
* and queues automatic playlist saving.
|
* and queues automatic playlist saving.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -17,10 +17,10 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package playlist;
|
package playlist;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import audio.broadcast.BroadcastConfiguration;
|
import ua.in.smartjava.audio.broadcast.BroadcastConfiguration;
|
||||||
import controller.channel.Channel;
|
import ua.in.smartjava.controller.channel.Channel;
|
||||||
import controller.channel.map.ChannelMap;
|
import ua.in.smartjava.controller.channel.map.ChannelMap;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlElement;
|
|||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
|
|
||||||
import alias.AliasList;
|
import ua.in.smartjava.alias.AliasList;
|
||||||
|
|
||||||
@XmlSeeAlso( { AliasList.class} )
|
@XmlSeeAlso( { AliasList.class} )
|
||||||
@XmlRootElement( name = "alias_directory" )
|
@XmlRootElement( name = "alias_directory" )
|
||||||
@@ -72,7 +72,7 @@ public class AliasDirectory
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the named alias list, or returns an empty alias list
|
* Gets the named ua.in.smartjava.alias list, or returns an empty ua.in.smartjava.alias list
|
||||||
*/
|
*/
|
||||||
public AliasListOld getAliasList( String name )
|
public AliasListOld getAliasList( String name )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,25 +17,25 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package playlist.version1;
|
package playlist.version1;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import alias.action.AliasAction;
|
import ua.in.smartjava.alias.action.AliasAction;
|
||||||
import alias.action.beep.BeepAction;
|
import ua.in.smartjava.alias.action.beep.BeepAction;
|
||||||
import alias.action.clip.ClipAction;
|
import ua.in.smartjava.alias.action.clip.ClipAction;
|
||||||
import alias.action.script.ScriptAction;
|
import ua.in.smartjava.alias.action.script.ScriptAction;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.esn.Esn;
|
import ua.in.smartjava.alias.id.esn.Esn;
|
||||||
import alias.id.fleetsync.FleetsyncID;
|
import ua.in.smartjava.alias.id.fleetsync.FleetsyncID;
|
||||||
import alias.id.lojack.LoJackFunctionAndID;
|
import ua.in.smartjava.alias.id.lojack.LoJackFunctionAndID;
|
||||||
import alias.id.mdc.MDC1200ID;
|
import ua.in.smartjava.alias.id.mdc.MDC1200ID;
|
||||||
import alias.id.mobileID.Min;
|
import ua.in.smartjava.alias.id.mobileID.Min;
|
||||||
import alias.id.mpt1327.MPT1327ID;
|
import ua.in.smartjava.alias.id.mpt1327.MPT1327ID;
|
||||||
import alias.id.nonrecordable.NonRecordable;
|
import ua.in.smartjava.alias.id.nonrecordable.NonRecordable;
|
||||||
import alias.id.priority.Priority;
|
import ua.in.smartjava.alias.id.priority.Priority;
|
||||||
import alias.id.siteID.SiteID;
|
import ua.in.smartjava.alias.id.siteID.SiteID;
|
||||||
import alias.id.status.StatusID;
|
import ua.in.smartjava.alias.id.status.StatusID;
|
||||||
import alias.id.talkgroup.TalkgroupID;
|
import ua.in.smartjava.alias.id.talkgroup.TalkgroupID;
|
||||||
import alias.id.uniqueID.UniqueID;
|
import ua.in.smartjava.alias.id.uniqueID.UniqueID;
|
||||||
import module.decode.lj1200.LJ1200Message.Function;
|
import ua.in.smartjava.module.decode.lj1200.LJ1200Message.Function;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.ArrayList;
|
|||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
|
|
||||||
import controller.channel.map.ChannelMap;
|
import ua.in.smartjava.controller.channel.map.ChannelMap;
|
||||||
|
|
||||||
@XmlSeeAlso( ChannelMap.class )
|
@XmlSeeAlso( ChannelMap.class )
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@@ -62,7 +62,7 @@ public class ChannelMapList
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the named channel map, or returns an empty map
|
* Gets the named ua.in.smartjava.channel ua.in.smartjava.map, or returns an empty ua.in.smartjava.map
|
||||||
*/
|
*/
|
||||||
public ChannelMap getChannelMap( String name )
|
public ChannelMap getChannelMap( String name )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import java.util.ArrayList;
|
|||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public class Group
|
public class Group
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ import org.slf4j.Logger;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import playlist.PlaylistV2;
|
import playlist.PlaylistV2;
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import controller.channel.Channel;
|
import ua.in.smartjava.controller.channel.Channel;
|
||||||
import controller.channel.map.ChannelMap;
|
import ua.in.smartjava.controller.channel.map.ChannelMap;
|
||||||
|
|
||||||
public class PlaylistConverterV1ToV2
|
public class PlaylistConverterV1ToV2
|
||||||
{
|
{
|
||||||
@@ -131,7 +131,7 @@ public class PlaylistConverterV1ToV2
|
|||||||
|
|
||||||
if( playlistVersion1.hasChannelMapList() )
|
if( playlistVersion1.hasChannelMapList() )
|
||||||
{
|
{
|
||||||
//Move the channel maps out of the channel map list
|
//Move the ua.in.smartjava.channel maps out of the ua.in.smartjava.channel ua.in.smartjava.map list
|
||||||
ChannelMapList channelMapList = playlistVersion1.getChannelMapList();
|
ChannelMapList channelMapList = playlistVersion1.getChannelMapList();
|
||||||
|
|
||||||
List<ChannelMap> channelMaps = channelMapList.getChannelMap();
|
List<ChannelMap> channelMaps = channelMapList.getChannelMap();
|
||||||
@@ -147,7 +147,7 @@ public class PlaylistConverterV1ToV2
|
|||||||
mLog.info( "Converted [" + mConvertedPlaylist.getAliases().size() +
|
mLog.info( "Converted [" + mConvertedPlaylist.getAliases().size() +
|
||||||
"] aliases to new playlist format" );
|
"] aliases to new playlist format" );
|
||||||
mLog.info( "Converted [" + mConvertedPlaylist.getChannelMaps().size() +
|
mLog.info( "Converted [" + mConvertedPlaylist.getChannelMaps().size() +
|
||||||
"] channel maps to new playlist format" );
|
"] ua.in.smartjava.channel maps to new playlist format" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ import javax.xml.bind.annotation.XmlElement;
|
|||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import controller.channel.Channel;
|
import ua.in.smartjava.controller.channel.Channel;
|
||||||
|
|
||||||
@XmlSeeAlso( { AliasDirectory.class,
|
@XmlSeeAlso( { AliasDirectory.class,
|
||||||
Alias.class,
|
Alias.class,
|
||||||
@@ -31,7 +31,7 @@ import controller.channel.Channel;
|
|||||||
SystemList.class } )
|
SystemList.class } )
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@XmlRootElement( name = "playlist" )
|
@XmlRootElement( name = "playlist")
|
||||||
public class PlaylistV1
|
public class PlaylistV1
|
||||||
{
|
{
|
||||||
//Note: these are for legacy version 1 format playlists
|
//Note: these are for legacy version 1 format playlists
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import javax.xml.bind.annotation.XmlAttribute;
|
|||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
|
|
||||||
import controller.channel.Channel;
|
import ua.in.smartjava.controller.channel.Channel;
|
||||||
|
|
||||||
@XmlSeeAlso( { Channel.class } )
|
@XmlSeeAlso( { Channel.class } )
|
||||||
@XmlRootElement( name = "site" )
|
@XmlRootElement( name = "site" )
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import javax.swing.JColorChooser;
|
|||||||
import javax.swing.JMenuItem;
|
import javax.swing.JMenuItem;
|
||||||
|
|
||||||
import settings.ColorSetting.ColorSettingName;
|
import settings.ColorSetting.ColorSettingName;
|
||||||
import util.ColorIcon;
|
import ua.in.smartjava.util.ColorIcon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JMenuItem for selecting a color and automatically setting (saving) the
|
* JMenuItem for selecting a color and automatically setting (saving) the
|
||||||
|
|||||||
@@ -24,17 +24,17 @@ import javax.xml.bind.annotation.XmlElement;
|
|||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
|
|
||||||
import map.DefaultIcon;
|
import ua.in.smartjava.map.DefaultIcon;
|
||||||
import map.MapIcon;
|
import ua.in.smartjava.map.MapIcon;
|
||||||
import settings.ColorSetting.ColorSettingName;
|
import settings.ColorSetting.ColorSettingName;
|
||||||
import source.recording.RecordingConfiguration;
|
import ua.in.smartjava.source.recording.RecordingConfiguration;
|
||||||
import source.tuner.airspy.AirspyTunerConfiguration;
|
import ua.in.smartjava.source.tuner.airspy.AirspyTunerConfiguration;
|
||||||
import source.tuner.configuration.TunerConfiguration;
|
import ua.in.smartjava.source.tuner.configuration.TunerConfiguration;
|
||||||
import source.tuner.fcd.proV1.FCD1TunerConfiguration;
|
import ua.in.smartjava.source.tuner.fcd.proV1.FCD1TunerConfiguration;
|
||||||
import source.tuner.fcd.proplusV2.FCD2TunerConfiguration;
|
import ua.in.smartjava.source.tuner.fcd.proplusV2.FCD2TunerConfiguration;
|
||||||
import source.tuner.hackrf.HackRFTunerConfiguration;
|
import ua.in.smartjava.source.tuner.hackrf.HackRFTunerConfiguration;
|
||||||
import source.tuner.rtl.e4k.E4KTunerConfiguration;
|
import ua.in.smartjava.source.tuner.rtl.e4k.E4KTunerConfiguration;
|
||||||
import source.tuner.rtl.r820t.R820TTunerConfiguration;
|
import ua.in.smartjava.source.tuner.rtl.r820t.R820TTunerConfiguration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Support for persisting via JAXB all configured SDRTrunk settings
|
* Support for persisting via JAXB all configured SDRTrunk settings
|
||||||
|
|||||||
@@ -20,13 +20,13 @@ package settings;
|
|||||||
import org.jdesktop.swingx.mapviewer.GeoPosition;
|
import org.jdesktop.swingx.mapviewer.GeoPosition;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import properties.SystemProperties;
|
import ua.in.smartjava.properties.SystemProperties;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
import settings.ColorSetting.ColorSettingName;
|
import settings.ColorSetting.ColorSettingName;
|
||||||
import source.recording.RecordingConfiguration;
|
import ua.in.smartjava.source.recording.RecordingConfiguration;
|
||||||
import source.tuner.configuration.TunerConfigurationEvent;
|
import ua.in.smartjava.source.tuner.configuration.TunerConfigurationEvent;
|
||||||
import source.tuner.configuration.TunerConfigurationModel;
|
import ua.in.smartjava.source.tuner.configuration.TunerConfigurationModel;
|
||||||
import util.ThreadPool;
|
import ua.in.smartjava.util.ThreadPool;
|
||||||
|
|
||||||
import javax.xml.bind.JAXBContext;
|
import javax.xml.bind.JAXBContext;
|
||||||
import javax.xml.bind.JAXBException;
|
import javax.xml.bind.JAXBException;
|
||||||
@@ -305,7 +305,7 @@ public class SettingsManager implements Listener<TunerConfigurationEvent>
|
|||||||
catch(JAXBException e)
|
catch(JAXBException e)
|
||||||
{
|
{
|
||||||
mLog.error("SettingsManager - jaxb exception while saving " +
|
mLog.error("SettingsManager - jaxb exception while saving " +
|
||||||
"settings", e);
|
"settings", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
@@ -360,7 +360,7 @@ public class SettingsManager implements Listener<TunerConfigurationEvent>
|
|||||||
catch(JAXBException e)
|
catch(JAXBException e)
|
||||||
{
|
{
|
||||||
mLog.error("SettingsManager - jaxb exception while loading " +
|
mLog.error("SettingsManager - jaxb exception while loading " +
|
||||||
"settings", e);
|
"settings", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
package source;
|
|
||||||
|
|
||||||
import sample.Provider;
|
|
||||||
import sample.SampleType;
|
|
||||||
import sample.complex.ComplexBuffer;
|
|
||||||
|
|
||||||
public abstract class ComplexSource extends Source implements Provider<ComplexBuffer>
|
|
||||||
{
|
|
||||||
public ComplexSource()
|
|
||||||
{
|
|
||||||
super( SampleType.COMPLEX );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
package source;
|
|
||||||
|
|
||||||
import sample.Provider;
|
|
||||||
import sample.SampleType;
|
|
||||||
import sample.real.RealBuffer;
|
|
||||||
|
|
||||||
|
|
||||||
public abstract class RealSource extends Source implements Provider<RealBuffer>
|
|
||||||
{
|
|
||||||
public RealSource()
|
|
||||||
{
|
|
||||||
super( SampleType.REAL );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
package source.tuner;
|
|
||||||
|
|
||||||
import java.util.concurrent.RejectedExecutionException;
|
|
||||||
|
|
||||||
import source.SourceException;
|
|
||||||
|
|
||||||
public interface TunerChannelProvider
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Returns a tuner frequency channel source, tuned to the correct frequency
|
|
||||||
*
|
|
||||||
* @param frequency - desired frequency
|
|
||||||
*
|
|
||||||
* @return - source for 48k sample rate
|
|
||||||
*/
|
|
||||||
public abstract TunerChannelSource getChannel( TunerChannel channel )
|
|
||||||
throws RejectedExecutionException, SourceException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Releases the tuned channel resources
|
|
||||||
*
|
|
||||||
* @param channel - previously obtained tuner channel
|
|
||||||
*/
|
|
||||||
public abstract void releaseChannel( TunerChannelSource source );
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -15,11 +15,10 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
@@ -30,15 +29,15 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
import javax.xml.bind.annotation.XmlTransient;
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
import alias.action.AliasAction;
|
import ua.in.smartjava.alias.action.AliasAction;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
import alias.id.broadcast.BroadcastChannel;
|
import ua.in.smartjava.alias.id.broadcast.BroadcastChannel;
|
||||||
import alias.id.nonrecordable.NonRecordable;
|
import ua.in.smartjava.alias.id.nonrecordable.NonRecordable;
|
||||||
import alias.id.priority.Priority;
|
import ua.in.smartjava.alias.id.priority.Priority;
|
||||||
|
|
||||||
@XmlSeeAlso( { AliasID.class, AliasAction.class } )
|
@XmlSeeAlso( { AliasID.class, AliasAction.class } )
|
||||||
@XmlRootElement( name = "alias" )
|
@XmlRootElement( name = "ua/in/smartjava/alias")
|
||||||
public class Alias
|
public class Alias
|
||||||
{
|
{
|
||||||
private String mList;
|
private String mList;
|
||||||
@@ -181,13 +180,13 @@ public class Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform any validation/cleanup actions on this alias.
|
* Perform any validation/cleanup actions on this ua.in.smartjava.alias.
|
||||||
*/
|
*/
|
||||||
public void validate()
|
public void validate()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns the priority level of this alias, if defined, or the default priority
|
* Returns the priority level of this ua.in.smartjava.alias, if defined, or the default priority
|
||||||
*/
|
*/
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
public int getCallPriority()
|
public int getCallPriority()
|
||||||
@@ -241,7 +240,7 @@ public class Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inspects the alias for a non-recordable alias id. Default is true;
|
* Inspects the ua.in.smartjava.alias for a non-recordable ua.in.smartjava.alias id. Default is true;
|
||||||
*/
|
*/
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
public boolean isRecordable()
|
public boolean isRecordable()
|
||||||
@@ -258,7 +257,7 @@ public class Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets or removes the non-recordable alias ID for this alias.
|
* Sets or removes the non-recordable ua.in.smartjava.alias ID for this ua.in.smartjava.alias.
|
||||||
*/
|
*/
|
||||||
public void setRecordable( boolean recordable )
|
public void setRecordable( boolean recordable )
|
||||||
{
|
{
|
||||||
@@ -295,7 +294,7 @@ public class Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inspects the alias for broadcast channel/streamable alias ids. Default is false;
|
* Inspects the ua.in.smartjava.alias for broadcast ua.in.smartjava.channel/streamable ua.in.smartjava.alias ids. Default is false;
|
||||||
*/
|
*/
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
public boolean isStreamable()
|
public boolean isStreamable()
|
||||||
@@ -312,7 +311,7 @@ public class Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of broadcast channels specified for this alias.
|
* List of broadcast channels specified for this ua.in.smartjava.alias.
|
||||||
*/
|
*/
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
public Set<BroadcastChannel> getBroadcastChannels()
|
public Set<BroadcastChannel> getBroadcastChannels()
|
||||||
@@ -331,7 +330,7 @@ public class Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this alias contains a broadcast channel alias id with the channel name.
|
* Indicates if this ua.in.smartjava.alias contains a broadcast ua.in.smartjava.channel ua.in.smartjava.alias id with the ua.in.smartjava.channel name.
|
||||||
*/
|
*/
|
||||||
public boolean hasBroadcastChannel(String channel)
|
public boolean hasBroadcastChannel(String channel)
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import audio.broadcast.BroadcastModel;
|
import ua.in.smartjava.audio.broadcast.BroadcastModel;
|
||||||
import com.jidesoft.swing.JideSplitPane;
|
import com.jidesoft.swing.JideSplitPane;
|
||||||
import gui.editor.Editor;
|
import ua.in.smartjava.gui.editor.Editor;
|
||||||
import icon.IconManager;
|
import ua.in.smartjava.icon.IconManager;
|
||||||
import net.coderazzi.filters.gui.AutoChoices;
|
import net.coderazzi.filters.gui.AutoChoices;
|
||||||
import net.coderazzi.filters.gui.TableFilterHeader;
|
import net.coderazzi.filters.gui.TableFilterHeader;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
@@ -83,17 +83,17 @@ public class AliasController extends JPanel
|
|||||||
new MigLayout("insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]"));
|
new MigLayout("insets 0 0 0 0", "[grow,fill][grow,fill][grow,fill]", "[]"));
|
||||||
|
|
||||||
mNewButton.addActionListener(this);
|
mNewButton.addActionListener(this);
|
||||||
mNewButton.setToolTipText("Adds a new alias");
|
mNewButton.setToolTipText("Adds a new ua.in.smartjava.alias");
|
||||||
buttonsPanel.add(mNewButton);
|
buttonsPanel.add(mNewButton);
|
||||||
|
|
||||||
mCopyButton.addActionListener(this);
|
mCopyButton.addActionListener(this);
|
||||||
mCopyButton.setEnabled(false);
|
mCopyButton.setEnabled(false);
|
||||||
mCopyButton.setToolTipText("Creates a copy of the currently selected alias and adds it");
|
mCopyButton.setToolTipText("Creates a copy of the currently selected ua.in.smartjava.alias and adds it");
|
||||||
buttonsPanel.add(mCopyButton);
|
buttonsPanel.add(mCopyButton);
|
||||||
|
|
||||||
mDeleteButton.addActionListener(this);
|
mDeleteButton.addActionListener(this);
|
||||||
mDeleteButton.setEnabled(false);
|
mDeleteButton.setEnabled(false);
|
||||||
mDeleteButton.setToolTipText("Deletes the currently selected alias");
|
mDeleteButton.setToolTipText("Deletes the currently selected ua.in.smartjava.alias");
|
||||||
buttonsPanel.add(mDeleteButton);
|
buttonsPanel.add(mDeleteButton);
|
||||||
|
|
||||||
JPanel listAndButtonsPanel = new JPanel();
|
JPanel listAndButtonsPanel = new JPanel();
|
||||||
@@ -114,7 +114,7 @@ public class AliasController extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the editor argument as the currently visible alias editor
|
* Sets the editor argument as the currently visible ua.in.smartjava.alias editor
|
||||||
*/
|
*/
|
||||||
private void setEditor(Editor<?> editor)
|
private void setEditor(Editor<?> editor)
|
||||||
{
|
{
|
||||||
@@ -208,16 +208,16 @@ public class AliasController extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the alias to the alias table/model and scrolls the view it
|
* Adds the ua.in.smartjava.alias to the ua.in.smartjava.alias table/model and scrolls the view it
|
||||||
*/
|
*/
|
||||||
private void addAlias(Alias alias)
|
private void addAlias(Alias alias)
|
||||||
{
|
{
|
||||||
//HACK: when inserting a row to the model, the JTable gets
|
//HACK: when inserting a row to the model, the JTable gets
|
||||||
//notified and attempts to tell the coderazzi table filter
|
//notified and attempts to tell the coderazzi table ua.in.smartjava.filter
|
||||||
//adaptive choices filter to refresh before the table filter is
|
//adaptive choices ua.in.smartjava.filter to refresh before the table ua.in.smartjava.filter is
|
||||||
//notified of the row additions, causing an index out of bounds
|
//notified of the row additions, causing an index out of bounds
|
||||||
//exception. We turn off adaptive choices temporarily, add the
|
//exception. We turn off adaptive choices temporarily, add the
|
||||||
//channel, and turn on adaptive choices again.
|
//ua.in.smartjava.channel, and turn on adaptive choices again.
|
||||||
mTableFilterHeader.setAdaptiveChoices(false);
|
mTableFilterHeader.setAdaptiveChoices(false);
|
||||||
|
|
||||||
int index = mAliasModel.addAlias(alias);
|
int index = mAliasModel.addAlias(alias);
|
||||||
@@ -278,7 +278,7 @@ public class AliasController extends JPanel
|
|||||||
if(toDelete != null && !toDelete.isEmpty())
|
if(toDelete != null && !toDelete.isEmpty())
|
||||||
{
|
{
|
||||||
String title = toDelete.size() == 1 ? "Delete Alias?" : "Delete Aliases?";
|
String title = toDelete.size() == 1 ? "Delete Alias?" : "Delete Aliases?";
|
||||||
String prompt = toDelete.size() == 1 ? "Do you want to delete this alias?" :
|
String prompt = toDelete.size() == 1 ? "Do you want to delete this ua.in.smartjava.alias?" :
|
||||||
"Do you want to delete these " + toDelete.size() + " aliases?";
|
"Do you want to delete these " + toDelete.size() + " aliases?";
|
||||||
|
|
||||||
int choice = JOptionPane.showConfirmDialog(AliasController.this,
|
int choice = JOptionPane.showConfirmDialog(AliasController.this,
|
||||||
@@ -322,7 +322,7 @@ public class AliasController extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays cell's icon and name
|
* Displays cell's ua.in.smartjava.icon and name
|
||||||
*/
|
*/
|
||||||
public class IconCellRenderer extends DefaultTableCellRenderer
|
public class IconCellRenderer extends DefaultTableCellRenderer
|
||||||
{
|
{
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import audio.broadcast.BroadcastModel;
|
import ua.in.smartjava.audio.broadcast.BroadcastModel;
|
||||||
import gui.editor.Editor;
|
import ua.in.smartjava.gui.editor.Editor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
@@ -28,12 +28,11 @@ import javax.swing.JButton;
|
|||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
import javax.swing.JSeparator;
|
import javax.swing.JSeparator;
|
||||||
|
|
||||||
import icon.IconManager;
|
import ua.in.smartjava.icon.IconManager;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
import settings.SettingsManager;
|
import ua.in.smartjava.alias.action.AliasActionEditor;
|
||||||
import alias.action.AliasActionEditor;
|
import ua.in.smartjava.alias.id.AliasIdentifierEditor;
|
||||||
import alias.id.AliasIdentifierEditor;
|
|
||||||
|
|
||||||
import com.jidesoft.swing.JideTabbedPane;
|
import com.jidesoft.swing.JideTabbedPane;
|
||||||
|
|
||||||
@@ -42,7 +41,7 @@ public class AliasEditor extends Editor<Alias>
|
|||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private static final String DEFAULT_NAME = "select an alias";
|
private static final String DEFAULT_NAME = "select an ua.in.smartjava.alias";
|
||||||
|
|
||||||
private AliasModel mAliasModel;
|
private AliasModel mAliasModel;
|
||||||
|
|
||||||
@@ -105,12 +104,12 @@ public class AliasEditor extends Editor<Alias>
|
|||||||
|
|
||||||
//Playlist management buttons
|
//Playlist management buttons
|
||||||
JButton btnSave = new JButton( "Save" );
|
JButton btnSave = new JButton( "Save" );
|
||||||
btnSave.setToolTipText( "Save alias changes to the playlist" );
|
btnSave.setToolTipText( "Save ua.in.smartjava.alias changes to the playlist" );
|
||||||
btnSave.addActionListener( AliasEditor.this );
|
btnSave.addActionListener( AliasEditor.this );
|
||||||
add( btnSave );
|
add( btnSave );
|
||||||
|
|
||||||
JButton btnReset = new JButton( "Reset" );
|
JButton btnReset = new JButton( "Reset" );
|
||||||
btnReset.setToolTipText( "Reset alias changes since last save" );
|
btnReset.setToolTipText( "Reset ua.in.smartjava.alias changes since last save" );
|
||||||
btnReset.addActionListener( AliasEditor.this );
|
btnReset.addActionListener( AliasEditor.this );
|
||||||
add( btnReset, "wrap" );
|
add( btnReset, "wrap" );
|
||||||
}
|
}
|
||||||
@@ -118,13 +117,13 @@ public class AliasEditor extends Editor<Alias>
|
|||||||
@Override
|
@Override
|
||||||
public void receive( AliasEvent event )
|
public void receive( AliasEvent event )
|
||||||
{
|
{
|
||||||
//If this is the currently displayed alias, reload it
|
//If this is the currently displayed ua.in.smartjava.alias, reload it
|
||||||
if( hasItem() && getItem() == event.getAlias() )
|
if( hasItem() && getItem() == event.getAlias() )
|
||||||
{
|
{
|
||||||
switch( event.getEvent() )
|
switch( event.getEvent() )
|
||||||
{
|
{
|
||||||
case CHANGE:
|
case CHANGE:
|
||||||
//Alias changed - reset the editor with changed alias
|
//Alias changed - reset the editor with changed ua.in.smartjava.alias
|
||||||
setItem( event.getAlias() );
|
setItem( event.getAlias() );
|
||||||
break;
|
break;
|
||||||
case DELETE:
|
case DELETE:
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
public class AliasEvent
|
public class AliasEvent
|
||||||
{
|
{
|
||||||
@@ -23,8 +23,8 @@ public class AliasEvent
|
|||||||
private Event mEvent;
|
private Event mEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AliasEvent - event describing any changes to an alias
|
* AliasEvent - event describing any changes to an ua.in.smartjava.alias
|
||||||
* @param alias - alias that changed
|
* @param alias - ua.in.smartjava.alias that changed
|
||||||
* @param event - change event
|
* @param event - change event
|
||||||
*/
|
*/
|
||||||
public AliasEvent( Alias alias, Event event )
|
public AliasEvent( Alias alias, Event event )
|
||||||
@@ -15,47 +15,47 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import alias.action.AliasAction;
|
import ua.in.smartjava.alias.action.AliasAction;
|
||||||
import alias.action.AliasActionType;
|
import ua.in.smartjava.alias.action.AliasActionType;
|
||||||
import alias.action.beep.BeepAction;
|
import ua.in.smartjava.alias.action.beep.BeepAction;
|
||||||
import alias.action.beep.BeepActionEditor;
|
import ua.in.smartjava.alias.action.beep.BeepActionEditor;
|
||||||
import alias.action.clip.ClipAction;
|
import ua.in.smartjava.alias.action.clip.ClipAction;
|
||||||
import alias.action.clip.ClipActionEditor;
|
import ua.in.smartjava.alias.action.clip.ClipActionEditor;
|
||||||
import alias.action.script.ScriptAction;
|
import ua.in.smartjava.alias.action.script.ScriptAction;
|
||||||
import alias.action.script.ScriptActionEditor;
|
import ua.in.smartjava.alias.action.script.ScriptActionEditor;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
import alias.id.broadcast.BroadcastChannel;
|
import ua.in.smartjava.alias.id.broadcast.BroadcastChannel;
|
||||||
import alias.id.broadcast.BroadcastChannelEditor;
|
import ua.in.smartjava.alias.id.broadcast.BroadcastChannelEditor;
|
||||||
import alias.id.esn.ESNEditor;
|
import ua.in.smartjava.alias.id.esn.ESNEditor;
|
||||||
import alias.id.esn.Esn;
|
import ua.in.smartjava.alias.id.esn.Esn;
|
||||||
import alias.id.fleetsync.FleetsyncID;
|
import ua.in.smartjava.alias.id.fleetsync.FleetsyncID;
|
||||||
import alias.id.fleetsync.FleetsyncIDEditor;
|
import ua.in.smartjava.alias.id.fleetsync.FleetsyncIDEditor;
|
||||||
import alias.id.lojack.LoJackFunctionAndID;
|
import ua.in.smartjava.alias.id.lojack.LoJackFunctionAndID;
|
||||||
import alias.id.lojack.LoJackIDEditor;
|
import ua.in.smartjava.alias.id.lojack.LoJackIDEditor;
|
||||||
import alias.id.mdc.MDC1200ID;
|
import ua.in.smartjava.alias.id.mdc.MDC1200ID;
|
||||||
import alias.id.mdc.MDC1200IDEditor;
|
import ua.in.smartjava.alias.id.mdc.MDC1200IDEditor;
|
||||||
import alias.id.mobileID.MINEditor;
|
import ua.in.smartjava.alias.id.mobileID.MINEditor;
|
||||||
import alias.id.mobileID.Min;
|
import ua.in.smartjava.alias.id.mobileID.Min;
|
||||||
import alias.id.mpt1327.MPT1327ID;
|
import ua.in.smartjava.alias.id.mpt1327.MPT1327ID;
|
||||||
import alias.id.mpt1327.MPT1327IDEditor;
|
import ua.in.smartjava.alias.id.mpt1327.MPT1327IDEditor;
|
||||||
import alias.id.nonrecordable.NonRecordable;
|
import ua.in.smartjava.alias.id.nonrecordable.NonRecordable;
|
||||||
import alias.id.nonrecordable.NonRecordableEditor;
|
import ua.in.smartjava.alias.id.nonrecordable.NonRecordableEditor;
|
||||||
import alias.id.priority.Priority;
|
import ua.in.smartjava.alias.id.priority.Priority;
|
||||||
import alias.id.priority.PriorityEditor;
|
import ua.in.smartjava.alias.id.priority.PriorityEditor;
|
||||||
import alias.id.siteID.SiteID;
|
import ua.in.smartjava.alias.id.siteID.SiteID;
|
||||||
import alias.id.siteID.SiteIDEditor;
|
import ua.in.smartjava.alias.id.siteID.SiteIDEditor;
|
||||||
import alias.id.status.StatusID;
|
import ua.in.smartjava.alias.id.status.StatusID;
|
||||||
import alias.id.status.StatusIDEditor;
|
import ua.in.smartjava.alias.id.status.StatusIDEditor;
|
||||||
import alias.id.talkgroup.TalkgroupID;
|
import ua.in.smartjava.alias.id.talkgroup.TalkgroupID;
|
||||||
import alias.id.talkgroup.TalkgroupIDEditor;
|
import ua.in.smartjava.alias.id.talkgroup.TalkgroupIDEditor;
|
||||||
import alias.id.uniqueID.UniqueID;
|
import ua.in.smartjava.alias.id.uniqueID.UniqueID;
|
||||||
import alias.id.uniqueID.UniqueIDEditor;
|
import ua.in.smartjava.alias.id.uniqueID.UniqueIDEditor;
|
||||||
import audio.broadcast.BroadcastModel;
|
import ua.in.smartjava.audio.broadcast.BroadcastModel;
|
||||||
import gui.editor.Editor;
|
import ua.in.smartjava.gui.editor.Editor;
|
||||||
import gui.editor.EmptyEditor;
|
import ua.in.smartjava.gui.editor.EmptyEditor;
|
||||||
|
|
||||||
public class AliasFactory
|
public class AliasFactory
|
||||||
{
|
{
|
||||||
@@ -16,24 +16,24 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.WildcardID;
|
import ua.in.smartjava.alias.id.WildcardID;
|
||||||
import alias.id.esn.Esn;
|
import ua.in.smartjava.alias.id.esn.Esn;
|
||||||
import alias.id.fleetsync.FleetsyncID;
|
import ua.in.smartjava.alias.id.fleetsync.FleetsyncID;
|
||||||
import alias.id.lojack.LoJackFunctionAndID;
|
import ua.in.smartjava.alias.id.lojack.LoJackFunctionAndID;
|
||||||
import alias.id.mdc.MDC1200ID;
|
import ua.in.smartjava.alias.id.mdc.MDC1200ID;
|
||||||
import alias.id.mobileID.Min;
|
import ua.in.smartjava.alias.id.mobileID.Min;
|
||||||
import alias.id.mpt1327.MPT1327ID;
|
import ua.in.smartjava.alias.id.mpt1327.MPT1327ID;
|
||||||
import alias.id.siteID.SiteID;
|
import ua.in.smartjava.alias.id.siteID.SiteID;
|
||||||
import alias.id.status.StatusID;
|
import ua.in.smartjava.alias.id.status.StatusID;
|
||||||
import alias.id.talkgroup.TalkgroupID;
|
import ua.in.smartjava.alias.id.talkgroup.TalkgroupID;
|
||||||
import alias.id.uniqueID.UniqueID;
|
import ua.in.smartjava.alias.id.uniqueID.UniqueID;
|
||||||
import module.decode.lj1200.LJ1200Message.Function;
|
import ua.in.smartjava.module.decode.lj1200.LJ1200Message.Function;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -71,9 +71,9 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* List of aliases where all aliases share the same list name. Contains
|
* List of aliases where all aliases share the same list name. Contains
|
||||||
* several methods for alias lookup from identifier values, like talkgroups.
|
* several methods for ua.in.smartjava.alias lookup from identifier values, like talkgroups.
|
||||||
*
|
*
|
||||||
* Responds to alias change events to keep the internal alias list updated.
|
* Responds to ua.in.smartjava.alias change events to keep the internal ua.in.smartjava.alias list updated.
|
||||||
*/
|
*/
|
||||||
public AliasList(String name)
|
public AliasList(String name)
|
||||||
{
|
{
|
||||||
@@ -81,7 +81,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the alias to this list
|
* Adds the ua.in.smartjava.alias to this list
|
||||||
*/
|
*/
|
||||||
public void addAlias(Alias alias)
|
public void addAlias(Alias alias)
|
||||||
{
|
{
|
||||||
@@ -95,7 +95,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the alias and alias identifier to the internal type mapping.
|
* Adds the ua.in.smartjava.alias and ua.in.smartjava.alias identifier to the internal type mapping.
|
||||||
*/
|
*/
|
||||||
private void addAliasID(AliasID id, Alias alias)
|
private void addAliasID(AliasID id, Alias alias)
|
||||||
{
|
{
|
||||||
@@ -224,13 +224,13 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
mLog.error("Couldn't add alias ID " + id + " for alias " + alias);
|
mLog.error("Couldn't add ua.in.smartjava.alias ID " + id + " for ua.in.smartjava.alias " + alias);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the alias from this list
|
* Removes the ua.in.smartjava.alias from this list
|
||||||
*/
|
*/
|
||||||
public void removeAlias(Alias alias)
|
public void removeAlias(Alias alias)
|
||||||
{
|
{
|
||||||
@@ -258,7 +258,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the alias and alias identifier from internal mappings.
|
* Removes the ua.in.smartjava.alias and ua.in.smartjava.alias identifier from internal mappings.
|
||||||
*/
|
*/
|
||||||
private void removeAliasID(AliasID id, Alias alias)
|
private void removeAliasID(AliasID id, Alias alias)
|
||||||
{
|
{
|
||||||
@@ -393,7 +393,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by site ID
|
* Lookup ua.in.smartjava.alias by site ID
|
||||||
*/
|
*/
|
||||||
public Alias getSiteID(String siteID)
|
public Alias getSiteID(String siteID)
|
||||||
{
|
{
|
||||||
@@ -418,7 +418,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by status ID
|
* Lookup ua.in.smartjava.alias by status ID
|
||||||
*/
|
*/
|
||||||
public Alias getStatus(int status)
|
public Alias getStatus(int status)
|
||||||
{
|
{
|
||||||
@@ -426,7 +426,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by Unique ID (UID)
|
* Lookup ua.in.smartjava.alias by Unique ID (UID)
|
||||||
*/
|
*/
|
||||||
public Alias getUniqueID(int uniqueID)
|
public Alias getUniqueID(int uniqueID)
|
||||||
{
|
{
|
||||||
@@ -434,7 +434,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by ESN
|
* Lookup ua.in.smartjava.alias by ESN
|
||||||
*/
|
*/
|
||||||
public Alias getESNAlias(String esn)
|
public Alias getESNAlias(String esn)
|
||||||
{
|
{
|
||||||
@@ -459,7 +459,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by fleetsync ID
|
* Lookup ua.in.smartjava.alias by fleetsync ID
|
||||||
*/
|
*/
|
||||||
public Alias getFleetsyncAlias(String ident)
|
public Alias getFleetsyncAlias(String ident)
|
||||||
{
|
{
|
||||||
@@ -484,7 +484,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by lojack function and ID
|
* Lookup ua.in.smartjava.alias by lojack function and ID
|
||||||
*/
|
*/
|
||||||
public Alias getLoJackAlias(Function function, String id)
|
public Alias getLoJackAlias(Function function, String id)
|
||||||
{
|
{
|
||||||
@@ -503,7 +503,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by MDC1200 ID
|
* Lookup ua.in.smartjava.alias by MDC1200 ID
|
||||||
*/
|
*/
|
||||||
public Alias getMDC1200Alias(String ident)
|
public Alias getMDC1200Alias(String ident)
|
||||||
{
|
{
|
||||||
@@ -528,7 +528,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by MPT1327 Ident
|
* Lookup ua.in.smartjava.alias by MPT1327 Ident
|
||||||
*/
|
*/
|
||||||
public Alias getMPT1327Alias(String ident)
|
public Alias getMPT1327Alias(String ident)
|
||||||
{
|
{
|
||||||
@@ -553,7 +553,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by Mobile ID Number (MIN)
|
* Lookup ua.in.smartjava.alias by Mobile ID Number (MIN)
|
||||||
*/
|
*/
|
||||||
public Alias getMobileIDNumberAlias(String ident)
|
public Alias getMobileIDNumberAlias(String ident)
|
||||||
{
|
{
|
||||||
@@ -578,10 +578,10 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by talkgroup
|
* Lookup ua.in.smartjava.alias by talkgroup
|
||||||
*
|
*
|
||||||
* @param tgid to use when searching for an alias
|
* @param tgid to use when searching for an ua.in.smartjava.alias
|
||||||
* @param includeWildcards true if you want to additionally search for a matching alias that contains wildcard(s)
|
* @param includeWildcards true if you want to additionally search for a matching ua.in.smartjava.alias that contains wildcard(s)
|
||||||
* when there is not a direct match to the TGID.
|
* when there is not a direct match to the TGID.
|
||||||
*/
|
*/
|
||||||
public Alias getTalkgroupAlias(String tgid, boolean includeWildcards)
|
public Alias getTalkgroupAlias(String tgid, boolean includeWildcards)
|
||||||
@@ -607,7 +607,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Lookup alias by talkgroup. Defaults to matching to wildcard talkgroups.
|
* Lookup ua.in.smartjava.alias by talkgroup. Defaults to matching to wildcard talkgroups.
|
||||||
*/
|
*/
|
||||||
public Alias getTalkgroupAlias(String tgid)
|
public Alias getTalkgroupAlias(String tgid)
|
||||||
{
|
{
|
||||||
@@ -632,7 +632,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this alias list has a non-null, non-empty name
|
* Indicates if this ua.in.smartjava.alias list has a non-null, non-empty name
|
||||||
*/
|
*/
|
||||||
private boolean hasName()
|
private boolean hasName()
|
||||||
{
|
{
|
||||||
@@ -640,7 +640,7 @@ public class AliasList implements Listener<AliasEvent>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Receive alias change event notifications and modify this list accordingly
|
* Receive ua.in.smartjava.alias change event notifications and modify this list accordingly
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void receive(AliasEvent event)
|
public void receive(AliasEvent event)
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import alias.AliasEvent.Event;
|
import ua.in.smartjava.alias.AliasEvent.Event;
|
||||||
import alias.id.broadcast.BroadcastChannel;
|
import ua.in.smartjava.alias.id.broadcast.BroadcastChannel;
|
||||||
import sample.Broadcaster;
|
import ua.in.smartjava.sample.Broadcaster;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
|
|
||||||
import javax.swing.table.AbstractTableModel;
|
import javax.swing.table.AbstractTableModel;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -90,7 +90,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
|
|
||||||
mAliasListMap.put(name, aliasList);
|
mAliasListMap.put(name, aliasList);
|
||||||
|
|
||||||
//Register the new alias list to receive updates from this model
|
//Register the new ua.in.smartjava.alias list to receive updates from this model
|
||||||
addListener(aliasList);
|
addListener(aliasList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of unique alias list names from across the alias set
|
* Returns a list of unique ua.in.smartjava.alias list names from across the ua.in.smartjava.alias set
|
||||||
*/
|
*/
|
||||||
public List<String> getListNames()
|
public List<String> getListNames()
|
||||||
{
|
{
|
||||||
@@ -118,7 +118,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of alias group names for all aliases
|
* Returns a list of ua.in.smartjava.alias group names for all aliases
|
||||||
*/
|
*/
|
||||||
public List<String> getGroupNames()
|
public List<String> getGroupNames()
|
||||||
{
|
{
|
||||||
@@ -138,7 +138,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of alias group names for all aliases that have a matching
|
* Returns a list of ua.in.smartjava.alias group names for all aliases that have a matching
|
||||||
* list name value
|
* list name value
|
||||||
*/
|
*/
|
||||||
public List<String> getGroupNames(String listName)
|
public List<String> getGroupNames(String listName)
|
||||||
@@ -176,7 +176,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the alias to the model
|
* Adds the ua.in.smartjava.alias to the model
|
||||||
*/
|
*/
|
||||||
public int addAlias(Alias alias)
|
public int addAlias(Alias alias)
|
||||||
{
|
{
|
||||||
@@ -197,7 +197,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the channel from the model and broadcasts a channel remove event
|
* Removes the ua.in.smartjava.channel from the model and broadcasts a ua.in.smartjava.channel remove event
|
||||||
*/
|
*/
|
||||||
public void removeAlias(Alias alias)
|
public void removeAlias(Alias alias)
|
||||||
{
|
{
|
||||||
@@ -217,7 +217,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
* Renames any broadcast channels that have the previous name.
|
* Renames any broadcast channels that have the previous name.
|
||||||
*
|
*
|
||||||
* @param previousName to rename
|
* @param previousName to rename
|
||||||
* @param newName to assign to the broadcast channel
|
* @param newName to assign to the broadcast ua.in.smartjava.channel
|
||||||
*/
|
*/
|
||||||
public void renameBroadcastChannel(String previousName, String newName)
|
public void renameBroadcastChannel(String previousName, String newName)
|
||||||
{
|
{
|
||||||
@@ -322,7 +322,7 @@ public class AliasModel extends AbstractTableModel
|
|||||||
{
|
{
|
||||||
Alias alias = event.getAlias();
|
Alias alias = event.getAlias();
|
||||||
|
|
||||||
//Validate the alias following a user action that changed the alias or any alias IDs
|
//Validate the ua.in.smartjava.alias following a user action that changed the ua.in.smartjava.alias or any ua.in.smartjava.alias IDs
|
||||||
if(alias != null)
|
if(alias != null)
|
||||||
{
|
{
|
||||||
alias.validate();
|
alias.validate();
|
||||||
@@ -16,14 +16,14 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import alias.AliasEvent.Event;
|
import ua.in.smartjava.alias.AliasEvent.Event;
|
||||||
import gui.editor.Editor;
|
import ua.in.smartjava.gui.editor.Editor;
|
||||||
import icon.Icon;
|
import ua.in.smartjava.icon.Icon;
|
||||||
import icon.IconListCellRenderer;
|
import ua.in.smartjava.icon.IconListCellRenderer;
|
||||||
import icon.IconManager;
|
import ua.in.smartjava.icon.IconManager;
|
||||||
import icon.IconTableModel;
|
import ua.in.smartjava.icon.IconTableModel;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -148,7 +148,7 @@ public class AliasNameEditor extends Editor<Alias>
|
|||||||
{
|
{
|
||||||
Color newColor = JColorChooser.showDialog(
|
Color newColor = JColorChooser.showDialog(
|
||||||
AliasNameEditor.this,
|
AliasNameEditor.this,
|
||||||
"Choose color for this alias",
|
"Choose color for this ua.in.smartjava.alias",
|
||||||
(hasItem() ? getItem().getDisplayColor() : null));
|
(hasItem() ? getItem().getDisplayColor() : null));
|
||||||
|
|
||||||
if(newColor != null)
|
if(newColor != null)
|
||||||
@@ -327,7 +327,7 @@ public class AliasNameEditor extends Editor<Alias>
|
|||||||
|
|
||||||
setModified(false);
|
setModified(false);
|
||||||
|
|
||||||
//Broadcast an alias change event to save the updates
|
//Broadcast an ua.in.smartjava.alias change event to save the updates
|
||||||
mAliasModel.broadcast(new AliasEvent(getItem(), Event.CHANGE));
|
mAliasModel.broadcast(new AliasEvent(getItem(), Event.CHANGE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import javax.swing.event.DocumentListener;
|
import javax.swing.event.DocumentListener;
|
||||||
@@ -86,7 +86,7 @@ public abstract class ComponentEditor<T> extends JPanel implements DocumentListe
|
|||||||
public abstract void save();
|
public abstract void save();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reloads the editor contents from the source component and resets the
|
* Reloads the editor contents from the ua.in.smartjava.source component and resets the
|
||||||
* modified flag
|
* modified flag
|
||||||
*/
|
*/
|
||||||
public void reset()
|
public void reset()
|
||||||
@@ -96,7 +96,7 @@ public abstract class ComponentEditor<T> extends JPanel implements DocumentListe
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate contents of other editors against this component editor before
|
* Validate contents of other editors against this component editor before
|
||||||
* saving. Override this method to allow controller to pass other editors
|
* saving. Override this method to allow ua.in.smartjava.controller to pass other editors
|
||||||
* to this editor for content inspection/validation before indicating that
|
* to this editor for content inspection/validation before indicating that
|
||||||
* this editor passes validation. This allows for validating editor contents
|
* this editor passes validation. This allows for validating editor contents
|
||||||
* that are contingent on settings in other editors.
|
* that are contingent on settings in other editors.
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
public class ComponentValidationException extends Exception
|
public class ComponentValidationException extends Exception
|
||||||
{
|
{
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
import alias.AliasEvent.Event;
|
import ua.in.smartjava.alias.AliasEvent.Event;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
import alias.id.broadcast.BroadcastChannel;
|
import ua.in.smartjava.alias.id.broadcast.BroadcastChannel;
|
||||||
import alias.id.priority.Priority;
|
import ua.in.smartjava.alias.id.priority.Priority;
|
||||||
import audio.broadcast.BroadcastModel;
|
import ua.in.smartjava.audio.broadcast.BroadcastModel;
|
||||||
import gui.editor.Editor;
|
import ua.in.smartjava.gui.editor.Editor;
|
||||||
import icon.Icon;
|
import ua.in.smartjava.icon.Icon;
|
||||||
import icon.IconListCellRenderer;
|
import ua.in.smartjava.icon.IconListCellRenderer;
|
||||||
import icon.IconManager;
|
import ua.in.smartjava.icon.IconManager;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.swing.event.ChangeEvent;
|
import javax.swing.event.ChangeEvent;
|
||||||
@@ -121,7 +121,7 @@ public class MultipleAliasEditor extends Editor<List<Alias>>
|
|||||||
{
|
{
|
||||||
Color newColor = JColorChooser.showDialog(
|
Color newColor = JColorChooser.showDialog(
|
||||||
MultipleAliasEditor.this,
|
MultipleAliasEditor.this,
|
||||||
"Choose color for this alias", null);
|
"Choose color for this ua.in.smartjava.alias", null);
|
||||||
|
|
||||||
if (newColor != null)
|
if (newColor != null)
|
||||||
{
|
{
|
||||||
@@ -388,7 +388,7 @@ public class MultipleAliasEditor extends Editor<List<Alias>>
|
|||||||
int priority = mPrioritySlider.getValue();
|
int priority = mPrioritySlider.getValue();
|
||||||
|
|
||||||
//This is a work-around -- we use max priority + 1 in the
|
//This is a work-around -- we use max priority + 1 in the
|
||||||
//gui to indicate do not monitor, and change the value here
|
//ua.in.smartjava.gui to indicate do not monitor, and change the value here
|
||||||
if (priority == Priority.MAX_PRIORITY + 1)
|
if (priority == Priority.MAX_PRIORITY + 1)
|
||||||
{
|
{
|
||||||
priority = Priority.DO_NOT_MONITOR;
|
priority = Priority.DO_NOT_MONITOR;
|
||||||
@@ -405,7 +405,7 @@ public class MultipleAliasEditor extends Editor<List<Alias>>
|
|||||||
|
|
||||||
boolean hasChannel = false;
|
boolean hasChannel = false;
|
||||||
|
|
||||||
//Ensure the alias doesn't already have the channel
|
//Ensure the ua.in.smartjava.alias doesn't already have the ua.in.smartjava.channel
|
||||||
for(BroadcastChannel channel: alias.getBroadcastChannels())
|
for(BroadcastChannel channel: alias.getBroadcastChannels())
|
||||||
{
|
{
|
||||||
if(channel.getChannelName().equals(streamName))
|
if(channel.getChannelName().equals(streamName))
|
||||||
@@ -429,7 +429,7 @@ public class MultipleAliasEditor extends Editor<List<Alias>>
|
|||||||
|
|
||||||
for (Alias alias : aliases)
|
for (Alias alias : aliases)
|
||||||
{
|
{
|
||||||
//Broadcast an alias change event to save the updates
|
//Broadcast an ua.in.smartjava.alias change event to save the updates
|
||||||
mAliasModel.broadcast(new AliasEvent(alias, Event.CHANGE));
|
mAliasModel.broadcast(new AliasEvent(alias, Event.CHANGE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,18 +16,17 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias;
|
package ua.in.smartjava.alias;
|
||||||
|
|
||||||
|
import ua.in.smartjava.alias.action.AliasAction;
|
||||||
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
import ua.in.smartjava.alias.id.broadcast.BroadcastChannel;
|
||||||
|
import ua.in.smartjava.alias.id.priority.Priority;
|
||||||
|
import ua.in.smartjava.alias.id.talkgroup.TalkgroupID;
|
||||||
|
|
||||||
import alias.action.AliasAction;
|
|
||||||
import alias.id.AliasID;
|
|
||||||
import alias.id.AliasIDType;
|
|
||||||
import alias.id.broadcast.BroadcastChannel;
|
|
||||||
import alias.id.priority.Priority;
|
|
||||||
import alias.id.talkgroup.TalkgroupID;
|
|
||||||
import gui.SDRTrunk;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import playlist.version1.System;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -43,12 +42,12 @@ public class PatchGroupAlias extends Alias
|
|||||||
private List<String> mPatchedTalkgroupIDs = new ArrayList<>();
|
private List<String> mPatchedTalkgroupIDs = new ArrayList<>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Patch group alias is a single alias for a group of aliases that are temporarily patched together. This will
|
* Patch group ua.in.smartjava.alias is a single ua.in.smartjava.alias for a group of aliases that are temporarily patched together. This will
|
||||||
* normally be used for patched talkgroups, but could be used with any type of alias identifiers that can be
|
* normally be used for patched talkgroups, but could be used with any type of ua.in.smartjava.alias identifiers that can be
|
||||||
* temporarily joined to form a patch group.
|
* temporarily joined to form a patch group.
|
||||||
*
|
*
|
||||||
* Alias properties such as recordable, streamable and call priority are an aggregation from the set of patched
|
* Alias ua.in.smartjava.properties such as recordable, streamable and call priority are an aggregation from the set of patched
|
||||||
* aliases contained in this patch group alias and the patch group ID alias and where applicable, return the highest
|
* aliases contained in this patch group ua.in.smartjava.alias and the patch group ID ua.in.smartjava.alias and where applicable, return the highest
|
||||||
* value/priority from the group of patched aliases.
|
* value/priority from the group of patched aliases.
|
||||||
*/
|
*/
|
||||||
public PatchGroupAlias()
|
public PatchGroupAlias()
|
||||||
@@ -67,7 +66,7 @@ public class PatchGroupAlias extends Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets an alias for this patch group ID
|
* Sets an ua.in.smartjava.alias for this patch group ID
|
||||||
*/
|
*/
|
||||||
public void setPatchGroupAlias(Alias alias)
|
public void setPatchGroupAlias(Alias alias)
|
||||||
{
|
{
|
||||||
@@ -83,7 +82,7 @@ public class PatchGroupAlias extends Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if this patch group has an alias
|
* Indicates if this patch group has an ua.in.smartjava.alias
|
||||||
*/
|
*/
|
||||||
public boolean hasPatchGroupAlias()
|
public boolean hasPatchGroupAlias()
|
||||||
{
|
{
|
||||||
@@ -99,7 +98,7 @@ public class PatchGroupAlias extends Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes/clears all patched aliases from this patch alias group
|
* Removes/clears all patched aliases from this patch ua.in.smartjava.alias group
|
||||||
*/
|
*/
|
||||||
public void clearPatchedAliases()
|
public void clearPatchedAliases()
|
||||||
{
|
{
|
||||||
@@ -107,20 +106,20 @@ public class PatchGroupAlias extends Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the patched alias to this patch alias group
|
* Adds the patched ua.in.smartjava.alias to this patch ua.in.smartjava.alias group
|
||||||
*/
|
*/
|
||||||
public void addPatchedAlias(Alias alias)
|
public void addPatchedAlias(Alias alias)
|
||||||
{
|
{
|
||||||
if(alias == PatchGroupAlias.this)
|
if(alias == PatchGroupAlias.this)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Can't add patch group alias to itself - would create an infinite loop");
|
throw new IllegalArgumentException("Can't add patch group ua.in.smartjava.alias to itself - would create an infinite loop");
|
||||||
}
|
}
|
||||||
|
|
||||||
mPatchedAliases.add(alias);
|
mPatchedAliases.add(alias);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the patched alias from this patch alias group
|
* Removes the patched ua.in.smartjava.alias from this patch ua.in.smartjava.alias group
|
||||||
*/
|
*/
|
||||||
public void removePatchedAlias(Alias alias)
|
public void removePatchedAlias(Alias alias)
|
||||||
{
|
{
|
||||||
@@ -206,7 +205,7 @@ public class PatchGroupAlias extends Alias
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the highest listenable audio priority defined among the aliases in the group, or returns 'Do Not Monitor'
|
* Returns the highest listenable ua.in.smartjava.audio priority defined among the aliases in the group, or returns 'Do Not Monitor'
|
||||||
* if that is the only priority defined. Otherwise, returns default (100) priority.
|
* if that is the only priority defined. Otherwise, returns default (100) priority.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@@ -16,13 +16,13 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action;
|
package ua.in.smartjava.alias.action;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import alias.action.beep.BeepAction;
|
import ua.in.smartjava.alias.action.beep.BeepAction;
|
||||||
import alias.action.clip.ClipAction;
|
import ua.in.smartjava.alias.action.clip.ClipAction;
|
||||||
import alias.action.script.ScriptAction;
|
import ua.in.smartjava.alias.action.script.ScriptAction;
|
||||||
import message.Message;
|
import ua.in.smartjava.message.Message;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
@@ -30,7 +30,7 @@ import javax.xml.bind.annotation.XmlTransient;
|
|||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alias action defines an action to execute when an alias is detected active.
|
* Alias action defines an action to execute when an ua.in.smartjava.alias is detected active.
|
||||||
*/
|
*/
|
||||||
@XmlSeeAlso( { BeepAction.class, ClipAction.class, ScriptAction.class } )
|
@XmlSeeAlso( { BeepAction.class, ClipAction.class, ScriptAction.class } )
|
||||||
@XmlRootElement( name = "action" )
|
@XmlRootElement( name = "action" )
|
||||||
@@ -44,15 +44,15 @@ public abstract class AliasAction
|
|||||||
public abstract AliasActionType getType();
|
public abstract AliasActionType getType();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Task to execute when an alias action is defined. The message argument is
|
* Task to execute when an ua.in.smartjava.alias action is defined. The ua.in.smartjava.message argument is
|
||||||
* the original message containing one or more aliases that have an alias
|
* the original ua.in.smartjava.message containing one or more aliases that have an ua.in.smartjava.alias
|
||||||
* action attached. The alias argument is the parent alias containing the
|
* action attached. The ua.in.smartjava.alias argument is the parent ua.in.smartjava.alias containing the
|
||||||
* alias action.
|
* ua.in.smartjava.alias action.
|
||||||
*/
|
*/
|
||||||
public abstract void execute( ScheduledExecutorService scheduledExecutorService, Alias alias, Message message );
|
public abstract void execute( ScheduledExecutorService scheduledExecutorService, Alias alias, Message message );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dismiss a persistent alias action
|
* Dismiss a persistent ua.in.smartjava.alias action
|
||||||
*/
|
*/
|
||||||
public abstract void dismiss( boolean reset );
|
public abstract void dismiss( boolean reset );
|
||||||
}
|
}
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action;
|
package ua.in.smartjava.alias.action;
|
||||||
|
|
||||||
import gui.editor.Editor;
|
import ua.in.smartjava.gui.editor.Editor;
|
||||||
import gui.editor.EmptyEditor;
|
import ua.in.smartjava.gui.editor.EmptyEditor;
|
||||||
|
|
||||||
import java.awt.EventQueue;
|
import java.awt.EventQueue;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
@@ -43,11 +43,11 @@ import javax.swing.event.ListSelectionEvent;
|
|||||||
import javax.swing.event.ListSelectionListener;
|
import javax.swing.event.ListSelectionListener;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import alias.AliasEvent;
|
import ua.in.smartjava.alias.AliasEvent;
|
||||||
import alias.AliasEvent.Event;
|
import ua.in.smartjava.alias.AliasEvent.Event;
|
||||||
import alias.AliasFactory;
|
import ua.in.smartjava.alias.AliasFactory;
|
||||||
import alias.AliasModel;
|
import ua.in.smartjava.alias.AliasModel;
|
||||||
|
|
||||||
public class AliasActionEditor extends Editor<Alias>
|
public class AliasActionEditor extends Editor<Alias>
|
||||||
{
|
{
|
||||||
@@ -15,18 +15,18 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action;
|
package ua.in.smartjava.alias.action;
|
||||||
|
|
||||||
import alias.AliasEvent;
|
import ua.in.smartjava.alias.AliasEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for receiving alias events. Each listener will receive
|
* Interface for receiving ua.in.smartjava.alias events. Each listener will receive
|
||||||
* notification of all alias events.
|
* notification of all ua.in.smartjava.alias events.
|
||||||
*/
|
*/
|
||||||
public interface AliasActionListener
|
public interface AliasActionListener
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Notifies the listener that an alias event has occurred
|
* Notifies the listener that an ua.in.smartjava.alias event has occurred
|
||||||
*/
|
*/
|
||||||
public void aliasChanged( AliasEvent event );
|
public void aliasChanged( AliasEvent event );
|
||||||
}
|
}
|
||||||
@@ -16,21 +16,21 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action;
|
package ua.in.smartjava.alias.action;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import message.Message;
|
import ua.in.smartjava.message.Message;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
import util.ThreadPool;
|
import ua.in.smartjava.util.ThreadPool;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages all alias action events. Each received message is interrogated for
|
* Manages all ua.in.smartjava.alias action events. Each received ua.in.smartjava.message is interrogated for
|
||||||
* any alias entries and then each alias is interrogated for any alias actions.
|
* any ua.in.smartjava.alias entries and then each ua.in.smartjava.alias is interrogated for any ua.in.smartjava.alias actions.
|
||||||
*
|
*
|
||||||
* Each alias action is executed and provided a copy of the source message so
|
* Each ua.in.smartjava.alias action is executed and provided a copy of the ua.in.smartjava.source ua.in.smartjava.message so
|
||||||
* that the contents of the message can be used as part of the action.
|
* that the contents of the ua.in.smartjava.message can be used as part of the action.
|
||||||
*/
|
*/
|
||||||
public class AliasActionManager implements Listener<Message>
|
public class AliasActionManager implements Listener<Message>
|
||||||
{
|
{
|
||||||
@@ -57,8 +57,8 @@ public class AliasActionManager implements Listener<Message>
|
|||||||
{
|
{
|
||||||
/* Provide access to the thread pool manager in case the
|
/* Provide access to the thread pool manager in case the
|
||||||
* action needs to setup a timer, and provide the original
|
* action needs to setup a timer, and provide the original
|
||||||
* message to be used as part of the action (e.g. sending
|
* ua.in.smartjava.message to be used as part of the action (e.g. sending
|
||||||
* the message as a text message to a cell phone */
|
* the ua.in.smartjava.message as a text ua.in.smartjava.message to a cell phone */
|
||||||
action.execute(ThreadPool.SCHEDULED, alias, message);
|
action.execute(ThreadPool.SCHEDULED, alias, message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action;
|
package ua.in.smartjava.alias.action;
|
||||||
|
|
||||||
public enum AliasActionType
|
public enum AliasActionType
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package alias.action;
|
package ua.in.smartjava.alias.action;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import message.Message;
|
import ua.in.smartjava.message.Message;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
@@ -50,7 +50,7 @@ public abstract class RecurringAction extends AliasAction
|
|||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("<html><div width='250'>Alias [");
|
sb.append("<html><div width='250'>Alias [");
|
||||||
sb.append(alias.getName());
|
sb.append(alias.getName());
|
||||||
sb.append("] is active in message [");
|
sb.append("] is active in ua.in.smartjava.message [");
|
||||||
sb.append(message.toString());
|
sb.append(message.toString());
|
||||||
sb.append("]</div></html>");
|
sb.append("]</div></html>");
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
package alias.action.beep;
|
package ua.in.smartjava.alias.action.beep;
|
||||||
|
|
||||||
import message.Message;
|
import ua.in.smartjava.message.Message;
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import alias.action.AliasActionType;
|
import ua.in.smartjava.alias.action.AliasActionType;
|
||||||
import alias.action.RecurringAction;
|
import ua.in.smartjava.alias.action.RecurringAction;
|
||||||
|
|
||||||
public class BeepAction extends RecurringAction
|
public class BeepAction extends RecurringAction
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action.beep;
|
package ua.in.smartjava.alias.action.beep;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -36,8 +36,8 @@ import javax.swing.event.ChangeEvent;
|
|||||||
import javax.swing.event.ChangeListener;
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.action.AliasAction;
|
import ua.in.smartjava.alias.action.AliasAction;
|
||||||
import alias.action.RecurringAction.Interval;
|
import ua.in.smartjava.alias.action.RecurringAction.Interval;
|
||||||
|
|
||||||
public class BeepActionEditor extends DocumentListenerEditor<AliasAction>
|
public class BeepActionEditor extends DocumentListenerEditor<AliasAction>
|
||||||
{
|
{
|
||||||
@@ -47,11 +47,11 @@ public class BeepActionEditor extends DocumentListenerEditor<AliasAction>
|
|||||||
"<html><h3>Beep Action</h3>"
|
"<html><h3>Beep Action</h3>"
|
||||||
+ "This action will sound a beep according to the interval<br>"
|
+ "This action will sound a beep according to the interval<br>"
|
||||||
+ "that you select:<br><br>"
|
+ "that you select:<br><br>"
|
||||||
+ "<b>Once:</b> Beep the first time the alias is active and<br>"
|
+ "<b>Once:</b> Beep the first time the ua.in.smartjava.alias is active and<br>"
|
||||||
+ "never again<br><br>"
|
+ "never again<br><br>"
|
||||||
+ "<b>Once, Reset After Delay:</b> Beep once and suppress<br>"
|
+ "<b>Once, Reset After Delay:</b> Beep once and suppress<br>"
|
||||||
+ "subsequent beeps for the specified period in seconds.<br>"
|
+ "subsequent beeps for the specified period in seconds.<br>"
|
||||||
+ "After the reset period, beep again when the alias is active.<br><br>"
|
+ "After the reset period, beep again when the ua.in.smartjava.alias is active.<br><br>"
|
||||||
+ "<b>Until Dismissed:</b> Beep every period seconds until you<br>"
|
+ "<b>Until Dismissed:</b> Beep every period seconds until you<br>"
|
||||||
+ "click OK on the dialog that appears. Alerting is suppressed<br>"
|
+ "click OK on the dialog that appears. Alerting is suppressed<br>"
|
||||||
+ "for 15 seconds after you click OK.<br>"
|
+ "for 15 seconds after you click OK.<br>"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package alias.action.clip;
|
package ua.in.smartjava.alias.action.clip;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
@@ -7,14 +7,14 @@ import javax.sound.sampled.AudioSystem;
|
|||||||
import javax.sound.sampled.Clip;
|
import javax.sound.sampled.Clip;
|
||||||
import javax.xml.bind.annotation.XmlTransient;
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
import message.Message;
|
import ua.in.smartjava.message.Message;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import alias.action.AliasActionType;
|
import ua.in.smartjava.alias.action.AliasActionType;
|
||||||
import alias.action.RecurringAction;
|
import ua.in.smartjava.alias.action.RecurringAction;
|
||||||
|
|
||||||
public class ClipAction extends RecurringAction
|
public class ClipAction extends RecurringAction
|
||||||
{
|
{
|
||||||
@@ -54,7 +54,7 @@ public class ClipAction extends RecurringAction
|
|||||||
}
|
}
|
||||||
catch( Exception e )
|
catch( Exception e )
|
||||||
{
|
{
|
||||||
mLog.error( "Couldn't play audio clip", e );
|
mLog.error( "Couldn't play ua.in.smartjava.audio clip", e );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action.clip;
|
package ua.in.smartjava.alias.action.clip;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -40,8 +40,8 @@ import javax.swing.event.ChangeEvent;
|
|||||||
import javax.swing.event.ChangeListener;
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.action.AliasAction;
|
import ua.in.smartjava.alias.action.AliasAction;
|
||||||
import alias.action.RecurringAction.Interval;
|
import ua.in.smartjava.alias.action.RecurringAction.Interval;
|
||||||
|
|
||||||
public class ClipActionEditor extends DocumentListenerEditor<AliasAction>
|
public class ClipActionEditor extends DocumentListenerEditor<AliasAction>
|
||||||
{
|
{
|
||||||
@@ -50,13 +50,13 @@ public class ClipActionEditor extends DocumentListenerEditor<AliasAction>
|
|||||||
private static final String PLEASE_SELECT_A_FILE = "Please select a file";
|
private static final String PLEASE_SELECT_A_FILE = "Please select a file";
|
||||||
private static final String HELP_TEXT =
|
private static final String HELP_TEXT =
|
||||||
"<html><h3>Clip Action</h3>"
|
"<html><h3>Clip Action</h3>"
|
||||||
+ "This action will play an audio clip according to the interval<br>"
|
+ "This action will play an ua.in.smartjava.audio clip according to the interval<br>"
|
||||||
+ "that you select:<br><br>"
|
+ "that you select:<br><br>"
|
||||||
+ "<b>Once:</b> play the first time the alias is active and<br>"
|
+ "<b>Once:</b> play the first time the ua.in.smartjava.alias is active and<br>"
|
||||||
+ "never again<br><br>"
|
+ "never again<br><br>"
|
||||||
+ "<b>Once, Reset After Delay:</b> play once and suppress<br>"
|
+ "<b>Once, Reset After Delay:</b> play once and suppress<br>"
|
||||||
+ "subsequent runs for the specified period in seconds.<br>"
|
+ "subsequent runs for the specified period in seconds.<br>"
|
||||||
+ "After the reset period, play again when the alias is active.<br><br>"
|
+ "After the reset period, play again when the ua.in.smartjava.alias is active.<br><br>"
|
||||||
+ "<b>Until Dismissed:</b> play every period seconds until you<br>"
|
+ "<b>Until Dismissed:</b> play every period seconds until you<br>"
|
||||||
+ "click OK on the dialog that appears. Alerting is suppressed<br>"
|
+ "click OK on the dialog that appears. Alerting is suppressed<br>"
|
||||||
+ "for 15 seconds after you click OK.<br>"
|
+ "for 15 seconds after you click OK.<br>"
|
||||||
@@ -186,7 +186,7 @@ public class ClipActionEditor extends DocumentListenerEditor<AliasAction>
|
|||||||
if( path == null || path.trim().isEmpty() )
|
if( path == null || path.trim().isEmpty() )
|
||||||
{
|
{
|
||||||
JOptionPane.showMessageDialog( ClipActionEditor.this,
|
JOptionPane.showMessageDialog( ClipActionEditor.this,
|
||||||
"Please select an audio file", PLEASE_SELECT_A_FILE,
|
"Please select an ua.in.smartjava.audio file", PLEASE_SELECT_A_FILE,
|
||||||
JOptionPane.ERROR_MESSAGE );
|
JOptionPane.ERROR_MESSAGE );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -218,7 +218,7 @@ public class ClipActionEditor extends DocumentListenerEditor<AliasAction>
|
|||||||
catch( Exception e1 )
|
catch( Exception e1 )
|
||||||
{
|
{
|
||||||
JOptionPane.showMessageDialog( ClipActionEditor.this,
|
JOptionPane.showMessageDialog( ClipActionEditor.this,
|
||||||
"Couldn't play audio clip [" + e1.getMessage() + "]",
|
"Couldn't play ua.in.smartjava.audio clip [" + e1.getMessage() + "]",
|
||||||
"Error", JOptionPane.ERROR_MESSAGE );
|
"Error", JOptionPane.ERROR_MESSAGE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,16 @@
|
|||||||
package alias.action.script;
|
package ua.in.smartjava.alias.action.script;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
|
||||||
import message.Message;
|
import ua.in.smartjava.message.Message;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import alias.action.AliasActionType;
|
import ua.in.smartjava.alias.action.AliasActionType;
|
||||||
import alias.action.RecurringAction;
|
import ua.in.smartjava.alias.action.RecurringAction;
|
||||||
|
|
||||||
public class ScriptAction extends RecurringAction
|
public class ScriptAction extends RecurringAction
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.action.script;
|
package ua.in.smartjava.alias.action.script;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -40,8 +40,8 @@ import javax.swing.event.ChangeEvent;
|
|||||||
import javax.swing.event.ChangeListener;
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.action.AliasAction;
|
import ua.in.smartjava.alias.action.AliasAction;
|
||||||
import alias.action.RecurringAction.Interval;
|
import ua.in.smartjava.alias.action.RecurringAction.Interval;
|
||||||
|
|
||||||
public class ScriptActionEditor extends DocumentListenerEditor<AliasAction>
|
public class ScriptActionEditor extends DocumentListenerEditor<AliasAction>
|
||||||
{
|
{
|
||||||
@@ -52,11 +52,11 @@ public class ScriptActionEditor extends DocumentListenerEditor<AliasAction>
|
|||||||
"<html><h3>Script Action</h3>"
|
"<html><h3>Script Action</h3>"
|
||||||
+ "This action will run a script according to the interval<br>"
|
+ "This action will run a script according to the interval<br>"
|
||||||
+ "that you select:<br><br>"
|
+ "that you select:<br><br>"
|
||||||
+ "<b>Once:</b> run the first time the alias is active and<br>"
|
+ "<b>Once:</b> run the first time the ua.in.smartjava.alias is active and<br>"
|
||||||
+ "never again<br><br>"
|
+ "never again<br><br>"
|
||||||
+ "<b>Once, Reset After Delay:</b> run once and suppress<br>"
|
+ "<b>Once, Reset After Delay:</b> run once and suppress<br>"
|
||||||
+ "subsequent runs for the specified period in seconds.<br>"
|
+ "subsequent runs for the specified period in seconds.<br>"
|
||||||
+ "After the reset period, run again when the alias is active.<br><br>"
|
+ "After the reset period, run again when the ua.in.smartjava.alias is active.<br><br>"
|
||||||
+ "<b>Until Dismissed:</b> run every period seconds until you<br>"
|
+ "<b>Until Dismissed:</b> run every period seconds until you<br>"
|
||||||
+ "click OK on the dialog that appears. Alerting is suppressed<br>"
|
+ "click OK on the dialog that appears. Alerting is suppressed<br>"
|
||||||
+ "for 15 seconds after you click OK.<br>"
|
+ "for 15 seconds after you click OK.<br>"
|
||||||
@@ -15,26 +15,26 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id;
|
package ua.in.smartjava.alias.id;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
import javax.xml.bind.annotation.XmlSeeAlso;
|
import javax.xml.bind.annotation.XmlSeeAlso;
|
||||||
import javax.xml.bind.annotation.XmlTransient;
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
import alias.id.broadcast.BroadcastChannel;
|
import ua.in.smartjava.alias.id.broadcast.BroadcastChannel;
|
||||||
import playlist.version1.Group;
|
import playlist.version1.Group;
|
||||||
import alias.id.esn.Esn;
|
import ua.in.smartjava.alias.id.esn.Esn;
|
||||||
import alias.id.fleetsync.FleetsyncID;
|
import ua.in.smartjava.alias.id.fleetsync.FleetsyncID;
|
||||||
import alias.id.lojack.LoJackFunctionAndID;
|
import ua.in.smartjava.alias.id.lojack.LoJackFunctionAndID;
|
||||||
import alias.id.mdc.MDC1200ID;
|
import ua.in.smartjava.alias.id.mdc.MDC1200ID;
|
||||||
import alias.id.mobileID.Min;
|
import ua.in.smartjava.alias.id.mobileID.Min;
|
||||||
import alias.id.mpt1327.MPT1327ID;
|
import ua.in.smartjava.alias.id.mpt1327.MPT1327ID;
|
||||||
import alias.id.nonrecordable.NonRecordable;
|
import ua.in.smartjava.alias.id.nonrecordable.NonRecordable;
|
||||||
import alias.id.priority.Priority;
|
import ua.in.smartjava.alias.id.priority.Priority;
|
||||||
import alias.id.siteID.SiteID;
|
import ua.in.smartjava.alias.id.siteID.SiteID;
|
||||||
import alias.id.status.StatusID;
|
import ua.in.smartjava.alias.id.status.StatusID;
|
||||||
import alias.id.talkgroup.TalkgroupID;
|
import ua.in.smartjava.alias.id.talkgroup.TalkgroupID;
|
||||||
import alias.id.uniqueID.UniqueID;
|
import ua.in.smartjava.alias.id.uniqueID.UniqueID;
|
||||||
|
|
||||||
@SuppressWarnings( "deprecation" )
|
@SuppressWarnings( "deprecation" )
|
||||||
@XmlSeeAlso( {BroadcastChannel.class, Esn.class, FleetsyncID.class, Group.class, LoJackFunctionAndID.class,
|
@XmlSeeAlso( {BroadcastChannel.class, Esn.class, FleetsyncID.class, Group.class, LoJackFunctionAndID.class,
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id;
|
package ua.in.smartjava.alias.id;
|
||||||
|
|
||||||
public enum AliasIDType
|
public enum AliasIDType
|
||||||
{
|
{
|
||||||
@@ -15,11 +15,11 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id;
|
package ua.in.smartjava.alias.id;
|
||||||
|
|
||||||
import audio.broadcast.BroadcastModel;
|
import ua.in.smartjava.audio.broadcast.BroadcastModel;
|
||||||
import gui.editor.Editor;
|
import ua.in.smartjava.gui.editor.Editor;
|
||||||
import gui.editor.EmptyEditor;
|
import ua.in.smartjava.gui.editor.EmptyEditor;
|
||||||
|
|
||||||
import java.awt.EventQueue;
|
import java.awt.EventQueue;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
@@ -44,11 +44,11 @@ import javax.swing.event.ListSelectionEvent;
|
|||||||
import javax.swing.event.ListSelectionListener;
|
import javax.swing.event.ListSelectionListener;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import alias.AliasEvent;
|
import ua.in.smartjava.alias.AliasEvent;
|
||||||
import alias.AliasEvent.Event;
|
import ua.in.smartjava.alias.AliasEvent.Event;
|
||||||
import alias.AliasFactory;
|
import ua.in.smartjava.alias.AliasFactory;
|
||||||
import alias.AliasModel;
|
import ua.in.smartjava.alias.AliasModel;
|
||||||
|
|
||||||
public class AliasIdentifierEditor extends Editor<Alias>
|
public class AliasIdentifierEditor extends Editor<Alias>
|
||||||
{
|
{
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id;
|
package ua.in.smartjava.alias.id;
|
||||||
|
|
||||||
import org.apache.commons.lang3.Validate;
|
import org.apache.commons.lang3.Validate;
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ public class WildcardID implements Comparable<WildcardID>
|
|||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
throw new IllegalArgumentException("Invalid regex pattern for alias ID value [" + value + "]", e);
|
throw new IllegalArgumentException("Invalid regex pattern for ua.in.smartjava.alias ID value [" + value + "]", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
mWeight = calculateWeight();
|
mWeight = calculateWeight();
|
||||||
@@ -69,7 +69,7 @@ public class WildcardID implements Comparable<WildcardID>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the id matches the internal regex pattern for this wildcard alias ID
|
* Indicates if the id matches the internal regex pattern for this wildcard ua.in.smartjava.alias ID
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -16,10 +16,10 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.broadcast;
|
package ua.in.smartjava.alias.id.broadcast;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ public class BroadcastChannel extends AliasID implements Comparable<BroadcastCha
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a named broadcast channel
|
* Creates a named broadcast ua.in.smartjava.channel
|
||||||
*/
|
*/
|
||||||
public BroadcastChannel(String channelName)
|
public BroadcastChannel(String channelName)
|
||||||
{
|
{
|
||||||
@@ -81,16 +81,16 @@ public class BroadcastChannel extends AliasID implements Comparable<BroadcastCha
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the broadcastAudio channel configuration
|
* Name of the broadcastAudio ua.in.smartjava.channel configuration
|
||||||
*/
|
*/
|
||||||
@XmlAttribute(name = "channel")
|
@XmlAttribute(name = "ua/in/smartjava/channel")
|
||||||
public String getChannelName()
|
public String getChannelName()
|
||||||
{
|
{
|
||||||
return mChannelName;
|
return mChannelName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the name of the broadcastAudio channel configuration
|
* Sets the name of the broadcastAudio ua.in.smartjava.channel configuration
|
||||||
*/
|
*/
|
||||||
public void setChannelName(String channel)
|
public void setChannelName(String channel)
|
||||||
{
|
{
|
||||||
@@ -16,12 +16,12 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.broadcast;
|
package ua.in.smartjava.alias.id.broadcast;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import audio.broadcast.BroadcastConfiguration;
|
import ua.in.smartjava.audio.broadcast.BroadcastConfiguration;
|
||||||
import audio.broadcast.BroadcastModel;
|
import ua.in.smartjava.audio.broadcast.BroadcastModel;
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -38,8 +38,8 @@ public class BroadcastChannelEditor extends DocumentListenerEditor<AliasID>
|
|||||||
|
|
||||||
private static final String HELP_TEXT = "<html>"
|
private static final String HELP_TEXT = "<html>"
|
||||||
+ "<h3>Audio Broadcast Channel</h3>"
|
+ "<h3>Audio Broadcast Channel</h3>"
|
||||||
+ "Name of a audio streaming broadcast configuration<br>"
|
+ "Name of a ua.in.smartjava.audio streaming broadcast configuration<br>"
|
||||||
+ "to be used for streaming audio to an external<br>"
|
+ "to be used for streaming ua.in.smartjava.audio to an external<br>"
|
||||||
+ "streaming server";
|
+ "streaming server";
|
||||||
|
|
||||||
private JComboBox<String> mBroadcastConfigurations;
|
private JComboBox<String> mBroadcastConfigurations;
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.esn;
|
package ua.in.smartjava.alias.id.esn;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -29,7 +29,7 @@ import javax.swing.JOptionPane;
|
|||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class ESNEditor extends DocumentListenerEditor<AliasID>
|
public class ESNEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.esn;
|
package ua.in.smartjava.alias.id.esn;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
public class Esn extends AliasID
|
public class Esn extends AliasID
|
||||||
{
|
{
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.fleetsync;
|
package ua.in.smartjava.alias.id.fleetsync;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
|
|
||||||
public class FleetsyncID extends AliasID
|
public class FleetsyncID extends AliasID
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.fleetsync;
|
package ua.in.smartjava.alias.id.fleetsync;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -35,7 +35,7 @@ import net.miginfocom.swing.MigLayout;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class FleetsyncIDEditor extends DocumentListenerEditor<AliasID>
|
public class FleetsyncIDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -15,14 +15,14 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.lojack;
|
package ua.in.smartjava.alias.id.lojack;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import module.decode.lj1200.LJ1200Message;
|
import ua.in.smartjava.module.decode.lj1200.LJ1200Message;
|
||||||
import module.decode.lj1200.LJ1200Message.Function;
|
import ua.in.smartjava.module.decode.lj1200.LJ1200Message.Function;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
public class LoJackFunctionAndID extends AliasID
|
public class LoJackFunctionAndID extends AliasID
|
||||||
{
|
{
|
||||||
@@ -67,7 +67,7 @@ public class LoJackFunctionAndID extends AliasID
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the function and id combination match this alias id
|
* Indicates if the function and id combination match this ua.in.smartjava.alias id
|
||||||
*/
|
*/
|
||||||
public boolean matches( Function function, String id )
|
public boolean matches( Function function, String id )
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.lojack;
|
package ua.in.smartjava.alias.id.lojack;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -33,10 +33,10 @@ import javax.swing.JOptionPane;
|
|||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
import javax.swing.text.MaskFormatter;
|
import javax.swing.text.MaskFormatter;
|
||||||
|
|
||||||
import module.decode.lj1200.LJ1200Message;
|
import ua.in.smartjava.module.decode.lj1200.LJ1200Message;
|
||||||
import module.decode.lj1200.LJ1200Message.Function;
|
import ua.in.smartjava.module.decode.lj1200.LJ1200Message.Function;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class LoJackIDEditor extends DocumentListenerEditor<AliasID>
|
public class LoJackIDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.mdc;
|
package ua.in.smartjava.alias.id.mdc;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
|
|
||||||
public class MDC1200ID extends AliasID
|
public class MDC1200ID extends AliasID
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.mdc;
|
package ua.in.smartjava.alias.id.mdc;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -31,7 +31,7 @@ import javax.swing.JTextField;
|
|||||||
import javax.swing.text.MaskFormatter;
|
import javax.swing.text.MaskFormatter;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class MDC1200IDEditor extends DocumentListenerEditor<AliasID>
|
public class MDC1200IDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.mobileID;
|
package ua.in.smartjava.alias.id.mobileID;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -31,7 +31,7 @@ import javax.swing.JTextField;
|
|||||||
import javax.swing.text.MaskFormatter;
|
import javax.swing.text.MaskFormatter;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class MINEditor extends DocumentListenerEditor<AliasID>
|
public class MINEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.mobileID;
|
package ua.in.smartjava.alias.id.mobileID;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mobile ID Number
|
* Mobile ID Number
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.mpt1327;
|
package ua.in.smartjava.alias.id.mpt1327;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
public class MPT1327ID extends AliasID
|
public class MPT1327ID extends AliasID
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.mpt1327;
|
package ua.in.smartjava.alias.id.mpt1327;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -31,7 +31,7 @@ import javax.swing.JTextField;
|
|||||||
import javax.swing.text.MaskFormatter;
|
import javax.swing.text.MaskFormatter;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class MPT1327IDEditor extends DocumentListenerEditor<AliasID>
|
public class MPT1327IDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
package alias.id.nonrecordable;
|
package ua.in.smartjava.alias.id.nonrecordable;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
public class NonRecordable extends AliasID
|
public class NonRecordable extends AliasID
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.nonrecordable;
|
package ua.in.smartjava.alias.id.nonrecordable;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -28,7 +28,7 @@ import javax.swing.JLabel;
|
|||||||
import javax.swing.JOptionPane;
|
import javax.swing.JOptionPane;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class NonRecordableEditor extends DocumentListenerEditor<AliasID>
|
public class NonRecordableEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -36,11 +36,11 @@ public class NonRecordableEditor extends DocumentListenerEditor<AliasID>
|
|||||||
|
|
||||||
private static final String HELP_TEXT = "<html>"
|
private static final String HELP_TEXT = "<html>"
|
||||||
+ "<h3>Audio Non-Recordable</h3>"
|
+ "<h3>Audio Non-Recordable</h3>"
|
||||||
+ "This identifies an alias as non-recordable.<br><br>"
|
+ "This identifies an ua.in.smartjava.alias as non-recordable.<br><br>"
|
||||||
+ "The alias can still be monitored but associated audio will<br>"
|
+ "The ua.in.smartjava.alias can still be monitored but associated ua.in.smartjava.audio will<br>"
|
||||||
+ "not be recorded.<br><br>"
|
+ "not be recorded.<br><br>"
|
||||||
+ "The default behavior when audio recording is enabled for a<br>"
|
+ "The default behavior when ua.in.smartjava.audio recording is enabled for a<br>"
|
||||||
+ "channel is to record all aliases except any alias with a<br>"
|
+ "ua.in.smartjava.channel is to ua.in.smartjava.record all aliases except any ua.in.smartjava.alias with a<br>"
|
||||||
+ "non-recordable identifier";
|
+ "non-recordable identifier";
|
||||||
|
|
||||||
public NonRecordableEditor( AliasID aliasID )
|
public NonRecordableEditor( AliasID aliasID )
|
||||||
@@ -15,15 +15,15 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.priority;
|
package ua.in.smartjava.alias.id.priority;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies an (audio) priority level for this alias.
|
* Specifies an (ua.in.smartjava.audio) priority level for this ua.in.smartjava.alias.
|
||||||
*/
|
*/
|
||||||
public class Priority extends AliasID
|
public class Priority extends AliasID
|
||||||
{
|
{
|
||||||
@@ -46,7 +46,7 @@ public class Priority extends AliasID
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates the associated alias should not be monitored or tracked.
|
* Indicates the associated ua.in.smartjava.alias should not be monitored or tracked.
|
||||||
*/
|
*/
|
||||||
public boolean isDoNotMonitor()
|
public boolean isDoNotMonitor()
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.priority;
|
package ua.in.smartjava.alias.id.priority;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -31,7 +31,7 @@ import javax.swing.event.ChangeEvent;
|
|||||||
import javax.swing.event.ChangeListener;
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class PriorityEditor extends DocumentListenerEditor<AliasID>
|
public class PriorityEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -42,8 +42,8 @@ public class PriorityEditor extends DocumentListenerEditor<AliasID>
|
|||||||
private static final String HELP_TEXT = "<html>"
|
private static final String HELP_TEXT = "<html>"
|
||||||
+ "<h3>Call Audio Priority</h3>"
|
+ "<h3>Call Audio Priority</h3>"
|
||||||
+ "Priority determines which calls have priority for playback<br>"
|
+ "Priority determines which calls have priority for playback<br>"
|
||||||
+ "over your computer speakers, or designates an alias for<br>"
|
+ "over your computer speakers, or designates an ua.in.smartjava.alias for<br>"
|
||||||
+ "no-monitoring if you don't want to hear calls from an alias.<br><br>"
|
+ "no-monitoring if you don't want to hear calls from an ua.in.smartjava.alias.<br><br>"
|
||||||
+ "Lower values indicate higher priority levels.<br><br>"
|
+ "Lower values indicate higher priority levels.<br><br>"
|
||||||
+ "<b>Do Not Monitor: </b> slide priority all the way to the right"
|
+ "<b>Do Not Monitor: </b> slide priority all the way to the right"
|
||||||
+ "</html>";
|
+ "</html>";
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.siteID;
|
package ua.in.smartjava.alias.id.siteID;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
public class SiteID extends AliasID
|
public class SiteID extends AliasID
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.siteID;
|
package ua.in.smartjava.alias.id.siteID;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -29,7 +29,7 @@ import javax.swing.JOptionPane;
|
|||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class SiteIDEditor extends DocumentListenerEditor<AliasID>
|
public class SiteIDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.status;
|
package ua.in.smartjava.alias.id.status;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
public class StatusID extends AliasID
|
public class StatusID extends AliasID
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.status;
|
package ua.in.smartjava.alias.id.status;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -31,7 +31,7 @@ import javax.swing.JTextField;
|
|||||||
import javax.swing.text.MaskFormatter;
|
import javax.swing.text.MaskFormatter;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class StatusIDEditor extends DocumentListenerEditor<AliasID>
|
public class StatusIDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ public class StatusIDEditor extends DocumentListenerEditor<AliasID>
|
|||||||
+ "Status numbers are used in some protocols like Fleetsync.<br><br>"
|
+ "Status numbers are used in some protocols like Fleetsync.<br><br>"
|
||||||
+ "The status number is assigned a meaning in the radio. You<br>"
|
+ "The status number is assigned a meaning in the radio. You<br>"
|
||||||
+ "can assign a 3 digit status code (use leading zeros) to an<br>"
|
+ "can assign a 3 digit status code (use leading zeros) to an<br>"
|
||||||
+ "alias where the alias contains the status meaning.<br><br>"
|
+ "ua.in.smartjava.alias where the ua.in.smartjava.alias contains the status meaning.<br><br>"
|
||||||
+ "<b>Status:</b> <u>001</u> engine start"
|
+ "<b>Status:</b> <u>001</u> engine start"
|
||||||
+ "</html>";
|
+ "</html>";
|
||||||
|
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.talkgroup;
|
package ua.in.smartjava.alias.id.talkgroup;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.talkgroup;
|
package ua.in.smartjava.alias.id.talkgroup;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -29,7 +29,7 @@ import javax.swing.JOptionPane;
|
|||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class TalkgroupIDEditor extends DocumentListenerEditor<AliasID>
|
public class TalkgroupIDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -15,12 +15,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.uniqueID;
|
package ua.in.smartjava.alias.id.uniqueID;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
import alias.id.AliasIDType;
|
import ua.in.smartjava.alias.id.AliasIDType;
|
||||||
|
|
||||||
public class UniqueID extends AliasID
|
public class UniqueID extends AliasID
|
||||||
{
|
{
|
||||||
@@ -15,9 +15,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package alias.id.uniqueID;
|
package ua.in.smartjava.alias.id.uniqueID;
|
||||||
|
|
||||||
import gui.editor.DocumentListenerEditor;
|
import ua.in.smartjava.gui.editor.DocumentListenerEditor;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Cursor;
|
import java.awt.Cursor;
|
||||||
@@ -29,7 +29,7 @@ import javax.swing.JOptionPane;
|
|||||||
import javax.swing.JTextField;
|
import javax.swing.JTextField;
|
||||||
|
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import alias.id.AliasID;
|
import ua.in.smartjava.alias.id.AliasID;
|
||||||
|
|
||||||
public class UniqueIDEditor extends DocumentListenerEditor<AliasID>
|
public class UniqueIDEditor extends DocumentListenerEditor<AliasID>
|
||||||
{
|
{
|
||||||
@@ -16,19 +16,18 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package audio;
|
package ua.in.smartjava.audio;
|
||||||
|
|
||||||
import alias.Alias;
|
import ua.in.smartjava.alias.Alias;
|
||||||
import audio.output.AudioOutput;
|
import ua.in.smartjava.audio.output.AudioOutput;
|
||||||
import channel.metadata.Metadata;
|
import ua.in.smartjava.channel.metadata.Metadata;
|
||||||
import icon.IconManager;
|
import ua.in.smartjava.icon.IconManager;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import properties.SystemProperties;
|
import ua.in.smartjava.properties.SystemProperties;
|
||||||
import sample.Listener;
|
import ua.in.smartjava.sample.Listener;
|
||||||
import settings.ColorSetting;
|
import settings.ColorSetting;
|
||||||
import settings.ColorSetting.ColorSettingName;
|
|
||||||
import settings.Setting;
|
import settings.Setting;
|
||||||
import settings.SettingChangeListener;
|
import settings.SettingChangeListener;
|
||||||
import settings.SettingsManager;
|
import settings.SettingsManager;
|
||||||
@@ -42,7 +41,7 @@ public class AudioChannelPanel extends JPanel
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static final Logger mLog = LoggerFactory.getLogger(AudioChannelPanel.class);
|
private static final Logger mLog = LoggerFactory.getLogger(AudioChannelPanel.class);
|
||||||
|
|
||||||
public static final String PROPERTY_PREFIX = "audio.channel.panel.color.";
|
public static final String PROPERTY_PREFIX = "ua.in.smartjava.audio.ua.in.smartjava.channel.panel.color.";
|
||||||
public static final String PROPERTY_COLOR_BACKGROUND = PROPERTY_PREFIX + "background";
|
public static final String PROPERTY_COLOR_BACKGROUND = PROPERTY_PREFIX + "background";
|
||||||
public static final String PROPERTY_COLOR_LABEL = PROPERTY_PREFIX + "label";
|
public static final String PROPERTY_COLOR_LABEL = PROPERTY_PREFIX + "label";
|
||||||
public static final String PROPERTY_COLOR_MUTED = PROPERTY_PREFIX + "muted";
|
public static final String PROPERTY_COLOR_MUTED = PROPERTY_PREFIX + "muted";
|
||||||
@@ -156,7 +155,7 @@ public class AudioChannelPanel extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the alias label with text and icon from the alias. Note: this
|
* Updates the ua.in.smartjava.alias label with text and ua.in.smartjava.icon from the ua.in.smartjava.alias. Note: this
|
||||||
* does not occur on the Swing event thread -- wrap any calls to this
|
* does not occur on the Swing event thread -- wrap any calls to this
|
||||||
* method with an event thread call.
|
* method with an event thread call.
|
||||||
*/
|
*/
|
||||||
@@ -195,7 +194,7 @@ public class AudioChannelPanel extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Processes audio metadata to update this panel's display values
|
* Processes ua.in.smartjava.audio metadata to update this panel's display values
|
||||||
*/
|
*/
|
||||||
public class AudioMetadataProcessor implements Listener<Metadata>
|
public class AudioMetadataProcessor implements Listener<Metadata>
|
||||||
{
|
{
|
||||||
@@ -16,10 +16,10 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package audio;
|
package ua.in.smartjava.audio;
|
||||||
|
|
||||||
import audio.output.AudioOutput;
|
import ua.in.smartjava.audio.output.AudioOutput;
|
||||||
import icon.IconManager;
|
import ua.in.smartjava.icon.IconManager;
|
||||||
import net.miginfocom.swing.MigLayout;
|
import net.miginfocom.swing.MigLayout;
|
||||||
import settings.SettingsManager;
|
import settings.SettingsManager;
|
||||||
|
|
||||||
@@ -51,8 +51,8 @@ public class AudioChannelsPanel extends JPanel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add an empty channel panel so that the panel is sized appropriately
|
/* Add an empty ua.in.smartjava.channel panel so that the panel is sized appropriately
|
||||||
* for either a single channel or two channels */
|
* for either a single ua.in.smartjava.channel or two channels */
|
||||||
if(outputs.size() == 1)
|
if(outputs.size() == 1)
|
||||||
{
|
{
|
||||||
addSeparator();
|
addSeparator();
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package audio;
|
package ua.in.smartjava.audio;
|
||||||
|
|
||||||
public class AudioEvent
|
public class AudioEvent
|
||||||
{
|
{
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user