com.extjs.gxt.charts.client.model.axis
Class Label

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.BaseModelData
      extended by com.extjs.gxt.ui.client.data.BaseModel
          extended by com.extjs.gxt.charts.client.model.axis.Label
All Implemented Interfaces:
ChangeEventSource, Model, ModelData, java.io.Serializable
Direct Known Subclasses:
XAxis.XLabels

public class Label
extends BaseModel

Base class for an OFC label.

See Also:
Serialized Form

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
Label()
          Creates a new label.
Label(java.lang.String text)
          Creates a new label.
Label(java.lang.String text, int angle)
          Creates a new label.
 
Method Summary
 java.lang.String getColour()
          Returns the colour.
 int getRotationAngle()
          Returns the rotation.
 int getSize()
          Returns the size.
 java.lang.String getText()
          Returns the text.
 boolean isVisible()
          Returns whether the label is visible.
 void setColour(java.lang.String colour)
          Sets the colour in HTML hex format (#ffffff).
 void setRotationAngle(int angle)
          Sets the rotation in degrees (ie 45 = diagonal, 90 = vertical).
 void setSize(int size)
          Sets the size.
 void setText(java.lang.String text)
          Sets the text.
 void setVisible(boolean visible)
          Sets the 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

Label

public Label()
Creates a new label.


Label

public Label(java.lang.String text)
Creates a new label.

Parameters:
text - the text

Label

public Label(java.lang.String text,
             int angle)
Creates a new label.

Parameters:
text - the text
angle - the rotation angle
Method Detail

getColour

public java.lang.String getColour()
Returns the colour.

Returns:
the colour

getRotationAngle

public int getRotationAngle()
Returns the rotation.

Returns:
the rotation

getSize

public int getSize()
Returns the size.

Returns:
the size

getText

public java.lang.String getText()
Returns the text.

Returns:
the text

isVisible

public boolean isVisible()
Returns whether the label is visible.

Returns:
true if visible

setColour

public void setColour(java.lang.String colour)
Sets the colour in HTML hex format (#ffffff).

Parameters:
colour - the colour

setRotationAngle

public void setRotationAngle(int angle)
Sets the rotation in degrees (ie 45 = diagonal, 90 = vertical).

Parameters:
angle - the rotate angle

setSize

public void setSize(int size)
Sets the size.

Parameters:
size - the size

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the text

setVisible

public void setVisible(boolean visible)
Sets the visible.

Parameters:
visible - the visible