com.metsci.glimpse.context
Class GlimpseTargetStackImpl

java.lang.Object
  extended by com.metsci.glimpse.context.GlimpseTargetStackImpl
All Implemented Interfaces:
GlimpseTargetStack

public class GlimpseTargetStackImpl
extends java.lang.Object
implements GlimpseTargetStack

Author:
ulman
See Also:
GlimpseTargetStack

Constructor Summary
GlimpseTargetStackImpl(GlimpseCanvas canvas)
           
GlimpseTargetStackImpl(GlimpseTarget... targets)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 GlimpseBounds getBounds()
           
 java.util.List<GlimpseBounds> getBoundsList()
           
 int getSize()
           
 GlimpseTarget getTarget()
           
 java.util.List<GlimpseTarget> getTargetList()
           
 int hashCode()
           
 GlimpseTargetStack pop()
          Removes the top GlimpseTarget / GlimpseBounds pair from the target stack.
 GlimpseTargetStack push(GlimpseTarget target)
          Pushes a GlimpseTarget onto this TargetStack (with dummy GlimpseBounds).
 GlimpseTargetStack push(GlimpseTarget target, GlimpseBounds bounds)
          Adds a new GlimpseTarget and its corresponding GlimpseBounds to the TargetStack.
 GlimpseTargetStack push(GlimpseTargetStack stack)
          Pushes an existing stack onto the top of this stack, merging the two.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlimpseTargetStackImpl

public GlimpseTargetStackImpl(GlimpseTarget... targets)

GlimpseTargetStackImpl

public GlimpseTargetStackImpl(GlimpseCanvas canvas)
Method Detail

push

public GlimpseTargetStack push(GlimpseTarget target,
                               GlimpseBounds bounds)
Description copied from interface: GlimpseTargetStack
Adds a new GlimpseTarget and its corresponding GlimpseBounds to the TargetStack.

Specified by:
push in interface GlimpseTargetStack
Returns:
this GlimpseTargetStack (to enable chaining of push calls)

push

public GlimpseTargetStack push(GlimpseTarget target)
Description copied from interface: GlimpseTargetStack
Pushes a GlimpseTarget onto this TargetStack (with dummy GlimpseBounds).

Specified by:
push in interface GlimpseTargetStack
Returns:
this GlimpseTargetStack (to enable chaining of push calls)

push

public GlimpseTargetStack push(GlimpseTargetStack stack)
Description copied from interface: GlimpseTargetStack
Pushes an existing stack onto the top of this stack, merging the two.

Specified by:
push in interface GlimpseTargetStack
Returns:
this GlimpseTargetStack (to enable chaining of push calls)

pop

public GlimpseTargetStack pop()
Description copied from interface: GlimpseTargetStack
Removes the top GlimpseTarget / GlimpseBounds pair from the target stack.

Specified by:
pop in interface GlimpseTargetStack

getTarget

public GlimpseTarget getTarget()
Specified by:
getTarget in interface GlimpseTargetStack
Returns:
The GlimpseTarget at the top of the target stack (the highest index)

getBounds

public GlimpseBounds getBounds()
Specified by:
getBounds in interface GlimpseTargetStack
Returns:
The GlimpsetBounds associated with the GlimpseTarget at the top of the target stack

getTargetList

public java.util.List<GlimpseTarget> getTargetList()
Specified by:
getTargetList in interface GlimpseTargetStack

getBoundsList

public java.util.List<GlimpseBounds> getBoundsList()
Specified by:
getBoundsList in interface GlimpseTargetStack

getSize

public int getSize()
Specified by:
getSize in interface GlimpseTargetStack

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 Metron, Inc.. All Rights Reserved.