|
|||||||||
| Home >> All >> org >> fudaa >> ebli >> [ calque overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.fudaa.ebli.calque
Class ZEbliFilleCalques

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JInternalFrame
com.memoire.bu.BuInternalFrame
org.fudaa.ebli.impression.EbliFilleImprimable
org.fudaa.ebli.calque.ZEbliFilleCalques
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.event.ActionListener, org.fudaa.ebli.impression.EbliPageable, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Pageable, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.event.TreeSelectionListener, javax.swing.WindowConstants
- public class ZEbliFilleCalques
- extends org.fudaa.ebli.impression.EbliFilleImprimable
- implements javax.swing.event.TreeSelectionListener, java.awt.event.ActionListener
- extends org.fudaa.ebli.impression.EbliFilleImprimable
Fenetre d'affichage de calques contenant des services de base. (position
souris, zoom fenetre, selection, transformations spatiales).
Il est possible d'ajouter des boutons grace aux methodes
addButtonGroup. Par defaut, 3 groupes de boutons
sont proposes : selection, standard et navigation. Ils peuvent
etre supprimes ou modifies avec les methodes remove
- Version:
- $Id: ZEbliFilleCalques.java,v 1.2 2003/01/30 17:27:39 deniger Exp $
| Nested Class Summary | |
private class |
ZEbliFilleCalques.ButtonRenderer
Un renderer pour les specificTools. |
private class |
ZEbliFilleCalques.GroupModel
Le modele utilise pour afficher la specificToolsList_ dans le panel ViewPreferences. |
private class |
ZEbliFilleCalques.SpecificToolsManager
pour l'instant inutile : devrait se charger de la visibilite des specificTools. |
private class |
ZEbliFilleCalques.ViewPreferences
Le dialogue qui permet d'afficher la visibilite des specificTools. |
private class |
ZEbliFilleCalques.VisibleRenderer
un renderer pour la checkBox. |
| Nested classes inherited from class javax.swing.JInternalFrame |
javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIcon |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class org.fudaa.ebli.impression.EbliFilleImprimable |
|
| Fields inherited from class com.memoire.bu.BuInternalFrame |
SHORTCUT |
| Fields inherited from class javax.swing.JInternalFrame |
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface org.fudaa.ebli.impression.EbliPageable |
DEFAULT_PAGE_FORMAT |
| Fields inherited from interface java.awt.print.Pageable |
UNKNOWN_NUMBER_OF_PAGES |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ZEbliFilleCalques(BVueCalque _vc,
BArbreCalque _arbre)
Constructeur minimal. |
|
ZEbliFilleCalques(BVueCalque _vc,
BArbreCalque _arbre,
boolean _groupSelection,
boolean _groupNavigation,
boolean _groupStandard)
Constructeur qui permet de specifier quels groupes de boutons doivent etre construit. |
|
ZEbliFilleCalques(BVueCalque _vc,
BArbreCalque _arbre,
com.memoire.bu.BuCommonInterface _appli)
|
|
ZEbliFilleCalques(BVueCalque _vc,
BArbreCalque _arbre,
com.memoire.bu.BuCommonInterface _appli,
com.memoire.bu.BuInformationsDocument _id)
|
|
ZEbliFilleCalques(BVueCalque _vc,
BArbreCalque _arbre,
com.memoire.bu.BuCommonInterface _appli,
com.memoire.bu.BuInformationsDocument _id,
boolean _groupSelection,
boolean _groupNavigation,
boolean _groupStandard)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is invoked when an action occurs. |
protected void |
addEnableButton(javax.swing.AbstractButton[] _add)
Ajoute les boutons _add a la liste des enableButtons. |
protected void |
addSpecificComponent(javax.swing.JComponent b)
|
protected void |
addSpecificComponent(javax.swing.JComponent[] b)
|
protected void |
addSpecificComponent(javax.swing.JComponent[] b,
boolean _sep)
|
protected void |
addSpecificComponent(javax.swing.JComponent b,
boolean _sep)
|
protected void |
addSpecificSeparator()
|
protected void |
addSpecificSeparator(int i)
|
private void |
applyPreferences()
|
protected com.memoire.bu.BuMenu |
buildAffichageMenu()
|
private void |
buildButtonGroupNavigation()
Construction du groupe de navigation par defaut. |
private void |
buildButtonGroupSelection()
Construction du groupe de selection par defaut. |
private void |
buildButtonGroupStandard()
Construction du groupe standard par defaut. |
void |
clearSelections()
Methode pour vider la selection. |
protected java.util.ArrayList |
createArrayList()
|
protected void |
ensureSpecificCapacity(int _plus)
|
BArbreCalque |
getArbreCalque()
|
protected javax.swing.AbstractButton |
getButton(java.lang.String _actionCommand)
|
BCalque |
getCalqueActif()
Renvoie le calque actif ( selectionne dans l'arbre). |
ZCalqueSelectionInteraction |
getCalqueSelection()
|
javax.swing.AbstractButton[] |
getEnableButtons()
Renvoie les enableButtons : ce sont les boutons qui seront actives ou non avec le changement de calque. |
int |
getNumberOfPages()
This method returns the number of pages this object contains, or UNKNOWN_NUMBER_OF_PAGES if it cannot determine the number
of pages to be printed. |
private java.lang.String |
getPreferencesKey(javax.swing.JComponent _ab)
|
private java.lang.String |
getPreferencesVisibleKey(javax.swing.JComponent _ab)
|
javax.swing.JMenu[] |
getSpecificMenus()
|
javax.swing.JComponent[] |
getSpecificTools()
Renvoie les specific tools de cette fenetre. |
org.fudaa.ebli.calque.state.EbliState |
getState()
L'etat en cours de cette frame. |
BVueCalque |
getVueCalque()
|
boolean |
isCustomize()
Renvoie true si l'affichage peut-etre "customisable". |
boolean |
isModeVisible()
Propriete de visibilite du composant de renseignement de l'etat. |
private boolean |
isPreferencesVisible(javax.swing.JComponent _ab)
|
protected void |
majToolBar()
|
int |
print(java.awt.Graphics _g,
java.awt.print.PageFormat _format,
int _numPage)
La methode centrale qui permet d'imprimer (idem que celle de l'interface printable). |
void |
repereModifie(org.fudaa.ebli.repere.RepereEvent e)
|
void |
restaurer()
|
void |
setArbreCalque(BArbreCalque _arbre)
|
void |
setCalque(BCalque _c)
|
protected void |
setCalqueAdminVisible(boolean _b)
|
void |
setCalqueInteractionActif(BCalqueInteraction _b,
boolean _a)
|
void |
setCustomize(boolean customize)
Si true, l'affichage peut-etre modifie. |
void |
setEnableButtons(javax.swing.AbstractButton[] _ab)
Affectation des boutons dont l'etat sera modifie par le calque actif. |
void |
setFormatSuiviSouris(java.text.DecimalFormat _f)
modifer le format d'afficahe des coordonnees de la souris. |
void |
setModeVisible(boolean _b)
Rend visible le label décrivant l'etat de ce composant (selection, zoom, deplacement...). |
void |
setSelected(boolean b)
This method sets whether this JInternalFrame is the selected frame in the JDesktopPane (or other container). |
protected void |
setSelectionEnabled(boolean _enable)
Modifie la propriete enable de tous les boutons
du groupe selection. |
void |
setState(org.fudaa.ebli.calque.state.EbliState _s)
Modifie l'etat de la fille calque. |
void |
setVueCalque(BVueCalque _vc)
|
private void |
showViewPreferences()
|
protected void |
updateEnableButtons()
Met a jour l'etat des boutons en fonction des actions activees par le calque actif. |
void |
valueChanged(javax.swing.event.TreeSelectionEvent _evt)
TreeSelection (mise a jour des etats des boutons de Selection en fonction du calque). |
private void |
writePreferences()
|
| Methods inherited from class org.fudaa.ebli.impression.EbliFilleImprimable |
getDefaultEbliPageFormat, getEnabledActions, getInformationsDocument, getInformationsSoftware, getPageFormat, getPrintable, setInformationsDocument, setInformationsSoftware |
| Methods inherited from class com.memoire.bu.BuInternalFrame |
adjustActions, getDisabledActions, getShortcut, getShortcut, setClosed, setRootPane, setRootPaneCheckingEnabled, setShortcut, setVisible, simplifyTop, toString, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
cqAdmin_
private BGroupeCalque cqAdmin_
- le groupe de calque d'administration
cqDepVueI_
private BCalquePositionnementInteraction cqDepVueI_
cqZoomI_
private BCalqueRepereInteraction cqZoomI_
suiviSouris_
private EbliAdapteurSuiviSouris suiviSouris_
vc_
private BVueCalque vc_
state_
private org.fudaa.ebli.calque.state.EbliState state_
- L'etat en cours de la fille calque.
cqSelectionI_
private ZCalqueSelectionInteraction cqSelectionI_
pnNavigation_
protected javax.swing.JPanel pnNavigation_
- Panel containing navigation buttons
ctNavigation_
protected org.fudaa.ebli.repere.BControleNavigation ctNavigation_
- Panel containing navigation tool
cqActif_
protected BCalque cqActif_
arbre_
protected BArbreCalque arbre_
specificTools_
protected javax.swing.JComponent[] specificTools_
specificToolsList_
private java.util.ArrayList specificToolsList_
specificToolsManager_
private ZEbliFilleCalques.SpecificToolsManager specificToolsManager_
btSelection_
private javax.swing.AbstractButton[] btSelection_
specificToolsPrefView_
private ZEbliFilleCalques.ViewPreferences specificToolsPrefView_
enableButtons_
private javax.swing.AbstractButton[] enableButtons_
mode_
protected com.memoire.bu.BuLabel mode_
customize_
private boolean customize_
mnSpecifics_
javax.swing.JMenu[] mnSpecifics_
| Constructor Detail |
ZEbliFilleCalques
public ZEbliFilleCalques(BVueCalque _vc, BArbreCalque _arbre)
- Constructeur minimal. Les groupes de navigation et standard
seront construits.
ZEbliFilleCalques
public ZEbliFilleCalques(BVueCalque _vc, BArbreCalque _arbre, boolean _groupSelection, boolean _groupNavigation, boolean _groupStandard)
- Constructeur qui permet de specifier quels groupes
de boutons doivent etre construit.
ZEbliFilleCalques
public ZEbliFilleCalques(BVueCalque _vc, BArbreCalque _arbre, com.memoire.bu.BuCommonInterface _appli)
ZEbliFilleCalques
public ZEbliFilleCalques(BVueCalque _vc, BArbreCalque _arbre, com.memoire.bu.BuCommonInterface _appli, com.memoire.bu.BuInformationsDocument _id)
ZEbliFilleCalques
public ZEbliFilleCalques(BVueCalque _vc, BArbreCalque _arbre, com.memoire.bu.BuCommonInterface _appli, com.memoire.bu.BuInformationsDocument _id, boolean _groupSelection, boolean _groupNavigation, boolean _groupStandard)
| Method Detail |
createArrayList
protected java.util.ArrayList createArrayList()
getPreferencesKey
private java.lang.String getPreferencesKey(javax.swing.JComponent _ab)
getPreferencesVisibleKey
private java.lang.String getPreferencesVisibleKey(javax.swing.JComponent _ab)
isPreferencesVisible
private boolean isPreferencesVisible(javax.swing.JComponent _ab)
writePreferences
private void writePreferences()
setModeVisible
public final void setModeVisible(boolean _b)
- Rend visible le label décrivant l'etat de ce composant
(selection, zoom, deplacement...).
isModeVisible
public boolean isModeVisible()
- Propriete de visibilite du composant de
renseignement de l'etat.
setCalqueAdminVisible
protected void setCalqueAdminVisible(boolean _b)
getButton
protected javax.swing.AbstractButton getButton(java.lang.String _actionCommand)
addSpecificSeparator
protected void addSpecificSeparator(int i)
addSpecificSeparator
protected void addSpecificSeparator()
applyPreferences
private void applyPreferences()
setSelectionEnabled
protected void setSelectionEnabled(boolean _enable)
- Modifie la propriete
enablede tous les boutons du groupe selection.
setVueCalque
public void setVueCalque(BVueCalque _vc)
setArbreCalque
public void setArbreCalque(BArbreCalque _arbre)
setCalque
public void setCalque(BCalque _c)
buildButtonGroupStandard
private void buildButtonGroupStandard()
- Construction du groupe standard par defaut.
buildButtonGroupNavigation
private void buildButtonGroupNavigation()
- Construction du groupe de navigation par defaut.
buildButtonGroupSelection
private void buildButtonGroupSelection()
- Construction du groupe de selection par defaut.
ensureSpecificCapacity
protected void ensureSpecificCapacity(int _plus)
setSelected
public void setSelected(boolean b)
throws java.beans.PropertyVetoException
- Description copied from class:
javax.swing.JInternalFrame - This method sets whether this JInternalFrame is the selected frame in the
JDesktopPane (or other container). When selected, a JInternalFrame will
have focus and paint its TitlePane differently (usually a different
colour). If this method selects the frame, this JInternalFrame will fire
an INTERNAL_FRAME_ACTIVATED event. If it deselects this frame, it will
fire an INTERNAL_FRAME_DEACTIVATED event.
getVueCalque
public BVueCalque getVueCalque()
setCalqueInteractionActif
public void setCalqueInteractionActif(BCalqueInteraction _b, boolean _a)
getArbreCalque
public BArbreCalque getArbreCalque()
showViewPreferences
private void showViewPreferences()
buildAffichageMenu
protected com.memoire.bu.BuMenu buildAffichageMenu()
majToolBar
protected void majToolBar()
getSpecificMenus
public javax.swing.JMenu[] getSpecificMenus()
getSpecificTools
public javax.swing.JComponent[] getSpecificTools()
- Renvoie les specific tools de cette fenetre.
Ils seront affiches dans la tool bar de l'application.
Des boutons supplémentaires peuvent être ajoutés grace aux
fonctions
addButtonGroup.
getNumberOfPages
public int getNumberOfPages()
- Description copied from interface:
java.awt.print.Pageable - This method returns the number of pages this object contains, or
UNKNOWN_NUMBER_OF_PAGESif it cannot determine the number of pages to be printed.- Specified by:
getNumberOfPagesin interfacejava.awt.print.Pageable
repereModifie
public void repereModifie(org.fudaa.ebli.repere.RepereEvent e)
restaurer
public void restaurer()
addSpecificComponent
protected void addSpecificComponent(javax.swing.JComponent b)
addSpecificComponent
protected void addSpecificComponent(javax.swing.JComponent[] b)
addSpecificComponent
protected void addSpecificComponent(javax.swing.JComponent b, boolean _sep)
addSpecificComponent
protected void addSpecificComponent(javax.swing.JComponent[] b, boolean _sep)
setFormatSuiviSouris
public void setFormatSuiviSouris(java.text.DecimalFormat _f)
- modifer le format d'afficahe des coordonnees de la souris. Si _f est null,
les double sont castes en int.
getCalqueSelection
public ZCalqueSelectionInteraction getCalqueSelection()
clearSelections
public void clearSelections()
- Methode pour vider la selection.
public int print(java.awt.Graphics _g, java.awt.print.PageFormat _format, int _numPage)
- Description copied from interface:
org.fudaa.ebli.impression.EbliPageable - La methode centrale qui permet d'imprimer (idem que celle de l'interface
printable). Le format
_formatsera celui donne par la methodePageable.getPageFormat(int).- Specified by:
printin interfaceorg.fudaa.ebli.impression.EbliPageable
getCalqueActif
public BCalque getCalqueActif()
- Renvoie le calque actif ( selectionne dans l'arbre).
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent _evt)
- TreeSelection (mise a jour des etats des boutons de Selection en fonction du calque).
Affecte le calque actif (
getCalqueActif) de cette classe, modifie les calque actifs du calque de selection ( un seul calque actif) et met a jour l'etat des specific tools (si option validee).- Specified by:
valueChangedin interfacejavax.swing.event.TreeSelectionListener
updateEnableButtons
protected void updateEnableButtons()
- Met a jour l'etat des boutons en fonction des actions activees par le calque actif.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Description copied from interface:
java.awt.event.ActionListener - This method is invoked when an action occurs.
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
getEnableButtons
public javax.swing.AbstractButton[] getEnableButtons()
- Renvoie les enableButtons : ce sont les boutons qui seront actives ou non avec le changement de calque.
La methode getEnabledSpecificTools() de
BCalqueest utilisee pour les determiner. Cette methode peut-être redefinie pour modifier les outils a activer ou non.
setEnableButtons
public void setEnableButtons(javax.swing.AbstractButton[] _ab)
- Affectation des boutons dont l'etat sera modifie par le calque actif.
addEnableButton
protected void addEnableButton(javax.swing.AbstractButton[] _add)
- Ajoute les boutons
_adda la liste desenableButtons. L'état des boutons est ensuite mis a jour.
getState
public org.fudaa.ebli.calque.state.EbliState getState()
- L'etat en cours de cette frame.
setState
public void setState(org.fudaa.ebli.calque.state.EbliState _s)
- Modifie l'etat de la fille calque.
Pour modifier automatiquement l'etat, il suffit de creer
un EbliStateToggleButton (avec l'etat adequate) et de l'ajouter
au specificTools.
isCustomize
public boolean isCustomize()
- Renvoie true si l'affichage peut-etre "customisable".
setCustomize
public void setCustomize(boolean customize)
- Si true, l'affichage peut-etre modifie.
|
|||||||||
| Home >> All >> org >> fudaa >> ebli >> [ calque overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC