![]() |
Bridges-Java 3.5.0
Bridges(Java API)
|
This class defines a polygon and can be used as a part of a SymbolCollection. More...
Public Member Functions | |
| Polygon () | |
| Polygon (ArrayList< Float > pts) | |
| String | getShapeType () |
Public Member Functions inherited from bridges.base.Polyline | |
| Polyline () | |
| Polyline (ArrayList< Float > pts) | |
| String | getShapeType () |
| void | addPoint (float x, float y) |
| ArrayList< Float > | getPoints () |
| void | setPolyline (ArrayList< Float > pts) |
| 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 () |
| JSONObject | getJSONRepresentation () |
| void | addAllJSON (JSONArray symbol_json, Integer parent) |
Additional Inherited Members | |
| String | getShapeType () |
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 polygon and can be used as a part of a SymbolCollection.
A polygon has a sequence of 2D points (x, y coordinate pairs)
Basic styling such as stroke, fill, color are defined in the superclass Symbol.
| bridges.base.Polygon.Polygon | ( | ) |
Construct a default polygon structure
| bridges.base.Polygon.Polygon | ( | ArrayList< Float > | pts | ) |
Construct a polygon with the give set of points
| pts | the array of 2D points |
| String bridges.base.Polygon.getShapeType | ( | ) |
This method gets the name of the shape
Reimplemented from bridges.base.Polyline.