Package 

Class ComponentViewPort

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.wormhole.interfaces.ViewPort

    
    public class ComponentViewPort
     implements ViewPort
                        

    Adapter class that adapts the AWT Component class to a generic ViewPort for usage in it.unibo.alchemist.boundary.wormhole.implementation.AbstractWormhole2D.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Component getComponent() Getter method for the component to be adapted.
      void setComponent(Component component) Setter method for the component to be adapted.
      double getWidth()
      double getHeight()
      boolean equals(Object o)
      int hashCode()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentViewPort

        ComponentViewPort(Component component)
        Default constructor.
        Parameters:
        component - the component to adapt