Class: RPV::Swing::SwingSet::Frame

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Frame

Returns a new instance of Frame.



238
239
240
# File 'lib/rpv/swing/swingset.rb', line 238

def initialize(*args)
  super(*args)
end

Instance Method Details

#minimum_dimensions(width, height) ⇒ Object



242
243
244
# File 'lib/rpv/swing/swingset.rb', line 242

def minimum_dimensions(width, height)
  self.minimum_size = Dimension[width.to_i, height.to_i]
end

#preferred_dimensions(width, height) ⇒ Object



246
247
248
# File 'lib/rpv/swing/swingset.rb', line 246

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