This class defines a circle and is part of the bridges::base::SymbolCollection.
More...
|
| | Circle () |
| |
| | Circle (float r) |
| |
| | Circle (float locx, float locy, float r) |
| |
| String | getShapeType () |
| |
| void | setRadius (float r) |
| |
| void | setCircle (float locx, float locy, float r) |
| |
| float | getRadius () |
| |
| float | getXLocation () |
| |
| float | getYLocation () |
| |
| JSONObject | getJSONRepresentation () |
| |
| | Symbol () |
| |
| Symbol | setLabel (String label) |
| |
| String | getLabel () |
| |
| Symbol | setFillColor (String c) |
| |
| Symbol | setFillColor (Color c) |
| |
| Color | getFillColor () |
| |
| Symbol | setStrokeColor (Color c) |
| |
| Symbol | setStrokeColor (String c) |
| |
| Color | getStrokeColor () |
| |
| Symbol | setStrokeWidth (float strokewidth) |
| | This method sets the symbol stroke width. More...
|
| |
| Float | getStrokeWidth () |
| |
| Symbol | setOpacity (float op) |
| | This method sets the symbol opacity. More...
|
| |
| Float | getOpacity () |
| |
| Symbol | setStrokeDash (int dash) |
| |
| Integer | getStrokeDash () |
| |
| Symbol | setLayer (int layer) |
| |
| Integer | getLayer () |
| |
| float[][] | identity (float[][] m) |
| |
| Symbol | translate (float tx, float ty) |
| |
| Symbol | scale (float s) |
| |
| Symbol | scale (float sx, float sy) |
| |
| Symbol | rotate (float angle) |
| |
| Symbol | scale (float sx, float sy, float px, float py) |
| |
| Symbol | rotate (float angle, float px, float py) |
| |
| Symbol | setTransform (float a, float b, float c, float d, float e, float f) |
| |
| float[][] | getTransform () |
| |
| JSONObject | getJSONRepresentation () |
| |
| void | addAllJSON (JSONArray symbol_json, Integer parent) |
| |
This class defines a circle and is part of the bridges::base::SymbolCollection.
A circle has a center and radius
Basic styling such as stroke, fill, color are defined in the superclass Symbol.
- See also
- An example tutorial can be found at https://bridgesuncc.github.io/tutorials/Symbol_Collection.html
- Author
- Kalpathi Subramanian, Erik Saule
- Date
- 12/24/18, 08/11/21
◆ Circle() [1/3]
| bridges.base.Circle.Circle |
( |
| ) |
|
Construct a default circle (center at origin, radius of 10 units)
◆ Circle() [2/3]
| bridges.base.Circle.Circle |
( |
float |
r | ) |
|
Construct a circle of radius r
- Parameters
-
◆ Circle() [3/3]
| bridges.base.Circle.Circle |
( |
float |
locx, |
|
|
float |
locy, |
|
|
float |
r |
|
) |
| |
Construct a circle with given location and radius
- Parameters
-
| locx | x coordinat of circle center |
| locy | y coordinat of circle center |
| r | radius of circle |
◆ getJSONRepresentation()
| JSONObject bridges.base.Circle.getJSONRepresentation |
( |
| ) |
|
This method returns the JSON representation of the shape
- Returns
- JSON representation of circle (string)
Reimplemented from bridges.base.Symbol.
◆ getRadius()
| float bridges.base.Circle.getRadius |
( |
| ) |
|
◆ getShapeType()
| String bridges.base.Circle.getShapeType |
( |
| ) |
|
This method gets the name of the shape
- Returns
- name shape name
Reimplemented from bridges.base.Symbol.
◆ getXLocation()
| float bridges.base.Circle.getXLocation |
( |
| ) |
|
◆ getYLocation()
| float bridges.base.Circle.getYLocation |
( |
| ) |
|
◆ setCircle()
| void bridges.base.Circle.setCircle |
( |
float |
locx, |
|
|
float |
locy, |
|
|
float |
r |
|
) |
| |
This method sets the circle dimensions
- Parameters
-
| locx | x coordinate of circle center |
| locy | y coordinate of circle center |
| r | radius of circle |
◆ setRadius()
| void bridges.base.Circle.setRadius |
( |
float |
r | ) |
|
This method sets the radius of the circle
- Parameters
-
The documentation for this class was generated from the following file: