CuneiPainter  Version 1.2
LineParameters Class Reference

Created by timo on 14.12.18 . More...

Inheritance diagram for LineParameters:
Collaboration diagram for LineParameters:

Public Member Functions

String toString ()
 
 LineParameters (float startX, float startY, float endX, float endY, float deltaX, float deltaY, StrokeType type)
 
int compareTo (@NonNull LineParameters o)
 

Package Attributes

Float startX
 
Float startY
 
Float endX
 
Float endY
 
Float deltaX
 
Float deltaY
 
StrokeType type
 

Detailed Description

Created by timo on 14.12.18 .

Constructor & Destructor Documentation

LineParameters ( float  startX,
float  startY,
float  endX,
float  endY,
float  deltaX,
float  deltaY,
StrokeType  type 
)

References LineParameters.deltaX, LineParameters.deltaY, LineParameters.endX, LineParameters.endY, LineParameters.startX, LineParameters.startY, and LineParameters.type.

37  {
38  this.startX = startX;
39  this.startY = startY;
40  this.endX = endX;
41  this.endY = endY;
42  this.deltaX=deltaX;
43  this.deltaY=deltaY;
44  this.type=type;
45  }
Float endY
Definition: LineParameters.java:16
Float startX
Definition: LineParameters.java:10
Float startY
Definition: LineParameters.java:12
Float deltaY
Definition: LineParameters.java:20
Float endX
Definition: LineParameters.java:14
StrokeType type
Definition: LineParameters.java:22
Float deltaX
Definition: LineParameters.java:18

Member Function Documentation

int compareTo ( @NonNull LineParameters  o)
48  {
49  int compared=this.startX.compareTo(o.startX);
50  if(compared==0){
51  return this.startY.compareTo(o.startY);
52  }
53  return compared;
54  }
String toString ( )

References LineParameters.deltaX, LineParameters.deltaY, LineParameters.endX, LineParameters.endY, LineParameters.startX, LineParameters.startY, and LineParameters.type.

25  {
26  return "LineParameters{" +
27  "startX=" + startX +
28  ", startY=" + startY +
29  ", endX=" + endX +
30  ", endY=" + endY +
31  ", deltaX=" + deltaX +
32  ", deltaY=" + deltaY +
33  ", type=" + type +
34  '}';
35  }
Float endY
Definition: LineParameters.java:16
Float startX
Definition: LineParameters.java:10
Float startY
Definition: LineParameters.java:12
Float deltaY
Definition: LineParameters.java:20
Float endX
Definition: LineParameters.java:14
StrokeType type
Definition: LineParameters.java:22
Float deltaX
Definition: LineParameters.java:18

Member Data Documentation