java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
rs.edu.raf.dsw.rudok.app.gui.swing.mindmappanel.diagram.view.DiagramFramework
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DiagramFramework
extends JPanel

DiagramFramework

The "canvas" on which the MindMap is painted.
See Also:
Serialized Form
  • Constructor Details

    • DiagramFramework

      public DiagramFramework​(MindMap parent)
  • Method Details

    • getTranslateX

      public double getTranslateX()
    • getTranslateY

      public double getTranslateY()
    • getScaling

      public double getScaling()
    • paintComponent

      protected void paintComponent​(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • paintRectangle

      protected void paintRectangle​(int x1, int y1, int x2, int y2)
      Paints a (temporary) rectangle for displaying lasso-selection.
      Parameters:
      x1 - Origin x.
      y1 - Origin y.
      x2 - Endpoint x.
      y2 - Endpoint y.
    • paintLine

      protected void paintLine​(int x1, int y1, int x2, int y2)
      Paints a (temporary) line for displaying connections being drawn.
      Parameters:
      x1 - Origin x.
      y1 - Origin y.
      x2 - Endpoint x.
      y2 - Endpoint y.
    • clearHelpers

      protected void clearHelpers()
      Clears all temporary lines/rectangles/other helpers being drawn.
    • zoomIn

      public void zoomIn​(double coefficient)
    • zoomOut

      public void zoomOut​(double coefficient)
    • translateView

      public void translateView​(int dx, int dy)