JHotDraw 7.3.1

org.jhotdraw.samples.odg.geom
Class EnhancedPath.Segment

java.lang.Object
  extended by org.jhotdraw.samples.odg.geom.EnhancedPath.Segment
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
EnhancedPath

public static class EnhancedPath.Segment
extends java.lang.Object
implements java.lang.Cloneable

Defines a vertex (node) of the bezier path.

A vertex consists of three control points: C0, C1 and C2.


Field Summary
 double[] coords
          Control points x and y coordinates.
 java.lang.String[] modifiers
          Modifiers and formulas.
 EnhancedPath.SegType type
          The type of the segment.
 
Constructor Summary
EnhancedPath.Segment()
           
EnhancedPath.Segment(EnhancedPath.Segment that)
           
EnhancedPath.Segment(EnhancedPath.SegType type, java.lang.Object... coordOrModifier)
          Creates a segment.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 void setTo(EnhancedPath.Segment that)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public EnhancedPath.SegType type
The type of the segment.


coords

public double[] coords
Control points x and y coordinates.


modifiers

public java.lang.String[] modifiers
Modifiers and formulas.

Constructor Detail

EnhancedPath.Segment

public EnhancedPath.Segment()

EnhancedPath.Segment

public EnhancedPath.Segment(EnhancedPath.SegType type,
                            java.lang.Object... coordOrModifier)
Creates a segment.


EnhancedPath.Segment

public EnhancedPath.Segment(EnhancedPath.Segment that)
Method Detail

setTo

public void setTo(EnhancedPath.Segment that)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.