com.partnersoft.v3x.apps.Staker.domain
Class LocationUnit

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.domain.Unit
      extended by com.partnersoft.v3x.apps.Staker.domain.LocationUnit
All Implemented Interfaces:
java.io.Serializable

public class LocationUnit
extends Unit

This is a Unit which can be applied to a location, rather than one that can be applied to a span. Examples include assemblies, transformers, lights, etc.

See Also:
Serialized Form

Field Summary
 boolean autoRotated
           
protected  ImageReference icon
           
protected  boolean initialized
           
protected  ImageReference newIcon
           
 java.lang.String newSymbol
           
 boolean offset
           
protected  ImageReference retireIcon
           
 java.lang.String retireSymbol
           
 java.lang.String symbol
           
 
Constructor Summary
LocationUnit()
          Create a new, blank LocationUnit.
 
Method Summary
 java.lang.Object clone()
           
 void copyState(java.lang.Object nother)
           
 java.lang.String getNewSymbol()
          NewSymbol used on map.
 java.lang.String getRetireSymbol()
          RetireSymbol used on map.
 java.lang.String getSymbol()
          Symbol used on map.
 boolean isAutoRotated()
           
 boolean isOffset()
          Drawn offset from location or not?
 void paintOn(java.awt.Graphics g, java.awt.Point p, boolean inverse, StakeStatus status)
          Paints the unit at the given point.
 void setAutoRotated(boolean tizit)
           
 void setNewSymbol(java.lang.String newnewSymbol)
          NewSymbol used on map.
 void setOffset(boolean newOffset)
          Drawn offset from location or not?
 void setRetireSymbol(java.lang.String newretireSymbol)
          RetireSymbol used on map.
 void setSymbol(java.lang.String newsymbol)
          Symbol used on map.
 boolean visible()
          Returns true if the unit is drawn on the map.
 
Methods inherited from class com.partnersoft.v3x.apps.Staker.domain.Unit
getAccountingCode, getAssociatedUnits, getCategory, getCostEstimate, getDescription, getDiagram, getDiagramName, getGISCode, getInfo, getInfoReal, getName, getOmitFromStakingSheet, setAccountingCode, setAssociatedUnits, setCategory, setDescription, setDiagramName, setName, setOmitFromStakingSheet, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

symbol

public java.lang.String symbol

offset

public boolean offset

autoRotated

public boolean autoRotated

newSymbol

public java.lang.String newSymbol

retireSymbol

public java.lang.String retireSymbol

icon

protected transient ImageReference icon

newIcon

protected transient ImageReference newIcon

retireIcon

protected transient ImageReference retireIcon

initialized

protected transient boolean initialized
Constructor Detail

LocationUnit

public LocationUnit()
Create a new, blank LocationUnit.

Method Detail

paintOn

public void paintOn(java.awt.Graphics g,
                    java.awt.Point p,
                    boolean inverse,
                    StakeStatus status)
Paints the unit at the given point.


visible

public boolean visible()
Returns true if the unit is drawn on the map.


getSymbol

public java.lang.String getSymbol()
Symbol used on map.


setSymbol

public void setSymbol(java.lang.String newsymbol)
Symbol used on map.


getNewSymbol

public java.lang.String getNewSymbol()
NewSymbol used on map.


setNewSymbol

public void setNewSymbol(java.lang.String newnewSymbol)
NewSymbol used on map.


getRetireSymbol

public java.lang.String getRetireSymbol()
RetireSymbol used on map.


setRetireSymbol

public void setRetireSymbol(java.lang.String newretireSymbol)
RetireSymbol used on map.


isOffset

public boolean isOffset()
Drawn offset from location or not?


setOffset

public void setOffset(boolean newOffset)
Drawn offset from location or not?


isAutoRotated

public boolean isAutoRotated()

setAutoRotated

public void setAutoRotated(boolean tizit)

clone

public java.lang.Object clone()
Overrides:
clone in class Unit

copyState

public void copyState(java.lang.Object nother)
Overrides:
copyState in class Unit