@Deprecated
public class ArcSegment
extends java.lang.Object
This will draw an arc segement in a 2d graphic panel. To define an arc of a circle its middle point is charged, the radius of ellipse is overgiven as the integer values of r1 and r2 and the rotation is desired by the value of phi. The following picture shows the values and its valances:
The drawable arc should only be instanziated in the paint
or
paintComponent
method of Component
or JComponent
.
Remember: The angle can be given in radian measure, where 0 <= φ < 2 * π, or in degree, where 0 <= ρ < 360.
Constructor and Description |
---|
ArcSegment(int x_,
int y_,
int r_)
Deprecated.
|
ArcSegment(int x_,
int y_,
int r1_,
int r2_,
float phi_,
int steps_,
java.awt.Stroke stroke_)
Deprecated.
|
ArcSegment(int x_,
int y_,
int r1_,
int r2_,
int rho_,
int steps_,
java.awt.Stroke stroke_)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
drawArc(float startPhi_,
float endPhi_,
java.awt.Graphics graphic_)
Deprecated.
|
void |
drawArc(java.awt.Graphics2D graphic_)
Deprecated.
|
void |
drawArc(int startRho_,
int endRho_,
java.awt.Graphics graphic_)
Deprecated.
|
@Deprecated public ArcSegment(int x_, int y_, int r_)
x_
- The x value of the middle point of the circle.y_
- The x value of the middle point of the circle.r_
- Is the length of radius of the circle.@Deprecated public ArcSegment(int x_, int y_, int r1_, int r2_, float phi_, int steps_, java.awt.Stroke stroke_)
x_
- The x value of the middle point of the ellipse.y_
- The x value of the middle point of the ellipse.r1_
- Is the length of the x axis of the ellipse.r2_
- Is the length of the y axis of the ellipse.phi_
- The rotation of the ground figure. This value is overgiven in
radian measure.steps_
- The angle which is draw as a figure on screen can be
subdivided in different parts. So the steps of this subdivision is
stored here.stroke_
- Is the stroke of the arc which should be drawn. This value
can also be set to null
.@Deprecated public ArcSegment(int x_, int y_, int r1_, int r2_, int rho_, int steps_, java.awt.Stroke stroke_)
rho_
).x_
- The x value of the middle point of the ellipse.y_
- The x value of the middle point of the ellipse.r1_
- Is the length of the x axis of the ellipse.r2_
- Is the length of the y axis of the ellipse.rho_
- The rotation of the ground figure. This value is overgiven in
degree.steps_
- The angle which is draw as a figure on screen can be
subdivided in different parts. So the steps of this subdivision is
stored here.stroke_
- Is the stroke of the arc which should be drawn. This value
can also be set to null
.@Deprecated public void drawArc(float startPhi_, float endPhi_, java.awt.Graphics graphic_)
startPhi_
- Is the starting angle of the arc which should be drawn.endPhi_
- Is the ending angle of the arc which should be drawn.graphic_
- Is the graphic object in which the arc figure should be
drawn.@Deprecated public void drawArc(int startRho_, int endRho_, java.awt.Graphics graphic_)
startRho_
- Is the starting angle of the arc which should be drawn.endRho_
- Is the ending angle of the arc which should be drawn.graphic_
- Is the graphic object in which the arc figure should be
drawn.@Deprecated public void drawArc(java.awt.Graphics2D graphic_)
graphic_
- Is the 2D graphic object in which the ellipse should be
drawn.14-September-2016 18:23 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft