站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

AnchorShapeFactory (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.anchor
Class AnchorShapeFactory

java.lang.Object
  extended by org.netbeans.api.visual.anchor.AnchorShapeFactory

public class AnchorShapeFactory
extends Object

The factory class of all built-in anchor shapes. The instances of all built-in anchor shapes can be used multiple connection widgets.


Method Summary
static AnchorShape createImageAnchorShape(Image image)
          Creates an image anchor shape.
static AnchorShape createImageAnchorShape(Image image, boolean lineOriented)
          Creates an image anchor shape with ability to specify line orientation.
static AnchorShape createTriangleAnchorShape(int size, boolean filled, boolean output)
          Creates a triangular anchor shape.
static AnchorShape createTriangleAnchorShape(int size, boolean filled, boolean output, int cutDistance)
          Creates a triangular anchor shape.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createImageAnchorShape

public static AnchorShape createImageAnchorShape(Image image)
Creates an image anchor shape.

Parameters:
image - the image
Returns:
the anchor shape

createImageAnchorShape

public static AnchorShape createImageAnchorShape(Image image,
                                                 boolean lineOriented)
Creates an image anchor shape with ability to specify line orientation.

Parameters:
image - the image
lineOriented - if true, then the image is line oriented
Returns:
the anchor shape

createTriangleAnchorShape

public static AnchorShape createTriangleAnchorShape(int size,
                                                    boolean filled,
                                                    boolean output)
Creates a triangular anchor shape.

Parameters:
size - the size of triangle
filled - if true, then the triangle is filled
output - if true, then it is output triangle
Returns:
the anchor shape

createTriangleAnchorShape

public static AnchorShape createTriangleAnchorShape(int size,
                                                    boolean filled,
                                                    boolean output,
                                                    int cutDistance)
Creates a triangular anchor shape.

Parameters:
size - the size of triangle
filled - if true, then the triangle is filled
output - if true, then it is output triangle
cutDistance - the distance where the related line is cut (usually 1px smaller than the size)
Returns:
the anchor shape

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.