Bridges-Java-2.4  2.4.2
Bridges(JavaAPI)
Public Member Functions | List of all members
bridges.base.Rectangle Class Reference

This class defines a rectangle and is part of the symbol collection. A rectangle has height and width. More...

Inheritance diagram for bridges.base.Rectangle:
bridges.base.Symbol bridges.base.DataStruct

Public Member Functions

 Rectangle ()
 
 Rectangle (int w, int h)
 
 Rectangle (Float locx, Float locy, int w, int h)
 
String getName ()
 
void setWidth (int w)
 
Float [] getDimensions ()
 
void setRectangle (Float locx, Float locy, int w, int h)
 
JSONObject getJSONRepresentation ()
 
- Public Member Functions inherited from bridges.base.Symbol
String getDataStructType ()
 
 Symbol ()
 
void setLabel (String label)
 
String getLabel ()
 
String getIdentifier ()
 
Symbol setFillColor (Color c)
 
Color getFillColor ()
 
Symbol setStrokeColor (Color c)
 
Color getStrokeColor ()
 
Symbol setStrokeWidth (Float strokewidth)
 
Float getStrokeWidth ()
 
Symbol setOpacity (Float o)
 
Float getOpacity ()
 
Symbol setStrokeDash (int dash)
 
Integer getStrokeDash ()
 
Symbol setLocation (int x, int y)
 
Symbol setLocation (Float x, Float y)
 
Float [] getLocation ()
 

Additional Inherited Members

- Protected Attributes inherited from bridges.base.Symbol
String label = ""
 
Color fillColor = new Color("blue")
 
Float opacity = DEFAULT_OPACITY
 
Color strokeColor = new Color("white")
 
Float strokeWidth = DEFAULT_STROKEWIDTH
 
Integer strokeDash = DEFAULT_STROKEDASH
 
Float locationX = DEFAULT_LOCATIONX
 
Float locationY = DEFAULT_LOCATIONY
 
- Protected Attributes inherited from bridges.base.DataStruct
String QUOTE = "\""
 

Detailed Description

This class defines a rectangle and is part of the symbol collection. A rectangle has height and width.

Author
Kalpathi Subramanian
Date
12/23/18

Constructor & Destructor Documentation

◆ Rectangle() [1/3]

bridges.base.Rectangle.Rectangle ( )

constructors

◆ Rectangle() [2/3]

bridges.base.Rectangle.Rectangle ( int  w,
int  h 
)

◆ Rectangle() [3/3]

bridges.base.Rectangle.Rectangle ( Float  locx,
Float  locy,
int  w,
int  h 
)

Member Function Documentation

◆ getDimensions()

Float [] bridges.base.Rectangle.getDimensions ( )

This method returns the dimensions of the shape: min and max values in X and Y

Parameters
none
Returns
array of 4 values

Reimplemented from bridges.base.Symbol.

◆ getJSONRepresentation()

JSONObject bridges.base.Rectangle.getJSONRepresentation ( )

This method returns the JSON representation of the shape

Returns
String JSON string

Reimplemented from bridges.base.Symbol.

◆ getName()

String bridges.base.Rectangle.getName ( )

This method gets the name of the shape

Returns
name shape name

◆ setRectangle()

void bridges.base.Rectangle.setRectangle ( Float  locx,
Float  locy,
int  w,
int  h 
)

◆ setWidth()

void bridges.base.Rectangle.setWidth ( int  w)

This method sets the shape width

Parameters
wwidth

The documentation for this class was generated from the following file: