Getlabelrotation(), Getlabelrotationrows(), Setgridlineexceptions(gridlineexception[]) – MiG InfoCom MiG Calendar JavaBeans User Manual
Page 146: Setlabelrotation(int), Getlabelrotation, Getlabelrotationrows, Setgridlineexceptions, Setlabelrotation
![background image](https://www.manualsdir.com/files/798675/content/doc146.png)
(continued from last page)
setGridLineExceptions
public void setGridLineExceptions(GridLineException[] exceptions)
Property: Grid line exceptions makes it very fleible to override the gridline size and color in a structured way. Examples of
exceptions is:
Every fourth grid line.
•
Every grid line that is on a day boundary (any date range type).
•
Every grid line on an hour boundary but only for hours 8 to 16.
•
You can have several exceptions (as this property is an array) each capable of the above list and if the first exception is not
a "hit" then the next one will be evaluated and so on until the array is finnished and the grid line used will be the default
one.
To really understand how flexible and powerful this feature is see the "Repetitions" section in the FAQ document.
Parameters:
exceptions
- The exceptions or zero length if no exteptions to the grid lines exist (default). Never
null
.
getLabelRotation
public int getLabelRotation()
Property: If the labels for the header should be rotated and if so how. The rotaton can be either:
TYPE_SINGLE_LINE_ROT_CW
(right 90 degrees)
1.
TYPE_SINGLE_LINE_ROT_CCW
(left 90 degrees)
2.
TYPE_SINGLE_LINE
(normal text)
3.
Returns:
The rotation. Default is
TextAShape.TYPE_SINGLE_LINE
which means no rotation.
setLabelRotation
public void setLabelRotation(int rot)
Property: If the labels for the header should be rotated and if so how. The rotaton can be either:
TYPE_SINGLE_LINE_ROT_CW
(right 90 degrees)
1.
TYPE_SINGLE_LINE_ROT_CCW
(left 90 degrees)
2.
TYPE_SINGLE_LINE
(normal text)
3.
This method will reinitialize the header if the value is changed but do nothing if it's the same.
Parameters:
rot
- The rotation. Default is
TextAShape.TYPE_SINGLE_LINE
which means no rotation.
getLabelRotationRows
public String getLabelRotationRows()
Property: A comma separated string with the rows that are to get the property
value of
null
, "" and any illegal value means "all rows".
Returns:
Page 146 of 196
com.miginfocom.beans.DateHeaderBean