Tabnine Logo
mxConnectionConstraint
Code IndexAdd Tabnine to your IDE (free)

How to use
mxConnectionConstraint
in
com.mxgraph.view

Best Java code snippets using com.mxgraph.view.mxConnectionConstraint (Showing top 7 results out of 315)

origin: com.github.vlsi.mxgraph/jgraphx

/**
 * Constructs a new connection constraint for the given point and boolean
 * arguments.
 * 
 * @param point Optional mxPoint that specifies the fixed location of the point
 * in relative coordinates. Default is null.
 * @param perimeter Optional boolean that specifies if the fixed point should be
 * projected onto the perimeter of the terminal. Default is true.
 */
public mxConnectionConstraint(mxPoint point, boolean perimeter)
{
  setPoint(point);
  setPerimeter(perimeter);
}
origin: org.tinyjee.jgraphx/jgraphx

return new mxConnectionConstraint(point, perimeter);
origin: org.tinyjee.jgraphx/jgraphx

/**
 * Sets the connection constraint that describes the given connection point.
 * If no constraint is given then nothing is changed. To remove an existing
 * constraint from the given edge, use an empty constraint instead.
 * 
 * @param vertex Cell state that represents the vertex.
 * @param constraint Connection constraint that represents the connection point
 * constraint as returned by getConnectionConstraint.
 */
public mxPoint getConnectionPoint(mxCellState vertex,
    mxConnectionConstraint constraint)
{
  mxPoint point = null;
  if (vertex != null && constraint.point != null)
  {
    point = new mxPoint(vertex.getX() + constraint.getPoint().getX()
        * vertex.getWidth(), vertex.getY()
        + constraint.getPoint().getY() * vertex.getHeight());
  }
  if (point != null && constraint.perimeter)
  {
    point = view.getPerimeterPoint(vertex, point, false);
  }
  return point;
}
origin: com.github.vlsi.mxgraph/jgraphx

return new mxConnectionConstraint(point, perimeter);
origin: org.tinyjee.jgraphx/jgraphx

/**
 * Constructs a new connection constraint for the given point and boolean
 * arguments.
 * 
 * @param point Optional mxPoint that specifies the fixed location of the point
 * in relative coordinates. Default is null.
 * @param perimeter Optional boolean that specifies if the fixed point should be
 * projected onto the perimeter of the terminal. Default is true.
 */
public mxConnectionConstraint(mxPoint point, boolean perimeter)
{
  setPoint(point);
  setPerimeter(perimeter);
}
origin: org.tinyjee.jgraphx/jgraphx

new mxConnectionConstraint());
origin: com.github.vlsi.mxgraph/jgraphx

new mxConnectionConstraint());
com.mxgraph.viewmxConnectionConstraint

Javadoc

Defines an object that contains the constraints about how to connect one side of an edge to its terminal.

Most used methods

  • <init>
    Constructs a new connection constraint for the given point and boolean arguments.
  • setPerimeter
    Sets perimeter.
  • setPoint
    Sets the point.
  • getPoint
    Returns the point.

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • setContentView (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now