Class LensMagnificationGraphMousePlugin

  • All Implemented Interfaces:
    GraphMousePlugin, java.awt.event.MouseWheelListener, java.util.EventListener

    public class LensMagnificationGraphMousePlugin
    extends AbstractGraphMousePlugin
    implements java.awt.event.MouseWheelListener
    HyperbolicMagnificationGraphMousePlugin changes the magnification within the Hyperbolic projection of the HyperbolicTransformer.
    • Field Detail

      • floor

        protected float floor
      • ceiling

        protected float ceiling
      • delta

        protected float delta
    • Constructor Detail

      • LensMagnificationGraphMousePlugin

        public LensMagnificationGraphMousePlugin()
        create an instance with default zoom in/out values
      • LensMagnificationGraphMousePlugin

        public LensMagnificationGraphMousePlugin​(float floor,
                                                 float ceiling,
                                                 float delta)
        create an instance with passed modifiers
        Parameters:
        modifiers -
      • LensMagnificationGraphMousePlugin

        public LensMagnificationGraphMousePlugin​(int modifiers)
      • LensMagnificationGraphMousePlugin

        public LensMagnificationGraphMousePlugin​(int modifiers,
                                                 float floor,
                                                 float ceiling,
                                                 float delta)
    • Method Detail

      • checkModifiers

        public boolean checkModifiers​(java.awt.event.MouseEvent e)
        override to check equality with a mask
        Specified by:
        checkModifiers in interface GraphMousePlugin
        Overrides:
        checkModifiers in class AbstractGraphMousePlugin
        Parameters:
        e - an event to compare to
        Returns:
        whether the member modifers match the event modifiers
      • mouseWheelMoved

        public void mouseWheelMoved​(java.awt.event.MouseWheelEvent e)
        zoom the display in or out, depending on the direction of the mouse wheel motion.
        Specified by:
        mouseWheelMoved in interface java.awt.event.MouseWheelListener