Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Cortado
Commits
9860597b
Commit
9860597b
authored
Mar 15, 2010
by
ogg.k.ogg.k
Browse files
replace the 'speech bubble' icon with the "CC" string
parent
1aa1dcdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/com/fluendo/player/Status.java
View file @
9860597b
...
...
@@ -37,6 +37,7 @@ public class Status extends Component implements MouseListener,
private
Component
component
;
private
Font
font
=
new
Font
(
"SansSerif"
,
Font
.
PLAIN
,
10
);
private
Font
boldFont
=
new
Font
(
"SansSerif"
,
Font
.
BOLD
,
10
);
private
boolean
haveAudio
;
private
boolean
haveSubtitles
;
...
...
@@ -60,8 +61,7 @@ public class Status extends Component implements MouseListener,
private
static
final
int
SPEAKER_WIDTH
=
12
;
private
static
final
int
SPEAKER_HEIGHT
=
10
;
private
static
final
int
SUBTITLES_WIDTH
=
12
;
private
static
final
int
SUBTITLES_HEIGHT
=
10
;
private
static
final
int
SUBTITLES_WIDTH
=
16
;
private
static
final
int
TIME_WIDTH
=
38
;
private
static
final
int
SEEK_TIME_GAP
=
10
;
private
static
final
int
THUMB_WIDTH
=
9
;
...
...
@@ -89,19 +89,6 @@ public class Status extends Component implements MouseListener,
private
Image
speakerImg
;
private
int
speakerWidth
;
// width of the speaker icon or zero if hidden
private
String
subtitles
=
"\0\0\0\0\0\377\377\377\377\377\0\0"
+
"\0\0\0\0\377\0\0\0\0\0\377\0"
+
"\0\0\0\377\0\0\0\0\0\0\0\377"
+
"\0\0\0\377\0\377\377\377\377\377\0\377"
+
"\0\0\0\377\0\0\0\0\0\0\0\377"
+
"\0\0\377\377\0\377\377\377\377\377\0\377"
+
"\0\377\377\0\0\0\0\0\0\0\0\377"
+
"\0\377\0\377\377\0\0\0\0\0\377\0"
+
"\0\377\377\377\0\377\377\377\377\377\0\0"
+
"\377\0\0\0\0\0\0\0\0\0\0\0"
;
private
Image
subtitlesImg
;
private
int
subtitlesWidth
;
// width of the subtitles icon or zero if hidden
...
...
@@ -122,7 +109,6 @@ public class Status extends Component implements MouseListener,
component
=
comp
;
speakerImg
=
createImage
(
comp
,
speaker
,
SPEAKER_WIDTH
,
SPEAKER_HEIGHT
);
subtitlesImg
=
createImage
(
comp
,
subtitles
,
SUBTITLES_WIDTH
,
SUBTITLES_HEIGHT
);
button1Color
=
Color
.
black
;
button2Color
=
Color
.
black
;
...
...
@@ -299,7 +285,10 @@ public class Status extends Component implements MouseListener,
private
void
paintSubtitles
(
Graphics
g
)
{
if
(
haveSubtitles
)
{
g
.
drawImage
(
subtitlesImg
,
r
.
width
-
SUBTITLES_WIDTH
,
r
.
height
-
SUBTITLES_HEIGHT
-
1
,
null
);
g
.
setColor
(
Color
.
white
);
g
.
setFont
(
boldFont
);
g
.
drawString
(
"CC"
,
r
.
width
-
SUBTITLES_WIDTH
,
r
.
height
-
2
);
g
.
setFont
(
font
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment