|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.ics.jung.visualization.control.CrossoverScalingControl
public class CrossoverScalingControl
A scaling control that has a crossover point. When the overall scale of the view and model is less than the crossover point, the scaling is applied to the view's transform and the graph nodes, labels, etc grow smaller. This preserves the overall shape of the graph. When the scale is larger than the crossover, the scaling is applied to the graph layout. The graph spreads out, but the vertices and labels grow no larger than their original size.
Field Summary | |
---|---|
protected double |
crossover
Point where scale crosses over from view to layout. |
Constructor Summary | |
---|---|
CrossoverScalingControl()
|
Method Summary | |
---|---|
double |
getCrossover()
Returns the current crossover value. |
void |
scale(VisualizationServer<?,?> vv,
float amount,
Point2D at)
zoom the display in or out |
void |
setCrossover(double crossover)
Sets the crossover point to the specified value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double crossover
Constructor Detail |
---|
public CrossoverScalingControl()
Method Detail |
---|
public void setCrossover(double crossover)
public double getCrossover()
public void scale(VisualizationServer<?,?> vv, float amount, Point2D at)
ScalingControl
scale
in interface ScalingControl
vv
- the VisualizationVieweramount
- how much to adjust scale byat
- where to adjust scale fromedu.uci.ics.jung.visualization.control.ScalingControl#scale(VisualizationViewer, float, Point2D)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |