This class defines a rectangle and is part of the bridges::base::SymbolCollection.
A rectangle has height and width, and a location (rectangle center)
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/23/18, 6/22/21
|
| Rectangle () |
|
| Rectangle (float w, float h) |
|
| Rectangle (float locx, float locy, float w, float h) |
|
String | getShapeType () |
|
void | setWidth (float w) |
|
void | setRectangle (float locx, float locy, float w, float h) |
|
JSONObject | getJSONRepresentation () |
|
| Symbol () |
|
Symbol | setLabel (String label) |
|
String | getLabel () |
|
Symbol | setFillColor (String 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) |
|