![]() |
Bridges-Java 3.5.0
Bridges(Java API)
|
This class defines a polyline and is used as part of a SymbolCollection. More...
Public Member Functions | |
| 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 polyline and is used as part of a SymbolCollection.
A polyline has a sequence of points (x, y coordinate pairs)
Basic styling such as stroke and fill are defined in the superclass Symbol.
Note that since a Polyline is typically an open shape one usually want a fill that is transparent.
| bridges.base.Polyline.Polyline | ( | ) |
Construct a default polyline structure
| bridges.base.Polyline.Polyline | ( | ArrayList< Float > | pts | ) |
Construct a polyline with the give set of points
| pts | the given set of input 2D points |
| void bridges.base.Polyline.addPoint | ( | float | x, |
| float | y | ||
| ) |
This method adds a point to the polyline
| x,y | Coordinates of the point |
| JSONObject bridges.base.Polyline.getJSONRepresentation | ( | ) |
This method returns the JSON representation of the shape
Reimplemented from bridges.base.Symbol.
| ArrayList< Float > bridges.base.Polyline.getPoints | ( | ) |
This method returns the point list of the polyline
| String bridges.base.Polyline.getShapeType | ( | ) |
This method gets the name of the shape
Reimplemented from bridges.base.Symbol.
Reimplemented in bridges.base.Polygon.
| void bridges.base.Polyline.setPolyline | ( | ArrayList< Float > | pts | ) |