Class ViewSettings
java.lang.Object
|
+----ViewSettings
- public class ViewSettings
- extends Object
Class definition for user-configurable view settings.
- Version:
- $Revision: 1.6 $, $Date: 2000/10/30 17:03:30 $
- Author:
- John Cavanaugh
-
areaBounds
- A flag indicating whether area boundaries are to be displayed.
-
areaLabels
- A flag indicating whether area labels are to be displayed.
-
COLOR_VCC_BY_AGE
-
-
COLOR_VCC_BY_MAX
-
-
COLOR_VCC_BY_MIN
-
-
COLOR_VCC_BY_OWNER
-
-
COLOR_VCC_BY_RATE
-
-
COLOR_VCC_BY_SIG
-
-
colorVCCBy
- A selector indicating how VCC colors are to be chosen.
-
displaySize
- The size of the display window.
-
DRAW_VCC_AS_ARC
-
-
DRAW_VCC_AS_LINE
-
-
DRAW_VCC_AS_MAX
-
-
DRAW_VCC_AS_MIN
-
-
drawVCCAs
- A selector indicating how VCCs are to be drawn.
-
hostLabels
- A flag indicating whether end system labels are to be displayed.
-
orphans
- A flag indicating whether orphan hosts are to be displayed.
-
switchLabels
- A flag indicating whether switch labels are to be displayed.
-
switchLinks
- A flag indicating whether switch-switch links are to be
displayed.
-
vccOwner
- An array of flags indicating whether VCCs of each different
owner are to be displayed.
-
vccOwnerColors
- An array of colors for VCCs of each different owenr.
-
VCCs
- A flag indicating whether VCCs are to be displayed.
-
vccSig
- An array of flags indicating whether VCCs of each signalling
protocol type are to be displayed.
-
vccSigColors
- An array of colors for VCCs of each signalling protocol type.
-
ViewSettings()
- Constructs a ViewSettings object with default values.
-
getColorVCCBy()
- Gets the method for choosing VCC colors.
-
getDisplaySize()
- Gets the display window size.
-
getDrawVCCAs()
- Gets the method for drawing VCCs.
-
getVCCOwner()
- Gets the array of VCC owner settings.
-
getVCCOwnerColor(int)
- Gets VCC color by owner.
-
getVCCOwnerColors()
- Gets the array of VCC owner colors.
-
getVCCSigColor(int)
- Gets the VCC color by signalling type.
-
getVCCSigColors()
- Gets the array of VCC signalling protocol colors.
-
getVCCSigTypes()
- Gets the array of VCC visibility settings.
-
setAreaBounds(boolean)
- Sets area bounds visibility.
-
setAreaLabels(boolean)
- Sets area label visibility.
-
setColorVCCBy(int)
- Sets the method for choosing VCC colors.
-
setDisplaySize(Dimension)
- Sets the display window size.
-
setDrawVCCAs(int)
- Sets the method for drawing VCCs.
-
setHostLabels(boolean)
- Sets host label visibility.
-
setOrphans(boolean)
- Sets orphan host visibility.
-
setSwitchLabels(boolean)
- Sets switch label visibility.
-
setSwitchLinks(boolean)
- Sets switch link visibility.
-
setVCCOwner(int, boolean)
- Sets VCC visibility by owner.
-
setVCCs(boolean)
- Sets VCC visibility.
-
setVCCSigType(int, boolean)
- Sets VCC visibility by signalling type.
-
showAreaBounds()
- Returns area bounds visibility.
-
showAreaLabels()
- Returns area label visibility.
-
showHostLabels()
- Returns host label visibility.
-
showOrphans()
- Returns orphan host visibility.
-
showSwitchLabels()
- Returns switch label visibility.
-
showSwitchLinks()
- Returns switch link visibility.
-
showVCCOwner(int)
- Returns VCC visibility by owner.
-
showVCCs()
- Returns VCC visibility.
-
showVCCSigType(int)
- Returns VCC visibility by signalling type.
-
toString()
- Gets a string describing the view settings.
displaySize
private Dimension displaySize
- The size of the display window.
hostLabels
private boolean hostLabels
- A flag indicating whether end system labels are to be displayed.
switchLabels
private boolean switchLabels
- A flag indicating whether switch labels are to be displayed.
orphans
private boolean orphans
- A flag indicating whether orphan hosts are to be displayed.
areaBounds
private boolean areaBounds
- A flag indicating whether area boundaries are to be displayed.
areaLabels
private boolean areaLabels
- A flag indicating whether area labels are to be displayed.
switchLinks
private boolean switchLinks
- A flag indicating whether switch-switch links are to be
displayed.
VCCs
private boolean VCCs
- A flag indicating whether VCCs are to be displayed.
vccSig
private boolean vccSig[]
- An array of flags indicating whether VCCs of each signalling
protocol type are to be displayed.
vccSigColors
private Color vccSigColors[]
- An array of colors for VCCs of each signalling protocol type.
vccOwner
private boolean vccOwner[]
- An array of flags indicating whether VCCs of each different
owner are to be displayed.
vccOwnerColors
private Color vccOwnerColors[]
- An array of colors for VCCs of each different owenr.
colorVCCBy
private int colorVCCBy
- A selector indicating how VCC colors are to be chosen.
COLOR_VCC_BY_SIG
public static final int COLOR_VCC_BY_SIG
COLOR_VCC_BY_OWNER
public static final int COLOR_VCC_BY_OWNER
COLOR_VCC_BY_RATE
public static final int COLOR_VCC_BY_RATE
COLOR_VCC_BY_AGE
public static final int COLOR_VCC_BY_AGE
COLOR_VCC_BY_MIN
public static final int COLOR_VCC_BY_MIN
COLOR_VCC_BY_MAX
public static final int COLOR_VCC_BY_MAX
drawVCCAs
private int drawVCCAs
- A selector indicating how VCCs are to be drawn.
DRAW_VCC_AS_LINE
public static final int DRAW_VCC_AS_LINE
DRAW_VCC_AS_ARC
public static final int DRAW_VCC_AS_ARC
DRAW_VCC_AS_MIN
public static final int DRAW_VCC_AS_MIN
DRAW_VCC_AS_MAX
public static final int DRAW_VCC_AS_MAX
ViewSettings
public ViewSettings()
- Constructs a ViewSettings object with default values.
getDisplaySize
public Dimension getDisplaySize()
- Gets the display window size.
- Returns:
- a Dimension giving the size of the display window.
setDisplaySize
public void setDisplaySize(Dimension displaySize)
- Sets the display window size.
- Parameters:
- displaySize - the size of the display window.
showHostLabels
public boolean showHostLabels()
- Returns host label visibility.
- Returns:
- true if host labels are to be displayed;
false otherwise.
setHostLabels
public void setHostLabels(boolean hostLabels)
- Sets host label visibility.
- Parameters:
- hostLabels - true if host labels are to be displayed;
false otherwise.
showSwitchLabels
public boolean showSwitchLabels()
- Returns switch label visibility.
- Returns:
- true if switch labels are to be displayed;
false otherwise.
setSwitchLabels
public void setSwitchLabels(boolean switchLabels)
- Sets switch label visibility.
- Parameters:
- switchLabels - true if switch labels are to be
displayed; false otherwise.
showOrphans
public boolean showOrphans()
- Returns orphan host visibility.
- Returns:
- true if orphan hosts are to be displayed;
false otherwise.
setOrphans
public void setOrphans(boolean orphans)
- Sets orphan host visibility.
- Parameters:
- orphans - true if orphan hosts are to be
displayed; false otherwise.
showAreaBounds
public boolean showAreaBounds()
- Returns area bounds visibility.
- Returns:
- true if area boundaries are to be
displayed; false otherwise.
setAreaBounds
public void setAreaBounds(boolean areaBounds)
- Sets area bounds visibility.
- Parameters:
- areaBounds - true if area boundaries are to be
displayed; false otherwise.
showAreaLabels
public boolean showAreaLabels()
- Returns area label visibility.
- Returns:
- true if area labels are to be displayed;
false otherwise.
setAreaLabels
public void setAreaLabels(boolean areaLabels)
- Sets area label visibility.
- Parameters:
- areaLabels - true if area labels are to be
displayed; false otherwise.
showSwitchLinks
public boolean showSwitchLinks()
- Returns switch link visibility.
- Returns:
- true if switch-switch links are to be displayed;
false otherwise.
setSwitchLinks
public void setSwitchLinks(boolean switchLinks)
- Sets switch link visibility.
- Parameters:
- switchLinks - true if switch-switch links are to be
displayed; false otherwise.
showVCCs
public boolean showVCCs()
- Returns VCC visibility.
- Returns:
- true if VCCs are to be displayed; false otherwise.
setVCCs
public void setVCCs(boolean VCCs)
- Sets VCC visibility.
- Parameters:
- VCCs - true if VCCs are to be
displayed; false otherwise.
showVCCSigType
public boolean showVCCSigType(int type)
- Returns VCC visibility by signalling type.
- Parameters:
- type - the signalling protocol whose visibility
is being tested.
- Returns:
- true if VCCs established by the indicated
signalling protocol are to be displayed;
false if they are not.
setVCCSigType
public void setVCCSigType(int type,
boolean b)
- Sets VCC visibility by signalling type.
- Parameters:
- type - the signalling type whose visibility is
to be set.
- b - true if VCCs established by the indicated
signalling protocol are to be displayed;
false if they are not.
getVCCSigTypes
public boolean[] getVCCSigTypes()
- Gets the array of VCC visibility settings.
- Returns:
- a boolean array containing visibility settings
for all signalling protocols.
getVCCSigColor
public Color getVCCSigColor(int type)
- Gets the VCC color by signalling type.
- Parameters:
- type - the signalling type whose color is desired.
- Returns:
- the display color for the signalling type.
getVCCSigColors
public Color[] getVCCSigColors()
- Gets the array of VCC signalling protocol colors.
- Returns:
- an array of colors for all signalling protocols.
showVCCOwner
public boolean showVCCOwner(int owner)
- Returns VCC visibility by owner.
- Parameters:
- owner - the owner whose visibility is being tested.
- Returns:
- true if VCCs established by the indicated
owner are to be displayed;
false if they are not.
setVCCOwner
public void setVCCOwner(int owner,
boolean b)
- Sets VCC visibility by owner.
- Parameters:
- owner - the owner whose visibility is being tested.
- b - true if VCCs established by the indicated
owner are to be displayed;
false if they are not.
getVCCOwner
public boolean[] getVCCOwner()
- Gets the array of VCC owner settings.
- Returns:
- a boolean array containing visibility settings
for all owners.
getVCCOwnerColor
public Color getVCCOwnerColor(int owner)
- Gets VCC color by owner.
- Parameters:
- owner - the owner whose color is desired.
- Returns:
- the display color for the owner.
getVCCOwnerColors
public Color[] getVCCOwnerColors()
- Gets the array of VCC owner colors.
- Returns:
- an array of colors for all owners.
getColorVCCBy
public int getColorVCCBy()
- Gets the method for choosing VCC colors.
- Returns:
- the method to be used to choose colors for VCCs.
setColorVCCBy
public void setColorVCCBy(int method)
- Sets the method for choosing VCC colors.
- Parameters:
- method - the method to be used to choose colors for VCCs.
getDrawVCCAs
public int getDrawVCCAs()
- Gets the method for drawing VCCs.
- Returns:
- the method to be used to draw VCCs.
setDrawVCCAs
public void setDrawVCCAs(int method)
- Sets the method for drawing VCCs.
- Parameters:
- return - method the method to be used to draw VCCs.
toString
public String toString()
- Gets a string describing the view settings.
- Returns:
- a String describing the view settings object.
- Overrides:
- toString in class Object