public interface PlotInfo
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()
Removes this plot from its StackedPlot2D.
|
GlimpseLayout |
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.
|
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.
|
int |
getPlotSpacing() |
int |
getSize() |
StackedPlot2D |
getStackedPlot()
Gets a reference to the parent StackedPlot2D which this PlotInfo
belongs to.
|
boolean |
isGrow() |
boolean |
isVisible() |
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 |
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) |
void |
updateLayout(int index) |
StackedPlot2D getStackedPlot()
Object getId()
int getOrder()
int getSize()
void setOrder(int order)
order
- the ordering value for this plotvoid setSize(int size)
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.
size
- the size of the plot in pixels.void setGrow(boolean grow)
Sets the plot to fill all available space. First, fixed size plots
are given their space (set by 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 setGrow(boolean)
should be used). Setting size to a positive value will set grow to
false.
grow
- boolean isGrow()
setGrow(boolean)
void setVisible(boolean visible)
boolean isVisible()
void setPlotSpacing(int spacing)
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.int getPlotSpacing()
setPlotSpacing(int)
GlimpseAxisLayout2D getLayout()
GlimpseAxisLayout2D
for this plot. This can be used
to add subplots of painters to the plotting area.GlimpseLayout getBaseLayout()
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.Axis1D getCommonAxis(GlimpseTargetStack stack)
getCommonAxis()
.Axis1D getOrthogonalAxis(GlimpseTargetStack stack)
getOrthogonalAxis()
.Axis1D getCommonAxis()
Axis1D getOrthogonalAxis()
Axis1D.setParent( Axis1D )
.void addLayout(GlimpseAxisLayout2D childLayout)
childLayout
- void deletePlot()
void setIndentLevel(int level)
level
- int getIndentLevel()
setIndentLevel(int)
void setLayoutData(String layoutData)
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 setLayoutData(String)
with null
as the argument
will cause the StackedPlot2D to resume automatically positioning this PlotInfo.
layoutData
- String getLayoutData()
setLayoutData(String)
void setLookAndFeel(LookAndFeel laf)
void updateLayout(int index)
Copyright © 2013 Metron, Inc.. All rights reserved.