![]() |
Bridges-Java-3.0.1
3.0.1
Bridges(JavaAPI)
|
This class defines a circle and is part of the symbol collection. A circle has a center and radius.
Basic styling such as stroke and fill are defined in the superclass Symbol.
Public Member Functions | |
Circle () | |
Circle (float r) | |
Circle (float locx, float locy, float r) | |
String | getName () |
void | setRadius (float r) |
void | setCircle (float locx, float locy, float r) |
void | translate (float tx, float ty) |
void | scale (float scale) |
float [] | getDimensions () |
JSONObject | getJSONRepresentation () |
![]() | |
Symbol () | |
void | setLabel (String label) |
String | getLabel () |
String | getIdentifier () |
void | setFillColor (Color c) |
void | setFillColor (String c) |
Color | getFillColor () |
void | setStrokeColor (Color c) |
Symbol | setStrokeColor (String c) |
Color | getStrokeColor () |
void | 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 () |
void | setLocation (float x, float y) |
float [] | getLocation () |
float [] | getDimensions () |
JSONObject | getJSONRepresentation () |
Additional Inherited Members | |
![]() | |
String | getShapeType () |
void | setShapeType (String sh) |
void | translatePoint (float[] pt, float tx, float ty) |
![]() | |
String | label = "" |
Color | fillColor = new Color("blue") |
float | opacity = DEFAULT_OPACITY |
Color | strokeColor = new Color("white") |
float | strokeWidth = DEFAULT_STROKEWIDTH |
Integer | strokeDash = DEFAULT_STROKEDASH |
float | locationX = DEFAULT_LOCATIONX |
float | locationY = DEFAULT_LOCATIONY |
bridges.base.Circle.Circle | ( | ) |
Construct a default circle (center at origin, radius of 10 units)
bridges.base.Circle.Circle | ( | float | r | ) |
Construct a circle of radius r
r | radius of circle |
bridges.base.Circle.Circle | ( | float | locx, |
float | locy, | ||
float | r | ||
) |
Construct a circle with given location and radius
locx | x coordinat of circle center |
locy | y coordinat of circle center |
r | radius of circle |
float [] bridges.base.Circle.getDimensions | ( | ) |
This method returns the dimensions of the shape: min and max values in X and Y
JSONObject bridges.base.Circle.getJSONRepresentation | ( | ) |
This method returns the JSON representation of the shape
String bridges.base.Circle.getName | ( | ) |
This method gets the name of the shape
void bridges.base.Circle.scale | ( | float | scale | ) |
Scale the circle Only the radius needs to be scaled, using a single scale value
scale | factor s |
void bridges.base.Circle.setCircle | ( | float | locx, |
float | locy, | ||
float | r | ||
) |
This method sets the circle dimensions
locx | x coordinate of circle center |
locy | y coordinate of circle center |
r | radius of circle |
void bridges.base.Circle.setRadius | ( | float | r | ) |
This method sets the radius of the circle
r | radius |
void bridges.base.Circle.translate | ( | float | tx, |
float | ty | ||
) |
Translate the circle
(tx,ty) | translation vector |