com.mxgraph.swing.util.mxMorphing Maven / Gradle / Ivy
/**
* $Id: mxMorphing.java,v 1.1 2010-06-08 09:49:59 gaudenz Exp $
* Copyright (c) 2007, Gaudenz Alder
*/
package com.mxgraph.swing.util;
import java.awt.Graphics;
import java.util.HashMap;
import java.util.Map;
import com.mxgraph.model.mxGeometry;
import com.mxgraph.swing.mxGraphComponent;
import com.mxgraph.swing.view.mxCellStatePreview;
import com.mxgraph.util.mxEvent;
import com.mxgraph.util.mxEventObject;
import com.mxgraph.util.mxPoint;
import com.mxgraph.util.mxRectangle;
import com.mxgraph.view.mxCellState;
import com.mxgraph.view.mxGraph;
/**
* Provides animation effects.
*/
public class mxMorphing extends mxAnimation
{
/**
* Reference to the enclosing graph instance.
*/
protected mxGraphComponent graphComponent;
/**
* Specifies the maximum number of steps for the morphing. Default is
* 6.
*/
protected int steps;
/**
* Counts the current number of steps of the animation.
*/
protected int step;
/**
* Ease-off for movement towards the given vector. Larger values are
* slower and smoother. Default is 1.5.
*/
protected double ease;
/**
* Maps from cells to origins.
*/
protected Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy