|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.rednels.ofcgwt.client.model.Legend
public class Legend
Base class for an OFC legend element
| Nested Class Summary | |
|---|---|
static class |
Legend.Position
Enumeration Position - used with legend. |
| Constructor Summary | |
|---|---|
Legend(Legend.Position pos,
boolean border)
Create a new Legend instance with the given position and border. |
|
| Method Summary | |
|---|---|
com.google.gwt.json.client.JSONValue |
buildJSON()
Build (and return) a JSONObject that contains all the items of this object. |
java.lang.Float |
getAlpha()
|
java.lang.String |
getBgColour()
|
boolean |
getBorder()
Get the border |
java.lang.String |
getBorderColour()
|
java.lang.Integer |
getMargin()
|
java.lang.Integer |
getPadding()
|
Legend.Position |
getPosition()
Get the position |
java.lang.Integer |
getStroke()
|
boolean |
isShadow()
|
void |
setAlpha(java.lang.Float alpha)
|
void |
setBgColour(java.lang.String bgColour)
|
void |
setBorder(boolean border)
Sets the border, whether or not to draw a line around the side legend. |
void |
setBorderColour(java.lang.String borderColour)
|
void |
setMargin(java.lang.Integer margin)
|
void |
setPadding(java.lang.Integer padding)
|
void |
setPosition(Legend.Position pos)
Sets the position. |
void |
setShadow(boolean shadow)
|
void |
setStroke(java.lang.Integer stroke)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Legend(Legend.Position pos,
boolean border)
pos - Positionborder - boolean| Method Detail |
|---|
public com.google.gwt.json.client.JSONValue buildJSON()
JSONizable
buildJSON in interface JSONizablepublic java.lang.Float getAlpha()
public java.lang.String getBgColour()
public boolean getBorder()
public java.lang.String getBorderColour()
public java.lang.Integer getMargin()
public java.lang.Integer getPadding()
public Legend.Position getPosition()
public java.lang.Integer getStroke()
public boolean isShadow()
public void setAlpha(java.lang.Float alpha)
alpha - the alpha to setpublic void setBgColour(java.lang.String bgColour)
bgColour - the bgColour to setpublic void setBorder(boolean border)
border - booleanpublic void setBorderColour(java.lang.String borderColour)
borderColour - the borderColour to setpublic void setMargin(java.lang.Integer margin)
margin - the margin to setpublic void setPadding(java.lang.Integer padding)
padding - the padding to setpublic void setPosition(Legend.Position pos)
pos - Positionpublic void setShadow(boolean shadow)
shadow - the shadow to setpublic void setStroke(java.lang.Integer stroke)
stroke - the stroke to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||