Class: RPV::Swing::SwingSet::Panel

Inherits:
Object
  • Object
show all
Defined in:
lib/rpv/swing/swingset.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) {|_self| ... } ⇒ Panel

Returns a new instance of Panel.

Yields:

  • (_self)

Yield Parameters:



226
227
228
229
# File 'lib/rpv/swing/swingset.rb', line 226

def initialize(*args)
  super(*args)
  yield self if block_given?
end

Instance Method Details

#preferred_dimensions(width, height) ⇒ Object



231
232
233
# File 'lib/rpv/swing/swingset.rb', line 231

def preferred_dimensions(width, height)
  self.preferred_size = Dimension[width, height]
end