|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.visualization.BasicTransformer
public class BasicTransformer
A basic implementation of the MultiLayerTransformer interface that provides two Layers: VIEW and LAYOUT. It also provides ChangeEventSupport
Field Summary | |
---|---|
protected ChangeEventSupport |
changeSupport
|
protected MutableTransformer |
layoutTransformer
|
protected MutableTransformer |
viewTransformer
|
Constructor Summary | |
---|---|
BasicTransformer()
Creates an instance and notifies the view and layout transformers to listen to changes published by this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ChangeEventSupport changeSupport
protected MutableTransformer viewTransformer
protected MutableTransformer layoutTransformer
Constructor Detail |
---|
public BasicTransformer()
Method Detail |
---|
protected void setViewTransformer(MutableTransformer transformer)
edu.uci.ics.jung.visualization.MultiLayerTransformer#setViewTransformer(edu.uci.ics.jung.visualization.transform.MutableTransformer)
protected void setLayoutTransformer(MutableTransformer transformer)
protected MutableTransformer getLayoutTransformer()
protected MutableTransformer getViewTransformer()
public Point2D inverseTransform(Point2D p)
BidirectionalTransformer
inverseTransform
in interface BidirectionalTransformer
p
- screen point to convert
protected Point2D inverseViewTransform(Point2D p)
protected Point2D inverseLayoutTransform(Point2D p)
public Point2D transform(Point2D p)
BidirectionalTransformer
transform
in interface BidirectionalTransformer
p
- graph point to convert
protected Point2D viewTransform(Point2D p)
protected Point2D layoutTransform(Point2D p)
public Shape inverseTransform(Shape shape)
inverseTransform
in interface BidirectionalTransformer
inverseTransform
in interface ShapeTransformer
protected Shape inverseViewTransform(Shape shape)
protected Shape inverseLayoutTransform(Shape shape)
public Shape transform(Shape shape)
ShapeTransformer
transform
in interface BidirectionalTransformer
transform
in interface ShapeTransformer
protected Shape viewTransform(Shape shape)
protected Shape layoutTransform(Shape shape)
public void setToIdentity()
setToIdentity
in interface MultiLayerTransformer
public void addChangeListener(ChangeListener l)
addChangeListener
in interface ChangeEventSupport
public void removeChangeListener(ChangeListener l)
ChangeEventSupport
removeChangeListener
in interface ChangeEventSupport
l
- the listener to be removedpublic ChangeListener[] getChangeListeners()
ChangeEventSupport
ChangeListener
s added
with addChangeListener().
getChangeListeners
in interface ChangeEventSupport
ChangeListener
s added or an empty
array if no listeners have been addedpublic void fireStateChanged()
fireStateChanged
in interface ChangeEventSupport
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public MutableTransformer getTransformer(Layer layer)
getTransformer
in interface MultiLayerTransformer
public Point2D inverseTransform(Layer layer, Point2D p)
inverseTransform
in interface MultiLayerTransformer
public void setTransformer(Layer layer, MutableTransformer transformer)
setTransformer
in interface MultiLayerTransformer
edu.uci.ics.jung.visualization.VisualizationServer#setViewTransformer(edu.uci.ics.jung.visualization.transform.MutableTransformer)
public Point2D transform(Layer layer, Point2D p)
transform
in interface MultiLayerTransformer
public Shape transform(Layer layer, Shape shape)
transform
in interface MultiLayerTransformer
public Shape inverseTransform(Layer layer, Shape shape)
inverseTransform
in interface MultiLayerTransformer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |