public abstract class OptGraphable extends Object implements Graphable, Serializable
Graphable
,
Serialized FormConstructor 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, wait
getRelated
public OptGraphable()
public void setID(int id)
setID
in interface Graphable
id
- New identifying integer.Graphable.setID(int)
public int getID()
getID
in interface Graphable
Graphable.getID()
public void setVisited(boolean visited)
Graphable
setVisited
in interface Graphable
visited
- True if visited(on), false if unvisited(off).Graphable.setVisited(boolean)
public boolean isVisited()
Graphable
isVisited
in interface Graphable
Graphable.isVisited()
public void setCount(int count)
setCount
in interface Graphable
count
- The new value of the counter for the component.Graphable.setCount(int)
public int getCount()
Graphable
getCount
in interface Graphable
Graphable.getCount()
public void setObject(Object obj)
setObject
in interface Graphable
obj
- The entity being modelled by the graph component.Graphable.setObject(Object)
public Object getObject()
getObject
in interface Graphable
Graphable.getObject()
Copyright © 1996–2019 Geotools. All rights reserved.