Class: Cheri::JRuby::Explorer::SplashScreen
- Inherits:
-
Object
- Object
- Cheri::JRuby::Explorer::SplashScreen
- Includes:
- Swing
- Defined in:
- lib/cheri/jruby/explorer/splash.rb
Constant Summary collapse
- Font =
::Java::JavaAwt::Font
Constants included from Swing
Instance Method Summary collapse
-
#initialize ⇒ SplashScreen
constructor
A new instance of SplashScreen.
- #splash(&block) ⇒ Object
Constructor Details
#initialize ⇒ SplashScreen
Returns a new instance of SplashScreen.
32 33 34 |
# File 'lib/cheri/jruby/explorer/splash.rb', line 32 def initialize swing[:auto => true] end |
Instance Method Details
#splash(&block) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/cheri/jruby/explorer/splash.rb', line 35 def splash(&block) img_path = Cheri.img_path @panel ||= y_panel do align :LEFT background :WHITE; bevel_border :LOWERED y_spacer 56 x_box do x_glue x_spacer 20 y_box do label image_icon("#{img_path}cheri_logo_medium.png") y_spacer 100 end y_box do y_spacer 100 label image_icon("#{img_path}jruby_logo.png") end x_spacer 50 x_glue end x_box do label 'E x p l o r e r' do font 'Dialog', Font::BOLD|Font::ITALIC, 100; align :CENTER; foreground :BLUE end x_spacer 50 end y_glue x_box do label '(C) 2007 Bill Dortch. JRuby logo (C) 2006 Codehaus Foundation.' do foreground :GRAY; font 'Dialog',:BOLD,11 end end x_box do label 'Some icons (C) Freeiconsweb http://www.freeiconsweb.com' do foreground :GRAY; font 'Dialog',:BOLD,11 end end end cheri_yield(panel,&block) if block @panel end |