![]() |
Bridges-Java 3.5.1
Bridges(Java API)
|
This class defines a rectangle and is part of the bridges::base::SymbolCollection. More...
Package Functions | |
| void | setHeight (float h) |
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 |
This class defines a rectangle and is part of the bridges::base::SymbolCollection.
A rectangle has height and width, and a location (lower left corner of rectangle)
Basic styling such as stroke, fill, color are defined in the superclass Symbol.
| bridges.base.Rectangle.Rectangle | ( | ) |
Construct a default rectangle
Construct a rectangle with given height and width
| w | width of rectangle |
| h | height of rectangle |
Construct a rectangle with given its location (lower left corner), height and width
| locx | lower left x coordinate of rectangle |
| locy | y lower left ycoordinate of rectangle |
| 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 | ( | ) |
This method sets the shape height
| h | height |