Bridges-Java
3.4.3
Bridges(Java API)
|
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.
Public Member Functions | |
Rectangle () | |
Rectangle (float w, float h) | |
Rectangle (float locx, float locy, float w, float h) | |
float | getLocationX () |
float | getLocationY () |
String | getShapeType () |
void | setWidth (float w) |
float | getWidth () |
float | getHeight () |
void | setRectangle (float locx, float locy, float w, float h) |
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) |
Package Functions | |
void | setHeight (float h) |
Package Attributes | |
float | height = 1.0f |
float | locy = 0.0f |
Package Attributes inherited from bridges.base.Symbol | |
Boolean | xform_flag = false |
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 |
bridges.base.Rectangle.Rectangle | ( | ) |
Construct a default rectangle
bridges.base.Rectangle.Rectangle | ( | float | w, |
float | h | ||
) |
Construct a rectangle with given height and width
w | width of rectangle |
h | height of rectangle |
bridges.base.Rectangle.Rectangle | ( | float | locx, |
float | locy, | ||
float | w, | ||
float | h | ||
) |
Construct a rectangle with given its location (center), height and width
locx | x coordinate of center |
locy | y coordinate of center |
w | width of rectangle |
h | height of rectangle |
float bridges.base.Rectangle.getHeight | ( | ) |
JSONObject bridges.base.Rectangle.getJSONRepresentation | ( | ) |
This method returns the JSON representation of the shape
Reimplemented from bridges.base.Symbol.
float bridges.base.Rectangle.getLocationX | ( | ) |
float bridges.base.Rectangle.getLocationY | ( | ) |
String bridges.base.Rectangle.getShapeType | ( | ) |
This method gets the name of the shape
Reimplemented from bridges.base.Symbol.
float bridges.base.Rectangle.getWidth | ( | ) |
|
package |
This method sets the shape height
h | height |
void bridges.base.Rectangle.setRectangle | ( | float | locx, |
float | locy, | ||
float | w, | ||
float | h | ||
) |
void bridges.base.Rectangle.setWidth | ( | float | w | ) |
This method sets the shape width
w | width |
|
package |
|
package |