This class defines an arc specified in float precision.
This class defines an arc specified in float precision.
(->float)
(->float type)
(->float ellipse-bounds start extent type)
(->float x y w h start extent type)
Constructor.
Constructs a new arc, initialized to the specified location, size, angular extents, and closure type.
x - The X coordinate of the upper-left corner of the arc's framing rectangle. - float
y - The Y coordinate of the upper-left corner of the arc's framing rectangle. - float
w - The overall width of the full ellipse of which this arc is a partial section. - float
h - The overall height of the full ellipse of which this arc is a partial section. - float
start - The starting angle of the arc in degrees. - float
extent - The angular extent of the arc in degrees. - float
type - The closure type for the arc: Arc2D.OPEN, Arc2D.CHORD, or Arc2D.PIE. - int
Constructor. Constructs a new arc, initialized to the specified location, size, angular extents, and closure type. x - The X coordinate of the upper-left corner of the arc's framing rectangle. - `float` y - The Y coordinate of the upper-left corner of the arc's framing rectangle. - `float` w - The overall width of the full ellipse of which this arc is a partial section. - `float` h - The overall height of the full ellipse of which this arc is a partial section. - `float` start - The starting angle of the arc in degrees. - `float` extent - The angular extent of the arc in degrees. - `float` type - The closure type for the arc: Arc2D.OPEN, Arc2D.CHORD, or Arc2D.PIE. - `int`
(empty? this)
Determines whether the RectangularShape is empty. When the RectangularShape is empty, it encloses no area.
returns: true if the RectangularShape is empty;
false otherwise. - boolean
Determines whether the RectangularShape is empty. When the RectangularShape is empty, it encloses no area. returns: true if the RectangularShape is empty; false otherwise. - `boolean`
(extent this)
Instance Field.
The angular extent of the arc in degrees.
type: float
Instance Field. The angular extent of the arc in degrees. type: float
(get-angle-extent this)
Returns the angular extent of the arc.
returns: A double value that represents the angular extent
of the arc in degrees. - double
Returns the angular extent of the arc. returns: A double value that represents the angular extent of the arc in degrees. - `double`
(get-angle-start this)
Returns the starting angle of the arc.
returns: A double value that represents the starting angle
of the arc in degrees. - double
Returns the starting angle of the arc. returns: A double value that represents the starting angle of the arc in degrees. - `double`
(get-height this)
Returns the height of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
returns: the height of the framing rectangle. - double
Returns the height of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape. returns: the height of the framing rectangle. - `double`
(get-width this)
Returns the width of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
returns: the width of the framing rectangle. - double
Returns the width of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape. returns: the width of the framing rectangle. - `double`
(get-x this)
Returns the X coordinate of the upper-left corner of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
returns: the X coordinate of the upper-left corner of
the framing rectangle. - double
Returns the X coordinate of the upper-left corner of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape. returns: the X coordinate of the upper-left corner of the framing rectangle. - `double`
(get-y this)
Returns the Y coordinate of the upper-left corner of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape.
returns: the Y coordinate of the upper-left corner of
the framing rectangle. - double
Returns the Y coordinate of the upper-left corner of the framing rectangle in double precision. Note that the arc partially inscribes the framing rectangle of this RectangularShape. returns: the Y coordinate of the upper-left corner of the framing rectangle. - `double`
(height this)
Instance Field.
The overall height of the full ellipse of which this arc is a partial section (not considering the angular extents).
type: float
Instance Field. The overall height of the full ellipse of which this arc is a partial section (not considering the angular extents). type: float
(set-angle-extent this ang-ext)
Sets the angular extent of this arc to the specified double value.
ang-ext - The angular extent of the arc in degrees. - double
Sets the angular extent of this arc to the specified double value. ang-ext - The angular extent of the arc in degrees. - `double`
(set-angle-start this ang-st)
Sets the starting angle of this arc to the specified double value.
ang-st - The starting angle of the arc in degrees. - double
Sets the starting angle of this arc to the specified double value. ang-st - The starting angle of the arc in degrees. - `double`
(set-arc this x y w h ang-st ang-ext closure)
Sets the location, size, angular extents, and closure type of this arc to the specified double values.
x - The X coordinate of the upper-left corner of the arc. - double
y - The Y coordinate of the upper-left corner of the arc. - double
w - The overall width of the full ellipse of which this arc is a partial section. - double
h - The overall height of the full ellipse of which this arc is a partial section. - double
ang-st - The starting angle of the arc in degrees. - double
ang-ext - The angular extent of the arc in degrees. - double
closure - The closure type for the arc: Arc2D.OPEN, Arc2D.CHORD, or Arc2D.PIE. - int
Sets the location, size, angular extents, and closure type of this arc to the specified double values. x - The X coordinate of the upper-left corner of the arc. - `double` y - The Y coordinate of the upper-left corner of the arc. - `double` w - The overall width of the full ellipse of which this arc is a partial section. - `double` h - The overall height of the full ellipse of which this arc is a partial section. - `double` ang-st - The starting angle of the arc in degrees. - `double` ang-ext - The angular extent of the arc in degrees. - `double` closure - The closure type for the arc: Arc2D.OPEN, Arc2D.CHORD, or Arc2D.PIE. - `int`
(start this)
Instance Field.
The starting angle of the arc in degrees.
type: float
Instance Field. The starting angle of the arc in degrees. type: float
(width this)
Instance Field.
The overall width of the full ellipse of which this arc is a partial section (not considering the angular extents).
type: float
Instance Field. The overall width of the full ellipse of which this arc is a partial section (not considering the angular extents). type: float
(x this)
Instance Field.
The X coordinate of the upper-left corner of the framing rectangle of the arc.
type: float
Instance Field. The X coordinate of the upper-left corner of the framing rectangle of the arc. type: float
(y this)
Instance Field.
The Y coordinate of the upper-left corner of the framing rectangle of the arc.
type: float
Instance Field. The Y coordinate of the upper-left corner of the framing rectangle of the arc. type: float
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close