public class Connection
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private boolean |
hasInterpolations |
private Model.Align |
sourceAlign |
private int |
sourceIndex |
private Model.Align |
targetAlign |
private int |
targetIndex |
构造器和说明 |
---|
Connection(Model.Align sourceAlign,
int sourceIndex,
int targetIndex,
boolean hasInterpolation)
Creates a new Connection.
|
Connection(Model.Align sourceAlign,
Model.Align targetAlign,
int sourceIndex,
int targetIndex,
boolean hasInterpolations)
Creates a new Connection.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIndexAt(Model.Align align)
Gets the index at given Align.
|
Model.Align |
getSourceAlign() |
int |
getSourceIndex() |
Model.Align |
getTargetAlign() |
int |
getTargetIndex() |
int |
hashCode() |
boolean |
hasInterpolations() |
void |
setHavingInterpolations(boolean hasInterp) |
java.lang.String |
toString() |
private Model.Align sourceAlign
private Model.Align targetAlign
private int sourceIndex
private int targetIndex
private boolean hasInterpolations
public Connection(Model.Align sourceAlign, int sourceIndex, int targetIndex, boolean hasInterpolation)
sourceAlign
- LEFT or RIGHTsourceIndex
- index of source transient paneltargetIndex
- index of target transient panelpublic Connection(Model.Align sourceAlign, Model.Align targetAlign, int sourceIndex, int targetIndex, boolean hasInterpolations)
sourceAlign
- LEFT or RIGHTtargetAlign
- LEFT or RIGHT (other than sourceAlign)sourceIndex
- index of source transient paneltargetIndex
- index of target transient paneljava.lang.IllegalArgumentException
- if targetAlign is not different from sourceAlignpublic Model.Align getSourceAlign()
public Model.Align getTargetAlign()
public int getSourceIndex()
public int getTargetIndex()
public boolean hasInterpolations()
public void setHavingInterpolations(boolean hasInterp)
public int getIndexAt(Model.Align align)
align
- LEFT or RIGHTpublic int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object