TetrisPanel
AVISO: Debido a cómo funciona ScalaDocs, no podemos excluir los métodos herados de ScalaSwing, por lo que se recomienda activar el filtro "NoInherited" para solo ver los métodos creados.
Panel que implementa la interfaz gráfica del juego Tetris.
Este panel maneja:
- El renderizado del tablero de juego
- La visualización de piezas y efectos
- Los paneles de información (estadísticas, siguiente pieza, hold)
- Los estados especiales (pausa, game over)
- Efectos visuales y animaciones
Value parameters
- engine
-
Motor del juego que proporciona la lógica
- initialBlockSize
-
Tamaño inicial de cada bloque en píxeles
Attributes
- Graph
-
- Supertypes
-
class Paneltrait Wrappertrait Containerclass Componenttrait UIElementtrait Publishertrait Reactortrait Proxyclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- Wrapper
- Supertypes
-
class BufferWrapper[Component]trait Buffer[Component]trait Shrinkable[Component]trait Growable[Component]trait Clearabletrait Seq[Component]trait SeqOps[Component, Buffer, Buffer[Component]]trait Cloneable[Buffer[Component]]trait Cloneabletrait Seq[Component]trait Equalstrait SeqOps[Component, Buffer, Buffer[Component]]trait PartialFunction[Int, Component]trait Int => Componenttrait Iterable[Component]trait Iterable[Component]trait IterableFactoryDefaults[Component, Buffer]trait IterableOps[Component, Buffer, Buffer[Component]]trait IterableOnceOps[Component, Buffer, Buffer[Component]]trait IterableOnce[Component]class Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
For custom painting, users should usually override this method.
For custom painting, users should usually override this method.
Attributes
- Definition Classes
-
Component
Redimensiona el tamaño del bloque y los márgenes para adaptarse al tamaño actual del panel.
Redimensiona el tamaño del bloque y los márgenes para adaptarse al tamaño actual del panel.
Attributes
Inherited methods
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
The child components of this container.
The child components of this container.
Attributes
- Inherited from:
- Wrapper
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Installed reaction won't receive events from the given publisher anylonger.
Installed reaction won't receive events from the given publisher anylonger.
Attributes
- Inherited from:
- Reactor
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
Proxy -> Any
- Inherited from:
- Proxy
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- Component
Calculate a hash code value for the object.
Calculate a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
- Returns
-
the hash code value for this object.
- Definition Classes
-
Proxy -> Any
- Inherited from:
- Proxy
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Listen to the given publisher as long as deafTo
isn't called for them.
Listen to the given publisher as long as deafTo
isn't called for them.
Attributes
- Inherited from:
- Reactor
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Notify all registered reactions.
Notify all registered reactions.
Attributes
- Inherited from:
- Publisher
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Definition Classes
-
LazyPublisher -> Publisher
- Inherited from:
- LazyPublisher (hidden)
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Component -> Proxy -> Any
- Inherited from:
- Component
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Definition Classes
-
LazyPublisher -> Publisher
- Inherited from:
- LazyPublisher (hidden)
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Attributes
- Inherited from:
- UIElement
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Attributes
- Inherited from:
- Component
Inherited fields
Attributes
- Inherited from:
- Publisher
The underlying Swing peer.
The underlying Swing peer.
Attributes
- Inherited from:
- Panel
All reactions of this reactor.
All reactions of this reactor.
Attributes
- Inherited from:
- Reactor