|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.data.BaseModelData
com.extjs.gxt.ui.client.data.BaseModel
com.extjs.gxt.charts.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. |
Field Summary |
---|
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModel |
---|
changeEventSupport |
Fields inherited from class com.extjs.gxt.ui.client.data.BaseModelData |
---|
allowNestedValues, map |
Fields inherited from interface com.extjs.gxt.ui.client.data.ChangeEventSource |
---|
Add, Remove, Update |
Constructor Summary | |
---|---|
Legend(Legend.Position pos)
Create a new Legend instance with a border and the given position. |
|
Legend(Legend.Position pos,
boolean border)
Create a new Legend instance with the given position and border. |
Method Summary | |
---|---|
float |
getAlpha()
Returns the alpha value. |
java.lang.String |
getBackgroundColour()
Returns the background color. |
boolean |
getBorder()
Returns true if the border is enabled. |
java.lang.String |
getBorderColour()
Returns the border colour. |
java.lang.Integer |
getMargin()
Returns the margin. |
java.lang.Integer |
getPadding()
Returns the padding. |
Legend.Position |
getPosition()
Returns the position. |
java.lang.Integer |
getStroke()
Returns the stroke. |
boolean |
isShadow()
Returns the shadow. |
boolean |
isVisible()
Returns the visible state. |
void |
setAlpha(java.lang.Float alpha)
Sets the alpha value. |
void |
setBackgroundColour(java.lang.String backgroundColour)
Sets the background colour. |
void |
setBorder(boolean border)
Sets the border, whether or not to draw a line around the side legend. |
void |
setBorderColour(java.lang.String borderColour)
Sets the border colour. |
void |
setMargin(java.lang.Integer margin)
Sets the margin. |
void |
setPadding(java.lang.Integer padding)
Sets the padding. |
void |
setPosition(Legend.Position pos)
Sets the position. |
void |
setShadow(boolean shadow)
|
void |
setStroke(java.lang.Integer stroke)
Sets the stroke. |
void |
setVisible(boolean visible)
Sets whether the legend is visible. |
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModel |
---|
addChangeListener, addChangeListener, fireEvent, fireEvent, isSilent, notify, notifyPropertyChanged, remove, removeChangeListener, removeChangeListeners, set, setSilent |
Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData |
---|
get, get, getProperties, getPropertyNames, isAllowNestedValues, setAllowNestedValues, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.extjs.gxt.ui.client.data.ModelData |
---|
get, getProperties, getPropertyNames |
Constructor Detail |
---|
public Legend(Legend.Position pos)
pos
- Positionpublic Legend(Legend.Position pos, boolean border)
pos
- Positionborder
- booleanMethod Detail |
---|
public float getAlpha()
public java.lang.String getBackgroundColour()
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 boolean isVisible()
public void setAlpha(java.lang.Float alpha)
alpha
- the alpha to setpublic void setBackgroundColour(java.lang.String backgroundColour)
backgroundColour
- the background color to setpublic void setBorder(boolean border)
border
- true to draw a borderpublic void setBorderColour(java.lang.String borderColour)
borderColour
- the border colourpublic void setMargin(java.lang.Integer margin)
margin
- the margin to setpublic void setPadding(java.lang.Integer padding)
padding
- the paddingpublic void setPosition(Legend.Position pos)
pos
- the positionpublic void setShadow(boolean shadow)
shadow
- the shadow to setpublic void setVisible(boolean visible)
visible
- true for visible, false to hidepublic 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 |