Class BasePanel.Scale

  • All Implemented Interfaces:
    java.lang.Cloneable
    Enclosing class:
    BasePanel

    static class BasePanel.Scale
    extends java.lang.Object
    implements java.lang.Cloneable
    • Field Detail

      • width

        private float width
      • height

        private float height
      • minX

        private float minX
      • maxX

        private float maxX
      • minY

        private float minY
      • maxY

        private float maxY
      • rotation

        private double rotation
      • saveMinX

        private float saveMinX
      • saveMaxX

        private float saveMaxX
      • saveMinY

        private float saveMinY
      • saveMaxY

        private float saveMaxY
      • saveRotation

        private double saveRotation
      • disableAutoScale

        boolean disableAutoScale
      • lastAutoScale

        long lastAutoScale
      • mouseLeftDown

        boolean mouseLeftDown
      • mouseRightDown

        boolean mouseRightDown
      • xDown

        private int xDown
      • yDown

        private int yDown
    • Constructor Detail

      • Scale

        Scale()
    • Method Detail

      • clone

        public BasePanel.Scale clone()
        Overrides:
        clone in class java.lang.Object
      • setSize

        public void setSize​(org.eclipse.swt.graphics.Rectangle size)
      • setScale

        public void setScale​(float min_x,
                             float max_x,
                             float min_y,
                             float max_y)
      • setScaleAndRotation

        public void setScaleAndRotation​(float min_x,
                                        float max_x,
                                        float min_y,
                                        float max_y,
                                        double rot)
      • getMinX

        public float getMinX()
      • getMaxX

        public float getMaxX()
      • getMinY

        public float getMinY()
      • getMaxY

        public float getMaxY()
      • reset

        public void reset()
      • getX

        public int getX​(float x,
                        float y)
      • getY

        public int getY​(float x,
                        float y)
      • getXY

        public int[] getXY​(float x,
                           float y)
      • getReverseWidth

        public int getReverseWidth​(float w)
      • getReverseHeight

        public int getReverseHeight​(float h)
      • mouseDown

        public void mouseDown​(org.eclipse.swt.events.MouseEvent event)
      • mouseUp

        public void mouseUp​(org.eclipse.swt.events.MouseEvent event)
      • mouseWheel

        public void mouseWheel​(org.eclipse.swt.widgets.Event event)
      • mouseMove

        public boolean mouseMove​(org.eclipse.swt.events.MouseEvent event)