public class Image5DLayout extends ImageLayout implements LayoutManager2
| Modifier and Type | Field and Description |
|---|---|
static String |
CANVAS |
protected Component |
channel |
static String |
CHANNEL_SELECTOR |
protected Rectangle |
contentBounds |
protected Component |
frame |
static String |
FRAME_SELECTOR |
protected int |
hgap |
protected Image5DCanvas |
ic5d |
protected Vector<Image5DCanvas> |
imageCanvasses |
protected Vector<Rectangle> |
imageRectangles |
protected int |
nCanvassesX |
protected int |
nCanvassesY |
protected Component |
slice |
static String |
SLICE_SELECTOR |
protected double |
targetAspect |
protected int |
vgap |
| Constructor and Description |
|---|
Image5DLayout(Image5DCanvas ic5d)
Creates a new ImageLayout with center alignment and 5 pixel horizontal and
vertical gaps.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints) |
void |
addLayoutComponent(String name,
Component comp) |
Rectangle |
getCanvasBounds(int i) |
protected void |
getCanvasLayout()
Calculates the grid of Canvasses in the Window for tiled display
|
Rectangle |
getContentBounds() |
protected int |
getHorizontalControlsHeight() |
protected int |
getHorizontalCoreSize(int canvasWidth) |
float |
getLayoutAlignmentX(Container target) |
float |
getLayoutAlignmentY(Container target) |
int |
getNCanvasses() |
protected int |
getVerticalControlsWidth() |
protected int |
getVerticalCoreSize(int canvasHeight) |
void |
invalidateLayout(Container target) |
void |
layoutContainer(Container target)
Lays out the container.
|
Dimension |
maximumLayoutSize(Container target) |
Dimension |
minimumLayoutSize(Container target)
Returns the minimum dimensions for this layout.
|
Dimension |
preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout.
|
Dimension |
preferredLayoutSize(Container target,
int canvasWidth,
int canvasHeight)
Returns the preferred dimensions for this layout given the specified target
(ImageWindow), canvasWidth and canvasHeight.
|
void |
removeLayoutComponent(Component comp) |
ignoreNonImageWidthsprotected int hgap
protected int vgap
protected Image5DCanvas ic5d
protected Vector<Image5DCanvas> imageCanvasses
protected int nCanvassesX
protected int nCanvassesY
protected Rectangle contentBounds
protected double targetAspect
public static final String CANVAS
public static final String SLICE_SELECTOR
public static final String FRAME_SELECTOR
public static final String CHANNEL_SELECTOR
protected Component slice
protected Component frame
protected Component channel
public Image5DLayout(Image5DCanvas ic5d)
public Dimension preferredLayoutSize(Container target)
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class ImageLayoutpublic Dimension preferredLayoutSize(Container target, int canvasWidth, int canvasHeight)
public Dimension minimumLayoutSize(Container target)
minimumLayoutSize in interface LayoutManagerminimumLayoutSize in class ImageLayoutpublic void layoutContainer(Container target)
layoutContainer in interface LayoutManagerlayoutContainer in class ImageLayoutpublic void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent in interface LayoutManager2public void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManageraddLayoutComponent in class ImageLayoutpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerremoveLayoutComponent in class ImageLayoutpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2protected int getHorizontalCoreSize(int canvasWidth)
protected int getVerticalCoreSize(int canvasHeight)
protected int getHorizontalControlsHeight()
protected int getVerticalControlsWidth()
protected void getCanvasLayout()
public Rectangle getCanvasBounds(int i)
public int getNCanvasses()
public Rectangle getContentBounds()
Copyright © 2015–2021 Fiji. All rights reserved.