|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.widgets.MiChangeAttributesSelectionGraphics
This class implements the MiiSelectionGraphics interface. As such it is responsible for the making the appearance of a graphics part when the part is 'selected' different from when it is 'not selected'.
This class implements the MiiSelectionGraphics interface. This implementation changes the attributes of the selected parts. By default this sets the fore and background colors of the selected part unless the part is text, in which case just the foreground color is changed. The default color is 'red'.
| Field Summary |
| Constructor Summary | |
MiChangeAttributesSelectionGraphics()
Constructs a new MiBoxSelectionGraphics. |
|
| Method Summary | |
boolean |
getApplyToAttachments()
Get whether to apply the attributes to attachments of selected items. |
boolean |
getApplyToSelectedItems()
Get whether to apply the attributes to the actual selected items. |
boolean |
getApplyToSelectedItemsParts()
Get whether to apply the attributes to parts of selected items. |
MiAttributes |
getAttributes()
Get the attributes used to apply to selected parts. |
MiAttributes |
getTextAttributes()
Get the attributes used to apply to selected text items |
void |
select(MiEditor editor,
MiPart obj,
boolean flag)
This method tells this selection graphics appearance manager whether the given part in the given editor is selected. |
void |
select(MiEditor editor,
MiPart obj,
boolean flag,
boolean inAttachment)
|
void |
setApplyToAttachments(boolean flag)
Sets whether to apply the attributes to attachments of selected items. |
void |
setApplyToSelectedItems(boolean flag)
Sets whether to apply the attributes to the actual selected items. |
void |
setApplyToSelectedItemsParts(boolean flag)
Sets whether to apply the attributes to parts of selected items. |
void |
setAttributes(MiAttributes attributes)
Set the attributes used to apply to selected parts. |
void |
setTextAttributes(MiAttributes attributes)
Set the attributes used to apply to selected text items. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MiChangeAttributesSelectionGraphics()
| Method Detail |
public void setAttributes(MiAttributes attributes)
attributes - the attributespublic MiAttributes getAttributes()
public void setTextAttributes(MiAttributes attributes)
attributes - the attributespublic MiAttributes getTextAttributes()
public void setApplyToSelectedItems(boolean flag)
public boolean getApplyToSelectedItems()
public void setApplyToAttachments(boolean flag)
public boolean getApplyToAttachments()
public void setApplyToSelectedItemsParts(boolean flag)
public boolean getApplyToSelectedItemsParts()
public void select(MiEditor editor,
MiPart obj,
boolean flag)
select in interface MiiSelectionGraphicseditor - the editorflag - true if the part is now selected.obj - the part whose selection state
has changed.
public void select(MiEditor editor,
MiPart obj,
boolean flag,
boolean inAttachment)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||