Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | List of all members
bridges.base.Circle Class Reference
Inheritance diagram for bridges.base.Circle:
bridges.base.Symbol

Detailed Description

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

Public Member Functions

 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 ()
 
- Public Member Functions inherited from bridges.base.Symbol
 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 ()
 
void addAllJSON (JSONArray symbol_json, Integer parent)
 

Additional Inherited Members

- Protected Attributes inherited from bridges.base.Symbol
String label = null
 
Color fillColor = null
 
Float opacity = null
 
Color strokeColor = null
 
Float strokeWidth = null
 
Integer strokeDash = null
 
Integer layer = null
 
float[] transform = null
 
- Package Attributes inherited from bridges.base.Symbol
Boolean xform_flag = false
 

Constructor & Destructor Documentation

◆ 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
rradius of circle

◆ Circle() [3/3]

bridges.base.Circle.Circle ( float  locx,
float  locy,
float  r 
)

Construct a circle with given location and radius

Parameters
locxx coordinat of circle center
locyy coordinat of circle center
rradius of circle

Member Function Documentation

◆ 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
locxx coordinate of circle center
locyy coordinate of circle center
rradius of circle
Returns
none

◆ setRadius()

void bridges.base.Circle.setRadius ( float  r)

This method sets the radius of the circle

Parameters
rradius

The documentation for this class was generated from the following file: