Package edu.wpi.grip.ui.preview
Class SocketPreviewViewFactory
- java.lang.Object
-
- edu.wpi.grip.ui.preview.SocketPreviewViewFactory
-
public class SocketPreviewViewFactory extends java.lang.Object
Factory for constructingSocketPreviewViews
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> SocketPreviewView<T>
create(OutputSocket<T> socket)
Create an instance ofSocketPreviewView
appropriate for the given socket.
-
-
-
Method Detail
-
create
public <T> SocketPreviewView<T> create(OutputSocket<T> socket)
Create an instance ofSocketPreviewView
appropriate for the given socket. Sockets of different types (like numbers, arrays, images, etc...) are rendered in different ways, and the role of this class is to figure out what control to use to render a given socket.
-
-