|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.render.immed.nodeshape.TriangleNodeShape
public class TriangleNodeShape
Constructor Summary | |
---|---|
TriangleNodeShape()
|
Method Summary | |
---|---|
boolean |
computeEdgeIntersection(float xMin,
float yMin,
float xMax,
float yMax,
float ptX,
float ptY,
float[] returnVal)
A basic implementation that works by unwinding the path of the node shape into line segments and calculating whether each segment intersects the edge. |
Shape |
getShape(float xMin,
float yMin,
float xMax,
float yMax)
Returns a Shape object scaled to fit within the bounding box defined by the input parameters. |
byte |
getType()
A legacy method to interact cleanly with the current implementation of GraphGraphics. |
static boolean |
segmentIntersection(float[] returnVal,
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Computes the intersection of the line segment from (x1,y1) to (x2,y2) with the line segment from (x3,y3) to (x4,y4). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TriangleNodeShape()
Method Detail |
---|
public Shape getShape(float xMin, float yMin, float xMax, float yMax)
NodeShape
public byte getType()
NodeShape
getType
in interface NodeShape
public boolean computeEdgeIntersection(float xMin, float yMin, float xMax, float yMax, float ptX, float ptY, float[] returnVal)
computeEdgeIntersection
in interface NodeShape
public static boolean segmentIntersection(float[] returnVal, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
returnVal
- A two element array specifying the point where the
two line segments intersect. Element 0 specifies the X location and
Element 1 specifies the Y location. If this method returns false,
this array will not be modified.x1
- The X location of beginning of the first line segment.y1
- The Y location of beginning of the first line segment.x2
- The X location of ending of the first line segment.y2
- The Y location of ending of the first line segment.x3
- The X location of beginning of the second line segment.y3
- The Y location of beginning of the second line segment.x4
- The X location of ending of the second line segment.y4
- The Y location of ending of the second line segment.
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |