Bridges-Java-2.4  2.4.2
Bridges(JavaAPI)
Public Member Functions | Protected Attributes | List of all members
bridges.base.Symbol Class Reference
Inheritance diagram for bridges.base.Symbol:
bridges.base.DataStruct bridges.base.Circle bridges.base.Label bridges.base.Polygon bridges.base.Rectangle

Public Member Functions

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 ()
 
Float [] getDimensions ()
 
JSONObject getJSONRepresentation ()
 

Protected Attributes

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 = "\""
 

Constructor & Destructor Documentation

◆ Symbol()

bridges.base.Symbol.Symbol ( )

Member Function Documentation

◆ getDataStructType()

String bridges.base.Symbol.getDataStructType ( )

Reimplemented from bridges.base.DataStruct.

◆ getDimensions()

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

◆ getFillColor()

Color bridges.base.Symbol.getFillColor ( )

◆ getIdentifier()

String bridges.base.Symbol.getIdentifier ( )

this method returns the Symbol's unique identifier

Returns
the string identifier

◆ getJSONRepresentation()

JSONObject bridges.base.Symbol.getJSONRepresentation ( )

Internal code for getting the properties of the Symbol object. It produces (without the spaces or newlines): { "name": "Some label", "other CSS properties like color": any_JSON_value }

Returns
the encoded JSON string

Reimplemented in bridges.base.Rectangle, bridges.base.Polygon, bridges.base.Circle, and bridges.base.Label.

◆ getLabel()

String bridges.base.Symbol.getLabel ( )

◆ getLocation()

Float [] bridges.base.Symbol.getLocation ( )

◆ getOpacity()

Float bridges.base.Symbol.getOpacity ( )

◆ getStrokeColor()

Color bridges.base.Symbol.getStrokeColor ( )

◆ getStrokeDash()

Integer bridges.base.Symbol.getStrokeDash ( )

◆ getStrokeWidth()

Float bridges.base.Symbol.getStrokeWidth ( )

◆ setFillColor()

Symbol bridges.base.Symbol.setFillColor ( Color  c)

◆ setLabel()

void bridges.base.Symbol.setLabel ( String  label)

This method sets the label

Parameters
labelthe label to set

◆ setLocation() [1/2]

Symbol bridges.base.Symbol.setLocation ( Float  x,
Float  y 
)

◆ setLocation() [2/2]

Symbol bridges.base.Symbol.setLocation ( int  x,
int  y 
)

◆ setOpacity()

Symbol bridges.base.Symbol.setOpacity ( Float  o)

◆ setStrokeColor()

Symbol bridges.base.Symbol.setStrokeColor ( Color  c)

◆ setStrokeDash()

Symbol bridges.base.Symbol.setStrokeDash ( int  dash)

◆ setStrokeWidth()

Symbol bridges.base.Symbol.setStrokeWidth ( Float  strokewidth)

Member Data Documentation

◆ fillColor

Color bridges.base.Symbol.fillColor = new Color("blue")
protected

◆ label

String bridges.base.Symbol.label = ""
protected

◆ locationX

Float bridges.base.Symbol.locationX = DEFAULT_LOCATIONX
protected

◆ locationY

Float bridges.base.Symbol.locationY = DEFAULT_LOCATIONY
protected

◆ opacity

Float bridges.base.Symbol.opacity = DEFAULT_OPACITY
protected

◆ strokeColor

Color bridges.base.Symbol.strokeColor = new Color("white")
protected

◆ strokeDash

Integer bridges.base.Symbol.strokeDash = DEFAULT_STROKEDASH
protected

◆ strokeWidth

Float bridges.base.Symbol.strokeWidth = DEFAULT_STROKEWIDTH
protected

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