Package mgui.interfaces.shapes.graphs
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
-
drawing_engine
-
-
Constructor Details
-
DrawingTransformer
-
-
Method Details
-
setDrawingEngine
-
transform
public java.awt.geom.Point2D transform(java.awt.geom.Point2D p)- Specified by:
transform
in interfaceedu.uci.ics.jung.visualization.transform.BidirectionalTransformer
- Overrides:
transform
in classedu.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 interfaceedu.uci.ics.jung.visualization.MultiLayerTransformer
- Overrides:
transform
in classedu.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 interfaceedu.uci.ics.jung.visualization.MultiLayerTransformer
- Overrides:
getTransformer
in classedu.uci.ics.jung.visualization.BasicTransformer
-
translate
public void translate(double dx, double dy)- Specified by:
translate
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
setTranslate
public void setTranslate(double dx, double dy)- Specified by:
setTranslate
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
scale
public void scale(double sx, double sy, java.awt.geom.Point2D point)- Specified by:
scale
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
setScale
public void setScale(double sx, double sy, java.awt.geom.Point2D point)- Specified by:
setScale
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
rotate
public void rotate(double radians, java.awt.geom.Point2D point)- Specified by:
rotate
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
rotate
public void rotate(double radians, double x, double y)- Specified by:
rotate
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
shear
public void shear(double shx, double shy, java.awt.geom.Point2D from)- Specified by:
shear
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
concatenate
public void concatenate(java.awt.geom.AffineTransform transform)- Specified by:
concatenate
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
preConcatenate
public void preConcatenate(java.awt.geom.AffineTransform transform)- Specified by:
preConcatenate
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getScaleX
public double getScaleX()- Specified by:
getScaleX
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getScaleY
public double getScaleY()- Specified by:
getScaleY
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getScale
public double getScale()- Specified by:
getScale
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getTranslateX
public double getTranslateX()- Specified by:
getTranslateX
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getTranslateY
public double getTranslateY()- Specified by:
getTranslateY
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getShearX
public double getShearX()- Specified by:
getShearX
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getShearY
public double getShearY()- Specified by:
getShearY
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getTransform
public java.awt.geom.AffineTransform getTransform()- Specified by:
getTransform
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-
getRotation
public double getRotation()- Specified by:
getRotation
in interfaceedu.uci.ics.jung.visualization.transform.MutableTransformer
-