|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.smartwerkz.jupload.classic.ui.views.thumbnail.IconLayout
public class IconLayout
Layout for sizing components into a getItemLength() * getItemLength() square. The squares are shown in rows and the Container is supposed to be only vertically scrollable.
| Constructor Summary | |
|---|---|
IconLayout(java.awt.Dimension itemSize,
int distance)
Creates a new Layout for an Image view |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
java.awt.Dimension |
getItemSize()
|
void |
layoutContainer(java.awt.Container cont)
is always called before the Container is displayed and gives the possibility to re-arrange the components in it |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container cont)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container cont)
equals either the area of the container or if greater, the sufficient area to show all pictures |
void |
removeLayoutComponent(java.awt.Component comp)
Is called when a component is removed from the corresponding container of this Layout instance. |
void |
setItemSize(java.awt.Dimension size)
Sets the item size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IconLayout(java.awt.Dimension itemSize,
int distance)
itemSize - the size of any component of this layoutdistance - the void between all elements| Method Detail |
|---|
public void setItemSize(java.awt.Dimension size)
size - the new sizepublic java.awt.Dimension getItemSize()
public java.awt.Dimension minimumLayoutSize(java.awt.Container cont)
minimumLayoutSize in interface java.awt.LayoutManagercont - the container to which this layout has been added
public java.awt.Dimension preferredLayoutSize(java.awt.Container cont)
preferredLayoutSize in interface java.awt.LayoutManagercont - the container to which this layout has been added
public void layoutContainer(java.awt.Container cont)
layoutContainer in interface java.awt.LayoutManagercont - the container to which this layout has been added
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - comp - LayoutManager.addLayoutComponent(String,
java.awt.Component)public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - a component which is currently being removed from its
Container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||