public abstract class OptGraphable extends Object implements Graphable, Serializable
Graphable,
Serialized Form| Constructor and Description |
|---|
OptGraphable()
Constructs a new optimized graphable object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Returns the value of the counter for the component.
|
int |
getID()
Returns 0.
|
Object |
getObject()
Returns null.
|
boolean |
isVisited()
Determines if the component has been marked as visited.
|
void |
setCount(int count)
To minimize space, the counter is stored as a byte.
|
void |
setID(int id)
Does nothing.
|
void |
setObject(Object obj)
Does nothing.
|
void |
setVisited(boolean visited)
Marks the component as being visited/unvisited.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRelatedpublic OptGraphable()
public void setID(int id)
setID in interface Graphableid - New identifying integer.Graphable.setID(int)public int getID()
getID in interface GraphableGraphable.getID()public void setVisited(boolean visited)
GraphablesetVisited in interface Graphablevisited - True if visited(on), false if unvisited(off).Graphable.setVisited(boolean)public boolean isVisited()
GraphableisVisited in interface GraphableGraphable.isVisited()public void setCount(int count)
setCount in interface Graphablecount - The new value of the counter for the component.Graphable.setCount(int)public int getCount()
GraphablegetCount in interface GraphableGraphable.getCount()public void setObject(Object obj)
setObject in interface Graphableobj - The entity being modelled by the graph component.Graphable.setObject(Object)public Object getObject()
getObject in interface GraphableGraphable.getObject()Copyright © 1996–2019 Geotools. All rights reserved.