|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.layer.LayerPriority
public class LayerPriority
A LayerPriority defines the basic ordering of DockStationDropLayers. Each
LayerPriority has a custom priority, as higher this value is,
as higher the priority of the DockStationDropLayer is. The reverse
property tells whether the order should be reversed for DockStationDropLayers with the
same LayerPriority.
Several default LayerPrioritys are defined, the framework itself uses only these
priorities. Clients may introduce additional priorities. The default priorities all lay within
a range of 0.1 to 0.9. Clients introducing new layers can use code like
new LayerPriority( LAYER.getPriority()+0.5f, false ); to place their new layers between existing
default layers.
| Field Summary | |
|---|---|
static LayerPriority |
BASE
Used for DockStations itself, this is the default priority for most layers. |
static LayerPriority |
FALLBACK
Describes the area where there are no stations, Dockables dragged into this
area normally start to float (i.e. |
static LayerPriority |
FLOAT_ANCHORED
Describes a layer that is floating above a window, but still attached to that window. |
static LayerPriority |
FLOAT_FREE
Describes a layer that is floating freely above all other windows. |
static LayerPriority |
OUTSIDE_HIGH
Used for the area around a DockStation, the layer has a high priority and
is accessed unless there are floating windows present. |
static LayerPriority |
OUTSIDE_LOW
Used for the area around a DockStation, the layer that is only accessed if
all other layers are not used. |
static LayerPriority |
OVERRIDE_GUESS
Describes an area with special behavior more important than BASE, but not an area
where the user has a clear indicator of what will happen.This priority has the reverse
flag set to true. |
static LayerPriority |
OVERRIDE_PRECISE
Describes an area with special behavior more important than BASE, other than
OVERRIDE_GUESS this layer is very small but also has very clear indicators of
what will happen. |
| Constructor Summary | |
|---|---|
LayerPriority(float priority,
boolean reverse)
Creates a new LayerPriority. |
|
LayerPriority(float priority,
boolean reverse,
LayerPriority sub)
Creates a new LayerPriority. |
|
| Method Summary | |
|---|---|
int |
compareTo(LayerPriority o)
|
float |
getPriority()
Gets the priority of this LayerPriority. |
boolean |
isReverse()
Tells whether the order of DockStationDropLayers should be reversed |
LayerPriority |
merge(LayerPriority sub)
Combines this LayerPriority with sub:
The inner-layer priority is set to sub
The priority is to the priority of this
The reverse property is set to the value of sub
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final LayerPriority FALLBACK
Dockables dragged into this
area normally start to float (i.e. become children of ScreenDockStation).
public static final LayerPriority OUTSIDE_LOW
DockStation, the layer that is only accessed if
all other layers are not used.
public static final LayerPriority BASE
DockStations itself, this is the default priority for most layers.
public static final LayerPriority OVERRIDE_GUESS
BASE, but not an area
where the user has a clear indicator of what will happen.This priority has the reverse
flag set to true.
public static final LayerPriority OVERRIDE_PRECISE
BASE, other than
OVERRIDE_GUESS this layer is very small but also has very clear indicators of
what will happen.
public static final LayerPriority OUTSIDE_HIGH
DockStation, the layer has a high priority and
is accessed unless there are floating windows present.
public static final LayerPriority FLOAT_ANCHORED
public static final LayerPriority FLOAT_FREE
| Constructor Detail |
|---|
public LayerPriority(float priority,
boolean reverse)
LayerPriority.
priority - the priority, a number at least 0, where a higher number means that
the priority is more important.reverse - whether the order of DockStationDropLayers should be reversed
public LayerPriority(float priority,
boolean reverse,
LayerPriority sub)
LayerPriority.
priority - the priority, a number at least 0, where a higher number means that
the priority is more important.reverse - whether the order of DockStationDropLayers should be reversedsub - further description of this priority| Method Detail |
|---|
public LayerPriority merge(LayerPriority sub)
LayerPriority with sub:
sub priority is to the priority of this reverse property is set to the value of sub
sub - the new sub layer
public boolean isReverse()
DockStationDropLayers should be reversed
public float getPriority()
LayerPriority.
public int compareTo(LayerPriority o)
compareTo in interface Comparable<LayerPriority>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||