Constructor and Description |
---|
PlotInfoImpl(StackedPlot2D parentPlot,
Object id,
int order,
int size,
int spacing,
GlimpseAxisLayout2D layout) |
Modifier and Type | Method and Description |
---|---|
void |
addLayout(GlimpseAxisLayout2D childLayout)
Adds the childLayout to the part of the StackedPlot2D represented
by this LayoutInfo.
|
void |
deletePlot()
Deprecated.
|
boolean |
equals(Object obj) |
GlimpseAxisLayout2D |
getBaseLayout()
Returns the base
GlimpseLayout . |
Axis1D |
getCommonAxis()
Returns the common axis shared by all the plots in a StackedPlot2D.
|
Axis1D |
getCommonAxis(GlimpseTargetStack stack)
Returns the common axis associated with the given GlimpseTargetStack.
|
static Comparator<PlotInfo> |
getComparator() |
Object |
getId()
Gets the unique identifier assigned to this plot.
|
int |
getIndentLevel() |
GlimpseAxisLayout2D |
getLayout()
Returns the
GlimpseAxisLayout2D for this plot. |
String |
getLayoutData() |
int |
getOrder() |
Axis1D |
getOrthogonalAxis()
Returns the data axis associated with this plot.
|
Axis1D |
getOrthogonalAxis(GlimpseTargetStack stack)
Returns the data axis associated with the given GlimpseTargetStack.
|
PlotInfo |
getParent() |
int |
getPlotSpacing() |
int |
getSize() |
StackedPlot2D |
getStackedPlot()
Gets a reference to the parent StackedPlot2D which this PlotInfo
belongs to.
|
int |
hashCode() |
boolean |
isExpanded() |
boolean |
isGrow() |
boolean |
isVisible() |
void |
removePlot()
Removes this plot from its StackedPlot2D.
|
void |
setGrow(boolean grow)
Sets the plot to fill all available space.
|
void |
setIndentLevel(int level)
Sets the indentation level of this plot.
|
void |
setLayoutData(String layoutData)
Sets the MIG Layout constraints which position this PlotInfo within the
StackedPlot2D.
|
void |
setLookAndFeel(LookAndFeel laf) |
void |
setOrder(int order)
Sets the ordering of this plot relative to the other plots in the
StackedPlot2D.
|
void |
setParent(PlotInfo parent) |
void |
setPlotSpacing(int spacing)
Sets the spacing between this plot and those above and below it.
|
void |
setSize(int size)
Sets the size in pixels for this plot.
|
void |
setVisible(boolean visible)
If true, the PlotInfo will be drawn as a row on the timeline, if false the
PlotInfo will be hidden.
|
void |
updateLayout(int index) |
public PlotInfoImpl(StackedPlot2D parentPlot, Object id, int order, int size, int spacing, GlimpseAxisLayout2D layout)
public String getLayoutData()
getLayoutData
in interface PlotInfo
PlotInfo.setLayoutData(String)
public void setLayoutData(String layoutData)
PlotInfo
Sets the MIG Layout constraints which position this PlotInfo within the StackedPlot2D. Normally, calling this method is not necessary because the StackedPlot2D automatically positions its PlotInfo. However, this method can be used to override this default position.
Calling PlotInfo.setLayoutData(String)
with null
as the argument
will cause the StackedPlot2D to resume automatically positioning this PlotInfo.
setLayoutData
in interface PlotInfo
public void setIndentLevel(int level)
PlotInfo
setIndentLevel
in interface PlotInfo
public int getIndentLevel()
getIndentLevel
in interface PlotInfo
PlotInfo.setIndentLevel(int)
public StackedPlot2D getStackedPlot()
PlotInfo
getStackedPlot
in interface PlotInfo
public Object getId()
PlotInfo
public int getOrder()
public int getSize()
public void setGrow(boolean grow)
PlotInfo
Sets the plot to fill all available space. First, fixed size plots
are given their space (set by PlotInfo.setSize(int)
) and then
all plots set to grow fill the remaining space.
Setting the plot size to a negative value is the same as setting
grow to true (but this behavior is deprecated and PlotInfo.setGrow(boolean)
should be used). Setting size to a positive value will set grow to
false.
public boolean isGrow()
isGrow
in interface PlotInfo
PlotInfo.setGrow(boolean)
public void setOrder(int order)
PlotInfo
public void setSize(int size)
PlotInfo
Sets the size in pixels for this plot. If size < 0
, then
the plot will attempt to fill all available space, sharing space
evenly with other plots with negative size.
For a VERTICAL oriented plot, setSize( )
adjusts the plot
height, for a HORIZONTAL oriented plot, the width is adjusted.
public void setPlotSpacing(int spacing)
PlotInfo
StackedTimePlot2D.setPlotSpacing(int)
.
This controls the space between this plot and the one above or to the right
of it. The spacing between this plot and the one below or to the left is
controlled by the other plots spacing.setPlotSpacing
in interface PlotInfo
public int getPlotSpacing()
getPlotSpacing
in interface PlotInfo
PlotInfo.setPlotSpacing(int)
public GlimpseAxisLayout2D getLayout()
PlotInfo
GlimpseAxisLayout2D
for this plot. This can be used
to add subplots of painters to the plotting area.public GlimpseAxisLayout2D getBaseLayout()
PlotInfo
GlimpseLayout
. If this plot is made of a single GlimpseLayout,
#getLayout()
and #getBaseLayout()
will return the same GlimpseLayout.
Otherwise, the result of #getLayout()
will be a child of #getBaseLayout()
.
Further, #getBaseLayout()
will be a direct child of the StackedPlot2D
that this PlotInfo
is part of.getBaseLayout
in interface PlotInfo
public Axis1D getCommonAxis(GlimpseTargetStack stack)
PlotInfo
PlotInfo.getCommonAxis()
.getCommonAxis
in interface PlotInfo
public Axis1D getOrthogonalAxis(GlimpseTargetStack stack)
PlotInfo
PlotInfo.getOrthogonalAxis()
.getOrthogonalAxis
in interface PlotInfo
public Axis1D getCommonAxis()
PlotInfo
getCommonAxis
in interface PlotInfo
public Axis1D getOrthogonalAxis()
PlotInfo
Axis1D.setParent( Axis1D )
.getOrthogonalAxis
in interface PlotInfo
public void addLayout(GlimpseAxisLayout2D childLayout)
PlotInfo
public void setLookAndFeel(LookAndFeel laf)
setLookAndFeel
in interface PlotInfo
public void setVisible(boolean visible)
PlotInfo
setVisible
in interface PlotInfo
public boolean isVisible()
isVisible
in interface PlotInfo
PlotInfo.setVisible(boolean)
public boolean isExpanded()
isExpanded
in interface PlotInfo
public void removePlot()
PlotInfo
removePlot
in interface PlotInfo
public void deletePlot()
removePlot()
deletePlot
in interface PlotInfo
public void updateLayout(int index)
updateLayout
in interface PlotInfo
public static Comparator<PlotInfo> getComparator()
Copyright © 2018 Metron, Inc.. All rights reserved.