|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingLine
public class LySwingLine
This class implements the line object (as described in the dtd) for swing viewer.
LyLine
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingLine(LyLine line)
Class constructor of a Line object for the Swing target. |
Method Summary | |
---|---|
void |
addComponent(LyComponent component,
int pos)
(non-Javadoc). |
void |
changeValidity()
Don't do anything. |
java.util.Vector<java.awt.Image> |
getAdditionalImages()
Returns null as the current line don't have an additional images. |
java.awt.Color |
getColor()
Returns the color of this line. |
java.awt.Component |
getComponent()
(non-Javadoc). |
LyJTreeElementImpl._LyNodeContent |
getContent()
Gets the content of this node. |
java.awt.Image |
getEmptyCheckboxImage()
Returns null as the current line don't have an empty checkbox image. |
java.awt.Font |
getFont()
Returns the font for this line. |
java.awt.Color |
getFontColor()
Returns the font color of this line. |
java.util.Vector<LyGanttElement> |
getGanttElements()
Accessor to the gantt element list. |
int |
getHeightFactor()
Returns the height factor for this node. |
java.lang.String |
getId()
(non-Javadoc). |
java.lang.String |
getLabel()
(non-Javadoc). |
java.util.Date |
getLimitDate(boolean max)
Returns the limit date for this line (minimum or maximum). |
javax.swing.tree.DefaultMutableTreeNode |
getMutableTreeNode()
Accessor to the internal mutable tree node. |
java.awt.Image |
getSelectedCheckboxImage()
Returns null as the current line don't have a selected checkbox image. |
java.awt.Color |
getSelectedColor()
Returns the color of this line when selected. |
java.awt.Color |
getSelectedFontColor()
Returns the font color of this line when selected. |
LyJTreeComponent |
getTree()
Gets the tree component that display this node. |
javax.swing.tree.TreePath |
getTreePath()
Returns a TreePath for this node. |
int |
getValidityImageIndex()
Returns -1 as the current line don't have validity mechanisms. |
java.awt.Rectangle |
getValidityRectangle()
Returns null as this line don't implement validity mechanisms. |
boolean |
hasSuperLineChildren()
Indicates if this line has at least one super line as a child. |
void |
initialize()
Initializes this line component. |
boolean |
isMovable()
Indicates if the element is movable. |
boolean |
isOpen()
(non-Javadoc). |
boolean |
isSelected()
(non-Javadoc). |
boolean |
isSuperLine()
Indicates if this line is a super line (for example, a line that contains sub-lines). |
void |
removeComponent(LyComponent component)
(non-Javadoc). |
void |
resetDates()
Resets the dates of the line and updates the Gantt component. |
void |
resetDependencies()
Resets the dependencies for the entire Gantt component. |
void |
setColor(java.lang.String color)
The specified color is already set for this line when this method is called and is only used here to refresh the Swing tree component. |
void |
setContent()
Fills the line. |
void |
setFont(java.lang.String font)
The specified font is already set for this line when this method is called and is only used here to refresh the Swing tree component. |
void |
setForegroundColor(java.lang.String color)
The specified color is already set for this line when this method is called and is only used here to refresh the Swing tree component. |
void |
setHeightFactor(int factor)
Sets the height factor for this node. |
void |
setHidden(boolean hidden)
(non-Javadoc). |
void |
setImage(java.lang.String image)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
(non-Javadoc). |
void |
setMovable(boolean movable)
Sets the movable state of the Gantt element. |
void |
setOpen(boolean status)
(non-Javadoc). |
void |
setSelected(boolean status)
(non-Javadoc). |
void |
setSuperLineColor(java.lang.String color)
(non-Javadoc). |
void |
setSuperLineHidden(boolean hidden)
(non-Javadoc). |
void |
setSuperLineLabel(java.lang.String label)
(non-Javadoc). |
void |
setTooltip(java.lang.String tooltip)
(non-Javadoc). |
void |
setTree(LyJTreeComponent tree)
Sets the treeComponent that display this node. |
void |
setValidityRectangle(java.awt.Rectangle rect)
Don't do anything. |
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent event)
Refreshes the tree component when it is collapsed, no matter what event is triggered. |
void |
treeExpanded(javax.swing.event.TreeExpansionEvent event)
Refreshes the tree component when it is expanded, no matter what event is triggered. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, free, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.win.swing.component.LyJTreeElement |
---|
getEnvironment |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingLine(LyLine line)
line
- a LINE component defined for every type of view targets. This line is initialized
with the default values.Method Detail |
---|
public void initialize()
public void setContent()
_ganttElements
list if they are intervals or
creates the super lines if not. Then update the Gantt tree elements swing component with the
new content that just have been set.
getContent()
public void setMovable(boolean movable)
movable
- true if movable, false otherwisepublic boolean isSuperLine()
public boolean hasSuperLineChildren()
public void resetDates()
public void resetDependencies()
public java.util.Date getLimitDate(boolean max)
max
- Indicates if maximum or minimum date must be returned. If end date is
null
, begin date is considered instead.
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public java.util.Vector<LyGanttElement> getGanttElements()
public boolean isMovable()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalLine
setLabel
in interface LySetLabelInterface
label
- New value of label.LySetLabelInterface.setLabel(java.lang.String)
public void setTooltip(java.lang.String tooltip)
setTooltip
in interface LyGraphicalLine
tooltip
- New value of tooltip.LyGraphicalLine.setTooltip(java.lang.String)
public void setSelected(boolean status)
setSelected
in interface LyGraphicalLine
setSelected
in interface LySetSelectedInterface
status
- Boolean indicating if attribute selected is set or unset.LySetSelectedInterface.setSelected(boolean)
public void setOpen(boolean status)
setOpen
in interface LyGraphicalLine
status
- Boolean indicating if attribute open is set or unset.LyGraphicalLine.setOpen(boolean)
public void treeExpanded(javax.swing.event.TreeExpansionEvent event)
treeExpanded
in interface LyJTreeElement
event
- Not used in this implementation.LyJTreeElement.treeExpanded(javax.swing.event.TreeExpansionEvent)
public void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
treeCollapsed
in interface LyJTreeElement
event
- Not used in this implementation.LyJTreeElement.treeCollapsed(javax.swing.event.TreeExpansionEvent)
public java.lang.String getId()
getId
in interface LyGetIdInterface
getId
in interface LyJTreeElement
LyGetIdInterface.getId()
public java.lang.String getLabel()
getLabel
in interface LyJTreeElement
LyJTreeElement.getLabel()
public boolean isSelected()
isSelected
in interface LyJTreeElement
true
if this tree node is selected, false
otherwiseLyJTreeElement.isSelected()
public boolean isOpen()
isOpen
in interface LyJTreeElement
true
if this tree node is opened, false
otherwiseLyJTreeElement.isOpen()
public javax.swing.tree.TreePath getTreePath()
getTreePath
in interface LyJTreeElement
LyJTreeElement.getTreePath()
public javax.swing.tree.DefaultMutableTreeNode getMutableTreeNode()
getMutableTreeNode
in interface LyJTreeElement
LyJTreeElement.getMutableTreeNode()
public LyJTreeElementImpl._LyNodeContent getContent()
getContent
in interface LyJTreeElement
LyJTreeElement.getContent()
,
setContent()
public void setTree(LyJTreeComponent tree)
setTree
in interface LyJTreeElement
tree
- the new tree componentgetTree()
,
LyJTreeElement.setTree(leon.view.win.swing.component.LyJTreeComponent)
public LyJTreeComponent getTree()
getTree
in interface LyJTreeElement
setTree(LyJTreeComponent)
,
LyJTreeElement.getTree()
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalLine
setImage
in interface LySetImageInterface
image
- New value of image.LySetImageInterface.setImage(java.lang.String)
public void setColor(java.lang.String color)
setColor
in interface LyGraphicalLine
setColor
in interface LySetColorInterface
color
- Not used in this implementation.getColor()
,
LySetColorInterface.setColor(java.lang.String)
public java.awt.Color getColor()
getColor
in interface LyJTreeElement
null
if _line is null
setColor(String)
,
LyJTreeElement.getColor()
public java.awt.Color getSelectedColor()
getSelectedColor
in interface LyJTreeElement
null
if _line is
null
getColor()
,
LyJTreeElement.getSelectedColor()
public java.awt.Color getFontColor()
getFontColor
in interface LyJTreeElement
null
if _line is null
#setFontColor(String)
,
LyJTreeElement.getFontColor()
public java.awt.Color getSelectedFontColor()
getSelectedFontColor
in interface LyJTreeElement
null
if _line is
null
getFontColor()
,
LyJTreeElement.getSelectedFontColor()
public java.awt.Font getFont()
getFont
in interface LyJTreeElement
null
if _line is null
setFont(String)
,
LyJTreeElement.getFont()
public void setFont(java.lang.String font)
setFont
in interface LyGraphicalLine
setFont
in interface LySetFontInterface
font
- Not used in this implementation.getFont()
,
LySetFontInterface.setFont(java.lang.String)
public void setForegroundColor(java.lang.String color)
color
- Not used in this implementation.#getForegroundColor()
,
leon.view.graphic.LyGraphicalLine#setForegroundColor(java.lang.String)
public void setSuperLineColor(java.lang.String color)
setSuperLineColor
in interface LyGraphicalLine
color
- New value of superLineColor.LyGraphicalLine.setSuperLineColor(java.lang.String)
public void setSuperLineLabel(java.lang.String label)
setSuperLineLabel
in interface LyGraphicalLine
label
- New value of superLineLabel.LyGraphicalLine.setSuperLineLabel(java.lang.String)
public void setSuperLineHidden(boolean hidden)
setSuperLineHidden
in interface LyGraphicalLine
hidden
- Boolean indicating if attribute superLineHidden is set or unset.LyGraphicalLine.setSuperLineHidden(boolean)
public void addComponent(LyComponent component, int pos)
addComponent
in interface LyGraphicalLine
component
- The components to add to components list.pos
- Position where the sub-component is inserted.LyGraphicalLine.addComponent(leon.view.LyComponent, int)
public void removeComponent(LyComponent component)
removeComponent
in interface LyGraphicalLine
component
- The components to remove to components list.LyGraphicalLine.removeComponent(leon.view.LyComponent)
public void setHidden(boolean hidden)
setHidden
in interface LyGraphicalLine
setHidden
in interface LySetHiddenInterface
hidden
- Boolean indicating if attribute hidden is set or unset.LySetHiddenInterface.setHidden(boolean)
public void setHeightFactor(int factor)
factor
- the new height factorgetHeightFactor()
public int getHeightFactor()
getHeightFactor
in interface LyJTreeElement
setHeightFactor(int)
public java.awt.Image getSelectedCheckboxImage()
null
as the current line don't have a selected checkbox image.
getSelectedCheckboxImage
in interface LyJTreeElement
null
LyJTreeElement.getSelectedCheckboxImage()
public java.awt.Image getEmptyCheckboxImage()
null
as the current line don't have an empty checkbox image.
getEmptyCheckboxImage
in interface LyJTreeElement
null
LyJTreeElement.getEmptyCheckboxImage()
public java.util.Vector<java.awt.Image> getAdditionalImages()
null
as the current line don't have an additional images.
getAdditionalImages
in interface LyJTreeElement
null
LyJTreeElement.getAdditionalImages()
public int getValidityImageIndex()
getValidityImageIndex
in interface LyJTreeElement
LyJTreeElement.getValidityImageIndex()
public void setValidityRectangle(java.awt.Rectangle rect)
setValidityRectangle
in interface LyJTreeElement
rect
- Not used in this implementation.getValidityRectangle()
,
LyJTreeElement.setValidityRectangle(java.awt.Rectangle)
public java.awt.Rectangle getValidityRectangle()
null
as this line don't implement validity mechanisms.
getValidityRectangle
in interface LyJTreeElement
null
setValidityRectangle(Rectangle)
,
LyJTreeElement.getValidityRectangle()
public void changeValidity()
changeValidity
in interface LyJTreeElement
LyJTreeElement.changeValidity()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |