Exemple #1
0
 /** 放大 */
 public void zoomIn() {
   graph.setScale(graph.getScale() * 1.5);
 }
Exemple #2
0
 /** 缩小 */
 public void zoomOut() {
   graph.setScale(graph.getScale() / 1.5);
 }
Exemple #3
0
 /** 缩放为实际大小 */
 public void zoom() {
   graph.setScale(1.0);
 }