|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ilog.cpl.graph.background.beans.IlpBackgroundPanel
public class IlpBackgroundPanel
A panel that can be used to edit the background configuration for a given
IlpNetwork or IlpEquipment.
It allows users to add, remove, and order backgrounds; allows users to also open and save background configurations.
The supported file types are:
You can allow additional types of background files to be opened by setting the background extensions backgroundsList.
For more details on how to use this bean see the following section of the User's Manual: Graphic Components > Network Component > Network Component Services > Background Support
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlpBackgroundPanel()
Creates an IlpBackgroundPanel that has the
"Add Background" and "Remove Background" buttons
that is associated with no view. |
|
IlpBackgroundPanel(IlpGraphView view)
Creates an IlpBackgroundPanel that has the
"Add Background" and "Remove Background" buttons. |
|
IlpBackgroundPanel(IlpGraphView view,
boolean showAddButton,
boolean showRemoveButton)
Creates a IlpBackgroundPanel that may have
the "Add Background" and "Remove Background" buttons enabled. |
|
| Method Summary | |
|---|---|
List |
getBackgroundExtensions()
Returns the background extensions that it makes visible when opening background files. |
String |
getDefaultDirectory()
Returns the default directory where this panel looks or saves files. |
boolean |
getShowAddBackgroundButton()
Returns whether the "Add Background" button is being shown. |
boolean |
getShowRemoveBackgroundButton()
Returns whether the "Remove Background" button is being shown. |
void |
setBackgroundExtensions(List extensions)
Sets the background extensions that it makes visible when opening background files. |
void |
setDefaultDirectory(String defaultDirectory)
Sets the default directory where this panel looks or saves files. |
void |
setShowAddBackgroundButton(boolean showAddBackgroundButton)
Sets whether the "Add Background" button will be shown. |
void |
setShowRemoveBackgroundButton(boolean showRemoveBackgroundButton)
Sets whether the "Remove Background" button will be shown. |
void |
setView(IlpGraphView view)
Associates this IlpBackgroundPanel with the provided graphView. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlpBackgroundPanel()
IlpBackgroundPanel that has the
"Add Background" and "Remove Background" buttons
that is associated with no view.
public IlpBackgroundPanel(IlpGraphView view)
IlpBackgroundPanel that has the
"Add Background" and "Remove Background" buttons.
view - the IlpGraphView of interest.
public IlpBackgroundPanel(IlpGraphView view,
boolean showAddButton,
boolean showRemoveButton)
IlpBackgroundPanel that may have
the "Add Background" and "Remove Background" buttons enabled.
view - the IlpGraphView of interest.showAddButton - whether to show "Add Background" button.showRemoveButton - whether to show "Remove Background" button.| Method Detail |
|---|
public void setView(IlpGraphView view)
IlpBackgroundPanel with the provided graphView.
If a null value is passed as the graphView, this IlpBackgroundPanel
disengages the link for its previous IlpGraphView.
view - the IlpGraphView of interest.public boolean getShowAddBackgroundButton()
public void setShowAddBackgroundButton(boolean showAddBackgroundButton)
showAddBackgroundButton - whether the "Add Background" button will be shown.public boolean getShowRemoveBackgroundButton()
public void setShowRemoveBackgroundButton(boolean showRemoveBackgroundButton)
showRemoveBackgroundButton - whether the "Remove Background" button will be shown.public String getDefaultDirectory()
public void setDefaultDirectory(String defaultDirectory)
defaultDirectory - the default directory where this panel looks or
saves files.public List getBackgroundExtensions()
public void setBackgroundExtensions(List extensions)
extensions - a List with String instances in the form: "txt", "xml"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||