Last change
on this file since 349 was 349, checked in by bjn8, 16 years ago |
Added y-pixel information to audio model.
Added Position-info retreival in quick text search util.
Added mutable primitive type
Linked track layout views now position tracks according to position in frame...a long coming modification.
|
File size:
955 bytes
|
Line | |
---|
1 | package org.apollo.util;
|
---|
2 |
|
---|
3 | import java.awt.Point;
|
---|
4 | import java.util.List;
|
---|
5 | /**
|
---|
6 | * Represents a single mutable search result.
|
---|
7 | *
|
---|
8 | * @author Brook Novak
|
---|
9 | */
|
---|
10 | public class TextItemSearchResult {
|
---|
11 | /** The textual content of the text item. */
|
---|
12 | public String text;
|
---|
13 |
|
---|
14 | /** The link of the item. Null if no link: note: this could be a number ... in expeditees format without F tag. */
|
---|
15 | public String explink;
|
---|
16 |
|
---|
17 | /** Any data that is with the text item. */
|
---|
18 | public List<String> data;
|
---|
19 |
|
---|
20 | /** The pixel position in the frame at which the text item resides. */
|
---|
21 | public Point position;
|
---|
22 |
|
---|
23 | public boolean containsData(String str) {
|
---|
24 | assert(str != null);
|
---|
25 | if (data != null)
|
---|
26 | return data.contains(str);
|
---|
27 | return false;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public boolean containsDataTrimmedIgnoreCase(String str) {
|
---|
31 | assert(str != null);
|
---|
32 | if (data != null) {
|
---|
33 | for (String d : data) {
|
---|
34 | if (d != null && d.trim().equalsIgnoreCase(str)) {
|
---|
35 | return true;
|
---|
36 | }
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 | return false;
|
---|
41 | }
|
---|
42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.