public class Slice extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
endAngle |
protected double |
endRho |
protected double |
margin |
protected double |
rho |
protected double |
startAngle |
protected double |
startRho |
protected double |
value |
Constructor and Description |
---|
Slice(double value,
double startAngle,
double endAngle,
double rho)
Creates a slice.
|
Slice(Slice slice)
Creates a copy of the given slice.
|
Modifier and Type | Method and Description |
---|---|
double |
getEndAngle()
Returns the ending angle of the slice.
|
double |
getEndRho()
Returns the ending point radius of the slice.
|
double |
getMargin()
Returns the margin of the slice.
|
double |
getRho()
Returns the radius of the slice.
|
double |
getStartAngle()
Returns the starting angle of the slice.
|
double |
getStartRho()
Returns the starting point radius of the slice.
|
double |
getValue()
Returns the value associated with the slice.
|
void |
setEndAngle(double endAngle)
Sets the ending angle of the slice.
|
void |
setEndRho(double endRho)
Sets the ending point radius of the slice.
|
void |
setMargin(double margin)
Sets the margin of the slice.
|
void |
setRho(double rho)
Sets the radius of the slice.
|
void |
setStartAngle(double startAngle)
Sets the starting angle of the slice.
|
void |
setStartRho(double startRho)
Sets the ending point radius of the slice.
|
void |
setValue(double value)
Sets the value associated with this slice.
|
String |
toString() |
protected double value
protected double startAngle
protected double endAngle
protected double rho
protected double margin
protected double startRho
protected double endRho
public Slice(double value, double startAngle, double endAngle, double rho)
value
- the value associated with the slicestartAngle
- the starting angle of the sliceendAngle
- the ending angle of the slicerho
- the radius of the slicepublic Slice(Slice slice)
slice
- the slice to be copiedpublic double getEndAngle()
public double getEndRho()
public double getMargin()
public double getRho()
public double getStartAngle()
public double getStartRho()
public double getValue()
public void setEndAngle(double endAngle)
endAngle
- the ending angle of the slicepublic void setEndRho(double endRho)
endRho
- the ending point radius of the slicepublic void setMargin(double margin)
margin
- the margin of the slicepublic void setRho(double rho)
rho
- the radius of the slicepublic void setStartAngle(double startAngle)
startAngle
- the starting angle of the slicepublic void setStartRho(double startRho)
startRho
- the ending point radius of the slicepublic void setValue(double value)
value
- the value associated with this sliceCopyright © 2018. All rights reserved.