Class Graph2DInt.DrawingTransformer

java.lang.Object
edu.uci.ics.jung.visualization.BasicTransformer
mgui.interfaces.shapes.graphs.Graph2DInt.DrawingTransformer
All Implemented Interfaces:
edu.uci.ics.jung.visualization.MultiLayerTransformer, edu.uci.ics.jung.visualization.transform.BidirectionalTransformer, edu.uci.ics.jung.visualization.transform.MutableTransformer, edu.uci.ics.jung.visualization.transform.shape.ShapeTransformer, edu.uci.ics.jung.visualization.util.ChangeEventSupport, java.util.EventListener, javax.swing.event.ChangeListener
Enclosing class:
Graph2DInt

protected class Graph2DInt.DrawingTransformer
extends edu.uci.ics.jung.visualization.BasicTransformer
implements edu.uci.ics.jung.visualization.transform.MutableTransformer
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected DrawingEngine drawing_engine  

    Fields inherited from class edu.uci.ics.jung.visualization.BasicTransformer

    changeSupport, layoutTransformer, viewTransformer
  • Constructor Summary

    Constructors
    Constructor Description
    DrawingTransformer​(DrawingEngine de)  
  • Method Summary

    Modifier and Type Method Description
    void concatenate​(java.awt.geom.AffineTransform transform)  
    double getRotation()  
    double getScale()  
    double getScaleX()  
    double getScaleY()  
    double getShearX()  
    double getShearY()  
    java.awt.geom.AffineTransform getTransform()  
    edu.uci.ics.jung.visualization.transform.MutableTransformer getTransformer​(edu.uci.ics.jung.visualization.Layer layer)  
    double getTranslateX()  
    double getTranslateY()  
    void preConcatenate​(java.awt.geom.AffineTransform transform)  
    void rotate​(double radians, double x, double y)  
    void rotate​(double radians, java.awt.geom.Point2D point)  
    void scale​(double sx, double sy, java.awt.geom.Point2D point)  
    void setDrawingEngine​(DrawingEngine de)  
    void setScale​(double sx, double sy, java.awt.geom.Point2D point)  
    void setTranslate​(double dx, double dy)  
    void shear​(double shx, double shy, java.awt.geom.Point2D from)  
    java.awt.geom.Point2D transform​(edu.uci.ics.jung.visualization.Layer layer, java.awt.geom.Point2D p)  
    java.awt.geom.Point2D transform​(java.awt.geom.Point2D p)  
    void translate​(double dx, double dy)  

    Methods inherited from class edu.uci.ics.jung.visualization.BasicTransformer

    addChangeListener, fireStateChanged, getChangeListeners, getLayoutTransformer, getViewTransformer, inverseLayoutTransform, inverseLayoutTransform, inverseTransform, inverseTransform, inverseTransform, inverseTransform, inverseViewTransform, inverseViewTransform, layoutTransform, layoutTransform, removeChangeListener, setLayoutTransformer, setToIdentity, setTransformer, setViewTransformer, stateChanged, transform, transform, viewTransform, viewTransform

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface edu.uci.ics.jung.visualization.transform.BidirectionalTransformer

    inverseTransform

    Methods inherited from interface edu.uci.ics.jung.visualization.util.ChangeEventSupport

    addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener

    Methods inherited from interface edu.uci.ics.jung.visualization.transform.MutableTransformer

    setToIdentity

    Methods inherited from interface edu.uci.ics.jung.visualization.transform.shape.ShapeTransformer

    inverseTransform, transform
  • Field Details

  • Constructor Details

    • DrawingTransformer

      public DrawingTransformer​(DrawingEngine de)
  • Method Details

    • setDrawingEngine

      public void setDrawingEngine​(DrawingEngine de)
    • transform

      public java.awt.geom.Point2D transform​(java.awt.geom.Point2D p)
      Specified by:
      transform in interface edu.uci.ics.jung.visualization.transform.BidirectionalTransformer
      Overrides:
      transform in class edu.uci.ics.jung.visualization.BasicTransformer
    • transform

      public java.awt.geom.Point2D transform​(edu.uci.ics.jung.visualization.Layer layer, java.awt.geom.Point2D p)
      Specified by:
      transform in interface edu.uci.ics.jung.visualization.MultiLayerTransformer
      Overrides:
      transform in class edu.uci.ics.jung.visualization.BasicTransformer
    • getTransformer

      public edu.uci.ics.jung.visualization.transform.MutableTransformer getTransformer​(edu.uci.ics.jung.visualization.Layer layer)
      Specified by:
      getTransformer in interface edu.uci.ics.jung.visualization.MultiLayerTransformer
      Overrides:
      getTransformer in class edu.uci.ics.jung.visualization.BasicTransformer
    • translate

      public void translate​(double dx, double dy)
      Specified by:
      translate in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • setTranslate

      public void setTranslate​(double dx, double dy)
      Specified by:
      setTranslate in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • scale

      public void scale​(double sx, double sy, java.awt.geom.Point2D point)
      Specified by:
      scale in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • setScale

      public void setScale​(double sx, double sy, java.awt.geom.Point2D point)
      Specified by:
      setScale in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • rotate

      public void rotate​(double radians, java.awt.geom.Point2D point)
      Specified by:
      rotate in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • rotate

      public void rotate​(double radians, double x, double y)
      Specified by:
      rotate in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • shear

      public void shear​(double shx, double shy, java.awt.geom.Point2D from)
      Specified by:
      shear in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • concatenate

      public void concatenate​(java.awt.geom.AffineTransform transform)
      Specified by:
      concatenate in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • preConcatenate

      public void preConcatenate​(java.awt.geom.AffineTransform transform)
      Specified by:
      preConcatenate in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getScaleX

      public double getScaleX()
      Specified by:
      getScaleX in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getScaleY

      public double getScaleY()
      Specified by:
      getScaleY in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getScale

      public double getScale()
      Specified by:
      getScale in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getTranslateX

      public double getTranslateX()
      Specified by:
      getTranslateX in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getTranslateY

      public double getTranslateY()
      Specified by:
      getTranslateY in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getShearX

      public double getShearX()
      Specified by:
      getShearX in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getShearY

      public double getShearY()
      Specified by:
      getShearY in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getTransform

      public java.awt.geom.AffineTransform getTransform()
      Specified by:
      getTransform in interface edu.uci.ics.jung.visualization.transform.MutableTransformer
    • getRotation

      public double getRotation()
      Specified by:
      getRotation in interface edu.uci.ics.jung.visualization.transform.MutableTransformer