Search this API

y.view
Interface MutableGeneralPath.Segment

Enclosing class:
MutableGeneralPath

public static interface MutableGeneralPath.Segment

The interface used by all Segments / Operations in the MutableGeneralPath class

 

Method Summary
 void appendTo(java.awt.geom.GeneralPath gp)
          Appends the operation of this segment to the given GeneralPath instance.
 int currentSegment(double[] d)
          Returns the this segment's type and puts the segment's coordinates in the given array
 int currentSegment(float[] f)
          Returns the this segment's type and puts the segment's coordinates in the given array
 int getType()
          Returns the type constant as defined in PathIterator
 MutableGeneralPath.Segment next()
          Returns the next segment or null if this segment is the last one.
 MutableGeneralPath.Segment prev()
          Returns the previous segment or null if this segment is the first one.
 

Method Detail

getType

int getType()
Returns the type constant as defined in PathIterator

Returns:
the type constant

next

MutableGeneralPath.Segment next()
Returns the next segment or null if this segment is the last one.

Returns:
the next segment or null.

prev

MutableGeneralPath.Segment prev()
Returns the previous segment or null if this segment is the first one.

Returns:
the previous segment or null.

currentSegment

int currentSegment(double[] d)
Returns the this segment's type and puts the segment's coordinates in the given array

Parameters:
d - the array of doubles to put the coordinates of the segment in
Returns:
the type of this segment

currentSegment

int currentSegment(float[] f)
Returns the this segment's type and puts the segment's coordinates in the given array

Parameters:
f - the array of floats to put the coordinates of the segment in
Returns:
the type of this segment

appendTo

void appendTo(java.awt.geom.GeneralPath gp)
Appends the operation of this segment to the given GeneralPath instance.


© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.