Class: RPV::Swing::SwingSet::Frame
- Inherits:
-
Object
- Object
- RPV::Swing::SwingSet::Frame
- Defined in:
- lib/rpv/swing/swingset.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Frame
constructor
A new instance of Frame.
- #minimum_dimensions(width, height) ⇒ Object
- #preferred_dimensions(width, height) ⇒ Object
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 |